|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.awt.RenderingHints.Key
org.geotools.factory.Hints.Key
org.geotools.factory.Hints.ClassKey
public static final class Hints.ClassKey
A key for value that may be specified either as instance of T
, or as
Class<T>
.
Constructor Summary | |
---|---|
Hints.ClassKey(java.lang.Class<?> classe)
Constructs a new key for values of the given class. |
Method Summary | |
---|---|
boolean |
isCompatibleValue(java.lang.Object value)
Returns true if the specified object is a valid value for
this key. |
Methods inherited from class org.geotools.factory.Hints.Key |
---|
getValueClass, toString |
Methods inherited from class java.awt.RenderingHints.Key |
---|
equals, hashCode, intKey |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Hints.ClassKey(java.lang.Class<?> classe)
classe
- The base class for all valid values.Method Detail |
---|
public boolean isCompatibleValue(java.lang.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.Key
value
- 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)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |