Package org.geotools.imageio
Class Identification
- Object
-
- Identification
-
- All Implemented Interfaces:
Serializable,CharSequence
public class Identification extends Object implements CharSequence, Serializable
- Author:
- Martin Desruisseaux, Daniele Romagnoli, GeoSolutions
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Identification(String name)Creates an identification from the specified object name.Identification(String name, String remarks, String alias, String identifier)Creates an identification from the specified object name.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description charcharAt(int index)Returns the name character at the specified index.booleanequals(Object object)Compares the specified object with this identification for equality.StringgetAlias()StringgetIdentifier()StringgetName()StringgetRemarks()inthashCode()Returns a hash value for this identification.intlength()Returns the name length.CharSequencesubSequence(int start, int end)Returns a subsequence of this identification.StringtoString()-
Methods inherited from interface CharSequence
chars, codePoints
-
-
-
-
Method Detail
-
length
public int length()
Returns the name length.- Specified by:
lengthin interfaceCharSequence
-
charAt
public char charAt(int index)
Returns the name character at the specified index.- Specified by:
charAtin interfaceCharSequence
-
subSequence
public CharSequence subSequence(int start, int end)
Returns a subsequence of this identification. The new identification will contains a substring of the name, but the #type will be unchanged.- Specified by:
subSequencein interfaceCharSequence
-
hashCode
public int hashCode()
Returns a hash value for this identification.
-
equals
public boolean equals(Object object)
Compares the specified object with this identification for equality.
-
getName
public String getName()
-
getRemarks
public String getRemarks()
-
getAlias
public String getAlias()
-
getIdentifier
public String getIdentifier()
-
toString
public String toString()
- Specified by:
toStringin interfaceCharSequence- Overrides:
toStringin classObject
-
-