Package org.geotools.api.filter.identity
Interface Identifier
-
- Type Parameters:
T
- The type of the identifier itself.O
- The type of objects to be identified.
- 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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
equals(Object obj)
Identifier is a data object, equals is based just on getID()Object
getID()
Returns the identifier itself.int
hashCode()
Identifier is a data object, hashCode is based just on getID()boolean
matches(Object object)
Determines if the id of an object matches the value of the identifier.String
toString()
Returns a string representation of the identifier.
-
-
-
Method Detail
-
getID
Object getID()
Returns the identifier itself.
-
matches
boolean matches(Object object)
Determines if the id of an object matches the value of the identifier.- Parameters:
object
- The object to perform the test against.- Returns:
true
if a match, otherwisefalse
.
-
equals
boolean equals(Object obj)
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()
-
-