|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--au.com.prunge.jgenfile.OperationHintsCommonKeys.KeyImpl
An simple key class.
Instances of this class must be unique since the equals and hashCode methods are not designed to be able to handle multiple instances of keys with the same name.
Constructor Summary | |
OperationHintsCommonKeys.KeyImpl(String name,
Class valueClass)
Constructs a KeyImpl . |
Method Summary | |
boolean |
isCompatibleValue(OperationHints.Value value)
Returns whether the specified value is appropriate for this key. |
String |
toString()
Returns a string representation of this key. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public OperationHintsCommonKeys.KeyImpl(String name, Class valueClass) throws IllegalArgumentException, NullPointerException
KeyImpl
.
name
- the name of the key.valueClass
- the class that values must be.
NullPointerException
- if name
or valueClass
is null.
IllegalArgumentException
- if valueClass
is a class that does not implement
the OperationHints.Value class.Method Detail |
public boolean isCompatibleValue(OperationHints.Value value)
OperationHints.Key
isCompatibleValue
in interface OperationHints.Key
value
- the value to check.
OperationHints.Key.isCompatibleValue(au.com.prunge.jgenfile.OperationHints.Value)
public String toString()
toString
in class Object
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |