Package org.geotools.util.factory
Class Hints.ClassKey
- Object
- 
- RenderingHints.Key
- 
- Hints.Key
- 
- ClassKey
 
 
 
- 
- 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanisCompatibleValue(Object value)Returnstrueif the specified object is a valid value for this key.- 
Methods inherited from class Hints.KeygetValueClass, toString
 - 
Methods inherited from class RenderingHints.Keyequals, hashCode, intKey
 
- 
 
- 
- 
- 
Constructor Detail- 
ClassKeypublic ClassKey(Class<?> classe) Constructs a new key for values of the given class.- Parameters:
- classe- The base class for all valid values.
 
 
- 
 - 
Method Detail- 
isCompatibleValuepublic boolean isCompatibleValue(Object value) Returnstrueif the specified object is a valid value for this key. This method checks if the specified value is non-null and is one of the following:- An instance of the expected value class.
- A Classassignable to the expected value class.
- An array of Classobjects assignable to the expected value class.
 - Overrides:
- isCompatibleValuein class- Hints.Key
- Parameters:
- value- The object to test for validity.
- Returns:
- trueif the value is valid;- falseotherwise.
- See Also:
- isCompatibleValue(java.lang.Object),- Hints.FileKey.isCompatibleValue(java.lang.Object),- Hints.IntegerKey.isCompatibleValue(java.lang.Object),- Hints.OptionKey.isCompatibleValue(java.lang.Object)
 
 
- 
 
-