Package org.apache.sis.util.iso
Class AbstractName.International
java.lang.Object
org.apache.sis.util.AbstractInternationalString
org.apache.sis.util.SimpleInternationalString
org.apache.sis.util.iso.AbstractName.International
- All Implemented Interfaces:
Serializable
,CharSequence
,Comparable<org.opengis.util.InternationalString>
,Formattable
,org.opengis.util.InternationalString
- Enclosing class:
AbstractName
An international string built from a snapshot of
GenericName
.
This class is immutable if the list given to the constructor is immutable.- Since:
- 0.3
- Version:
- 0.3
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final List
<? extends org.opengis.util.LocalName> The sequence of local names making this generic name.private static final long
Serial number for inter-operability with different versions. -
Constructor Summary
ConstructorsConstructorDescriptionInternational
(String asString, List<? extends org.opengis.util.LocalName> parsedNames) Constructs a new international string from the specifiedAbstractName
fields. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Compares this international string with the specified object for equality.int
hashCode()
Returns a hash code value for this international text.Returns a string representation for the specified locale.Methods inherited from class org.apache.sis.util.SimpleInternationalString
toString
Methods inherited from class org.apache.sis.util.AbstractInternationalString
charAt, compareTo, formatTo, length, subSequence
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.lang.CharSequence
chars, codePoints, isEmpty
-
Field Details
-
serialVersionUID
private static final long serialVersionUIDSerial number for inter-operability with different versions.- See Also:
-
parsedNames
The sequence of local names making this generic name. This is the value returned byAbstractName.getParsedNames()
.
-
-
Constructor Details
-
International
Constructs a new international string from the specifiedAbstractName
fields.- Parameters:
asString
- the string representation of the enclosing abstract name.parsedNames
- the value returned byAbstractName.getParsedNames()
.
-
-
Method Details
-
toString
Returns a string representation for the specified locale.- Specified by:
toString
in interfaceorg.opengis.util.InternationalString
- Overrides:
toString
in classSimpleInternationalString
- Parameters:
locale
- ignored in theSimpleInternationalString
implementation.- Returns:
- the international string as a
String
. - See Also:
-
equals
Compares this international string with the specified object for equality.- Overrides:
equals
in classSimpleInternationalString
- Parameters:
object
- the object to compare with this international string.- Returns:
true
if the given object is equal to this string.
-
hashCode
public int hashCode()Returns a hash code value for this international text.- Overrides:
hashCode
in classSimpleInternationalString
- Returns:
- the hash code value.
-