|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
T - The type of the identifier itself.O - The type of objects to be identified.public interface Identifier
An object identifier.
This class is an abstract base for identifiers. Some known identifiers are:
| 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 |
|---|
Object getID()
boolean matches(Object object)
object - The object to perform the test against.
true if a match, otherwise false.boolean equals(Object obj)
equals in class Objectobj -
int hashCode()
hashCode in class ObjectString toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||