public static final class Hints.IntegerKey extends Hints.Key
getDefault()
.Constructor and Description |
---|
IntegerKey(int number)
Creates a new key with the specified default value.
|
Modifier and Type | Method and Description |
---|---|
int |
getDefault()
Returns the default value.
|
boolean |
isCompatibleValue(Object value)
Returns
true if the specified object is a valid integer. |
int |
toValue(Hints hints)
Returns the value from the specified hints as an integer.
|
getValueClass, toString
equals, hashCode, intKey
public IntegerKey(int number)
number
- The default value.public int getDefault()
public int 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.Key
value
- 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)
,
isCompatibleValue(java.lang.Object)
,
Hints.OptionKey.isCompatibleValue(java.lang.Object)
Copyright © 1996–2019 Geotools. All rights reserved.