Class LocalizedString
java.lang.Object
org.locationtech.proj4j.geoapi.LocalizedString
- All Implemented Interfaces:
Serializable, CharSequence, Comparable<org.opengis.util.InternationalString>, org.opengis.util.InternationalString
final class LocalizedString
extends Object
implements org.opengis.util.InternationalString, Serializable
A string in a specific locale.
In the current version, the locale is unspecified.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final StringThe localized text.(package private) static final LocalizedStringThe "not known" value. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateLocalizedString(String text) Creates a new international string. -
Method Summary
Modifier and TypeMethodDescriptioncharcharAt(int index) intcompareTo(org.opengis.util.InternationalString o) booleaninthashCode()intlength()subSequence(int start, int end) toString()(package private) static LocalizedStringReturns the given text as an international string.Methods inherited from interface CharSequence
chars, codePoints, getChars, isEmpty
-
Field Details
-
UNKNOWN
The "not known" value. ISO 19111 requires that we return this string if the scope of a datum or coordinate operation is unknown. -
text
The localized text.
-
-
Constructor Details
-
LocalizedString
Creates a new international string.- Parameters:
text- the localized text
-
-
Method Details
-
wrap
Returns the given text as an international string.- Parameters:
text- the localized text, ornull- Returns:
- the international string, or
nullif the given text was null
-
toString
- Specified by:
toStringin interfaceCharSequence- Specified by:
toStringin interfaceorg.opengis.util.InternationalString- Overrides:
toStringin classObject
-
toString
-
length
public int length()- Specified by:
lengthin interfaceCharSequence
-
charAt
public char charAt(int index) - Specified by:
charAtin interfaceCharSequence
-
subSequence
- Specified by:
subSequencein interfaceCharSequence
-
compareTo
public int compareTo(org.opengis.util.InternationalString o) - Specified by:
compareToin interfaceComparable<org.opengis.util.InternationalString>
-
equals
-
hashCode
-