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 longSerial 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 specifiedAbstractNamefields. -
Method Summary
Modifier and TypeMethodDescriptionbooleanCompares this international string with the specified object for equality.inthashCode()Returns a hash code value for this international text.Returns a string representation for the specified locale.Methods inherited from class SimpleInternationalString
toStringMethods inherited from class AbstractInternationalString
charAt, compareTo, formatTo, length, subSequenceMethods inherited from interface CharSequence
chars, codePoints
-
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 specifiedAbstractNamefields.- 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:
toStringin interfaceorg.opengis.util.InternationalString- Overrides:
toStringin classSimpleInternationalString- Parameters:
locale- ignored in theSimpleInternationalStringimplementation.- Returns:
- the international string as a
String. - See Also:
-
equals
Compares this international string with the specified object for equality.- Overrides:
equalsin classSimpleInternationalString- Parameters:
object- the object to compare with this international string.- Returns:
trueif the given object is equal to this string.
-
hashCode
public int hashCode()Returns a hash code value for this international text.- Overrides:
hashCodein classSimpleInternationalString- Returns:
- the hash code value.
-