| Constructor and Description |
|---|
ClassKey(Class<?> classe)
Constructs a new key for values of the given class.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
isCompatibleValue(Object value)
Returns
true if the specified object is a valid value for this key. |
getValueClass, toStringequals, hashCode, intKeypublic ClassKey(Class<?> classe)
classe - The base class for all valid values.public boolean isCompatibleValue(Object value)
true if 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:
Class assignable to the expected value class.
Class objects assignable to the expected value class.
isCompatibleValue in class Hints.Keyvalue - The object to test for validity.true if the value is valid; false otherwise.isCompatibleValue(java.lang.Object),
Hints.FileKey.isCompatibleValue(java.lang.Object),
Hints.IntegerKey.isCompatibleValue(java.lang.Object),
Hints.OptionKey.isCompatibleValue(java.lang.Object)Copyright © 1996–2019 Geotools. All rights reserved.