Package org.graalvm.options
Class OptionMap<T>
java.lang.Object
org.graalvm.options.OptionMap<T>
- Type Parameters:
T
- the class of the map values
Represents a mapping between
String
keys and values. Allows to create options
to group/accumulate key=value
pairs, with a common prefix; whose keys are not
known beforehand e.g. user defined properties.- Since:
- 19.2
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T> OptionMap
<T> empty()
Returns an empty option map (immutable).entrySet()
Returns an unmodifiableSet
view of the mappings contained in this map.boolean
Returns the value to which the specified key is mapped, ornull
if this option map contains no mapping for the key.int
hashCode()
-
Method Details
-
empty
Returns an empty option map (immutable).- Type Parameters:
T
- the class of the map values- Returns:
- an empty option map
- Since:
- 19.2
-
get
Returns the value to which the specified key is mapped, ornull
if this option map contains no mapping for the key.- Parameters:
key
- the key whose associated value is to be returned- Returns:
- the value to which the specified key is mapped, or
null
if this map contains no mapping for the key - Since:
- 19.2
-
entrySet
Returns an unmodifiableSet
view of the mappings contained in this map.- Returns:
- a set view of the mappings contained in this map
- Since:
- 19.2
-
hashCode
public int hashCode() -
equals
-