Package org.geotools.util
Class MemberNameImpl
- Object
-
- GenericName
-
- LocalName
-
- MemberNameImpl
-
- All Implemented Interfaces:
Serializable
,Comparable<GenericName>
,GenericName
,LocalName
,MemberName
public class MemberNameImpl extends LocalName implements MemberName
The name to identify a member of a record. This is typically used as of aMap<MemberName,TypeName>
.It may be more simple to think of
MemberName
as aMap.Entry
- since it is both the "key" and the "value".- key:
this
- value: associated
TypeName
- Since:
- 2.4
- Author:
- Jody Garnett, Martin Desruisseaux
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class GenericName
DEFAULT_SEPARATOR
-
-
Constructor Summary
Constructors Constructor Description MemberNameImpl(CharSequence name, TypeName typeName)
Constructs a member name from the specified string with no scope.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object object)
Compares this member name with the associated object for equality.TypeName
getAttributeType()
Returns the type of the data associated with the record member.int
hashCode()
Returns a hash code value for this local name.-
Methods inherited from class LocalName
compareTo, depth, getInternalScope, getParsedNames, head, push, scope, tip, toFullyQualifiedName, toInternationalString, toString
-
Methods inherited from interface GenericName
push, scope, toFullyQualifiedName, toInternationalString
-
-
-
-
Constructor Detail
-
MemberNameImpl
public MemberNameImpl(CharSequence name, TypeName typeName)
Constructs a member name from the specified string with no scope.- Parameters:
name
- The local name (nevernull
).typeName
- The type associated with this name.
-
-
Method Detail
-
getAttributeType
public TypeName getAttributeType()
Returns the type of the data associated with the record member.- Specified by:
getAttributeType
in interfaceMemberName
-
equals
public boolean equals(Object object)
Compares this member name with the associated object for equality.
-
-