Class OptionMap<T>

java.lang.Object
org.graalvm.options.OptionMap<T>
Type Parameters:
T - the class of the map values

public final class OptionMap<T> extends Object
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 Details

    • empty

      public static <T> OptionMap<T> 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

      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:
      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

      public Set<Map.Entry<String,T>> entrySet()
      Returns an unmodifiable Set 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()
      Overrides:
      hashCode in class Object
      Since:
      19.2
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
      Since:
      19.2