public static final class Hints.DoubleKey extends Hints.Key
getDefault().| Constructor and Description |
|---|
DoubleKey(double number)
Creates a new key with the specified default value.
|
| Modifier and Type | Method and Description |
|---|---|
double |
getDefault()
Returns the default value.
|
boolean |
isCompatibleValue(Object value)
Returns
true if the specified object is a valid integer. |
double |
toValue(Hints hints)
Returns the value from the specified hints as a double.
|
getValueClass, toStringequals, hashCode, intKeypublic DoubleKey(double number)
number - The default value.public double getDefault()
public double toValue(Hints hints)
hints - The map where to fetch the hint value, or null.public boolean isCompatibleValue(Object value)
true if the specified object is a valid integer.isCompatibleValue in class Hints.Keyvalue - The object to test for validity.true if the value is valid; false otherwise.Hints.ClassKey.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.