T
- The type of the identifier itself.O
- The type of objects to be identified.public interface Identifier
This class is an abstract base for identifiers. Some known identifiers are:
Modifier and Type | Method and 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.
|
Object getID()
boolean matches(Object object)
object
- The object to perform the test against.true
if a match, otherwise false
.boolean equals(Object obj)
int hashCode()
Copyright © 1996–2019 Geotools. All rights reserved.