Class AbstractName.International

All Implemented Interfaces:
Serializable, CharSequence, Comparable<org.opengis.util.InternationalString>, Formattable, org.opengis.util.InternationalString
Enclosing class:
AbstractName

private static final class AbstractName.International extends SimpleInternationalString
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 Details

    • serialVersionUID

      private static final long serialVersionUID
      Serial number for inter-operability with different versions.
      See Also:
    • parsedNames

      private final List<? extends org.opengis.util.LocalName> parsedNames
      The sequence of local names making this generic name. This is the value returned by AbstractName.getParsedNames().
  • Constructor Details

    • International

      International(String asString, List<? extends org.opengis.util.LocalName> parsedNames)
      Constructs a new international string from the specified AbstractName fields.
      Parameters:
      asString - the string representation of the enclosing abstract name.
      parsedNames - the value returned by AbstractName.getParsedNames().
  • Method Details

    • toString

      public String toString(Locale locale)
      Returns a string representation for the specified locale.
      Specified by:
      toString in interface org.opengis.util.InternationalString
      Overrides:
      toString in class SimpleInternationalString
      Parameters:
      locale - ignored in the SimpleInternationalString implementation.
      Returns:
      the international string as a String.
      See Also:
    • equals

      public boolean equals(Object object)
      Compares this international string with the specified object for equality.
      Overrides:
      equals in class SimpleInternationalString
      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 class SimpleInternationalString
      Returns:
      the hash code value.