|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.virtuosotechnologies.lib.base.UniqueObject com.virtuosotechnologies.lib.base.UniqueClassConstrainedKey
A UniqueObject base class implementing ClassConstrainedKey
Constructor Summary | |
UniqueClassConstrainedKey(Class guarantee)
Constructor |
|
UniqueClassConstrainedKey(String description,
Class guarantee)
Constructor |
Method Summary | |
Class |
getConstrainingClass()
Get the class of the constraint. |
boolean |
isConstraintSatisfiedBy(Object obj)
Returns true if the given object matches the constraint. |
Methods inherited from class com.virtuosotechnologies.lib.base.UniqueObject |
equals, getUniqueObjectID, toString |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public UniqueClassConstrainedKey(Class guarantee)
guarantee
- the guaranteed class representing the constraintpublic UniqueClassConstrainedKey(String description, Class guarantee)
description
- the description string returned by toStringguarantee
- the guaranteed class representing the constraintMethod Detail |
public Class getConstrainingClass()
getConstrainingClass
in interface ClassConstrainedKey
public boolean isConstraintSatisfiedBy(Object obj)
isConstraintSatisfiedBy
in interface ConstrainedKey
obj
- object to test
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |