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, toStringequals, hashCode, intKeypublic 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.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),
isCompatibleValue(java.lang.Object)Copyright © 1996–2019 Geotools. All rights reserved.