public static final class Hints.OptionKey extends Hints.Key
"*"
as a wild card to
indicate that undocumented options may be supported (but there is no assurances - Hints.DATUM_SHIFT_METHOD
).Constructor and Description |
---|
OptionKey(String... alternatives)
Creates a new key for a configuration option.
|
Modifier and Type | Method and Description |
---|---|
Set<String> |
getOptions()
Returns the set of available options.
|
boolean |
isCompatibleValue(Object value)
Returns
true if the specified object is one of the valid options. |
getValueClass, toString
equals, hashCode, intKey
public OptionKey(String... alternatives)
alternatives
- The available options.public Set<String> getOptions()
public boolean isCompatibleValue(Object value)
true
if the specified object is one of the valid options. If the options
specified at construction time contains the "*"
wildcard, then this method
returns true
for every String
object.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)
,
Hints.IntegerKey.isCompatibleValue(java.lang.Object)
,
isCompatibleValue(java.lang.Object)
Copyright © 1996–2019 Geotools. All rights reserved.