|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.geotools.util.AbstractInternationalString
org.geotools.util.SimpleInternationalString
public class SimpleInternationalString
A simple international string consisting of a single string for all locales. For such a particular case, this implementation is the more effective than other implementations provided in this package.
Constructor Summary | |
---|---|
SimpleInternationalString(java.lang.String message)
Creates a new instance of international string. |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object object)
Compares this international string with the specified object for equality. |
int |
hashCode()
Returns a hash code value for this international text. |
java.lang.String |
toString(java.util.Locale locale)
Returns the same string for all locales. |
static AbstractInternationalString |
wrap(java.lang.CharSequence string)
If the specified string is null or an instance of AbstractInternationalString , returns it unchanged. |
Methods inherited from class org.geotools.util.AbstractInternationalString |
---|
charAt, compareTo, length, subSequence, toString |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public SimpleInternationalString(java.lang.String message)
message
- The string for all locales.Method Detail |
---|
public static AbstractInternationalString wrap(java.lang.CharSequence string)
AbstractInternationalString
, returns it unchanged.
Otherwise, wraps the string value in a SimpleInternationalString
.
string
- The string to wrap.
public java.lang.String toString(java.util.Locale locale)
toString
in interface org.opengis.util.InternationalString
toString
in class AbstractInternationalString
locale
- The desired locale for the string to be returned, or null
for a string in the implementation default locale.
public boolean equals(java.lang.Object object)
equals
in class java.lang.Object
object
- The object to compare with this international string.
true
if the given object is equals to this string.public int hashCode()
hashCode
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |