org.opengis.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:

Author:
Jody Garnett (Refractions Research), Justin Deoliveira (The Open Planning Project)

Method Summary
 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, otherwise false.

equals

boolean equals(Object obj)
Identifier is a data object, equals is based just on getID()

Overrides:
equals in class Object
Parameters:
obj -
Returns:
true if obj is an Identifier with the same getID()

hashCode

int hashCode()
Identifier is a data object, hashCode is based just on getID()

Overrides:
hashCode in class Object
Returns:
hashCode based on getID()

toString

String toString()
Returns a string representation of the identifier.

Overrides:
toString in class Object
Returns:
getID().toString()


Copyright © 1996-2014 Geotools. All Rights Reserved.