Elide GraalVM25.6.0-elide.4
All types
Versions and modules

OptionMap

Javaclassin org.graalvm.optionssince 19.2

public final class OptionMap<T>
Inheritance
  1. Object
  2. OptionMap

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.

Type parameters

<T>
the class of the map values

Methods5

static OptionMap<T> empty()

empty

staticsince 19.2
public static <T> OptionMap<T> empty()

Returns an empty option map (immutable).

Type parameters

<T>
the class of the map values

Returns

OptionMap<T>
an empty option map
T get(String)

get

since 19.2
public T get(String key)

Returns the value to which the specified key is mapped, or null if this option map contains no mapping for the key.

Parameters

keyString
the key whose associated value is to be returned

Returns

T
the value to which the specified key is mapped, or null if this map contains no mapping for the key
Set<Map.Entry<String, T>> entrySet()

entrySet

since 19.2
public Set<Map.Entry<String, T>> entrySet()

Returns an unmodifiable Set view of the mappings contained in this map.

Returns

Set<Map.Entry<String, T>>
a set view of the mappings contained in this map
int hashCode()Described in hashCode().

hashCode

since 19.2
public int hashCode()

Described in hashCode().

Returns

int
No description.
boolean equals(Object)Described in equals(java.lang.Object).

equals

since 19.2
public boolean equals(Object obj)

Described in equals(java.lang.Object).

Parameters

objObject
No description.

Returns

boolean
No description.

Inherited members