Package org.geotools.api.filter.identity
Interface Identifier
- All Known Subinterfaces:
FeatureId,GmlObjectId,ObjectId,RecordId,ResourceId
- All Known Implementing Classes:
FeatureIdImpl,FeatureIdVersionedImpl,GmlObjectIdImpl,ResourceIdImpl
public interface Identifier
An object identifier.
This class is an abstract base for identifiers. Some known identifiers are:
- FeatureId
- GMLObjectId
- RecordId
- Author:
- Jody Garnett (Refractions Research), Justin Deoliveira (The Open Planning Project)
-
Method Summary
Modifier and TypeMethodDescriptionbooleanIdentifier is a data object, equals is based just on getID()getID()Returns the identifier itself.inthashCode()Identifier is a data object, hashCode is based just on getID()booleanDetermines if the id of an object matches the value of the identifier.toString()Returns a string representation of the identifier.
-
Method Details
-
getID
Object getID()Returns the identifier itself. -
matches
Determines if the id of an object matches the value of the identifier.- Parameters:
object- The object to perform the test against.- Returns:
trueif a match, otherwisefalse.
-
equals
Identifier is a data object, equals is based just on getID() -
hashCode
int hashCode()Identifier is a data object, hashCode is based just on getID() -
toString
String toString()Returns a string representation of the identifier.
-