@Extension public interface InternationalString extends CharSequence, Comparable<InternationalString>
String
type whenever an
attribute needs to be internationalization capable.
The natural ordering is defined by the lexicographical ordering of strings in the default locale, as returned by toString()
.
This string also defines the character sequence for this object.
registry.infomodel.InternationalString
,
NameFactory.createInternationalString(java.util.Map<java.util.Locale, java.lang.String>)
Modifier and Type | Method and Description |
---|---|
String |
toString()
Returns this string in the default locale.
|
String |
toString(Locale locale)
Returns this string in the given locale.
|
charAt, chars, codePoints, length, subSequence
compareTo
String toString(Locale locale)
locale
- The desired locale for the string to be returned, or null
for a string
in the implementation default locale.String toString()
toString(Locale.getDefault())
.
All methods from CharSequence
operate on this string. This string is also used as
the criterion for natural ordering.
toString
in interface CharSequence
toString
in class Object
Copyright © 1996–2019 Geotools. All rights reserved.