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 unmodifiableSetview of the mappings contained in this map.booleanReturns the value to which the specified key is mapped, ornullif this option map contains no mapping for the key.inthashCode()
-
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, ornullif 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
nullif this map contains no mapping for the key - Since:
- 19.2
-
entrySet
Returns an unmodifiableSetview 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
-