public class OptionValues extends Object
OptionKey
s.Constructor and Description |
---|
OptionValues(OptionValues initialValues,
OptionKey<?> key1,
Object value1,
Object... extraPairs) |
OptionValues(OptionValues initialValues,
org.graalvm.collections.UnmodifiableEconomicMap<OptionKey<?>,Object> extraPairs) |
OptionValues(org.graalvm.collections.UnmodifiableEconomicMap<OptionKey<?>,Object> values) |
Modifier and Type | Method and Description |
---|---|
static org.graalvm.collections.EconomicMap<OptionKey<?>,Object> |
asMap(OptionKey<?> key1,
Object value1,
Object... extraPairs) |
protected boolean |
containsKey(OptionKey<?> key) |
static Object |
decodeNull(Object value)
Decodes a value that may be the sentinel value for
null in a map. |
protected static Object |
encodeNull(Object value) |
protected <T> T |
get(OptionKey<T> key) |
protected static <T> T |
get(org.graalvm.collections.UnmodifiableEconomicMap<OptionKey<?>,Object> values,
OptionKey<T> key) |
org.graalvm.collections.UnmodifiableEconomicMap<OptionKey<?>,Object> |
getMap()
Gets an immutable view of the key/value pairs in this object.
|
protected static void |
initMap(org.graalvm.collections.EconomicMap<OptionKey<?>,Object> map,
org.graalvm.collections.UnmodifiableEconomicMap<OptionKey<?>,Object> values) |
static org.graalvm.collections.EconomicMap<OptionKey<?>,Object> |
newOptionMap()
Creates a new map suitable for using
OptionKey s as keys. |
void |
printHelp(Iterable<OptionDescriptors> loader,
PrintStream out,
String namePrefix)
Prints a help message to
out describing all options available via loader . |
String |
toString() |
static String |
toString(org.graalvm.collections.UnmodifiableEconomicMap<OptionKey<?>,Object> values) |
public OptionValues(OptionValues initialValues, org.graalvm.collections.UnmodifiableEconomicMap<OptionKey<?>,Object> extraPairs)
public OptionValues(OptionValues initialValues, OptionKey<?> key1, Object value1, Object... extraPairs)
protected boolean containsKey(OptionKey<?> key)
public static org.graalvm.collections.EconomicMap<OptionKey<?>,Object> newOptionMap()
OptionKey
s as keys.public org.graalvm.collections.UnmodifiableEconomicMap<OptionKey<?>,Object> getMap()
public static org.graalvm.collections.EconomicMap<OptionKey<?>,Object> asMap(OptionKey<?> key1, Object value1, Object... extraPairs)
key1
- first key in mapvalue1
- first value in mapextraPairs
- key/value pairs of the form [key1, value1, key2, value2, ...]
protected static void initMap(org.graalvm.collections.EconomicMap<OptionKey<?>,Object> map, org.graalvm.collections.UnmodifiableEconomicMap<OptionKey<?>,Object> values)
protected <T> T get(OptionKey<T> key)
protected static <T> T get(org.graalvm.collections.UnmodifiableEconomicMap<OptionKey<?>,Object> values, OptionKey<T> key)
public static Object decodeNull(Object value)
null
in a map.public static String toString(org.graalvm.collections.UnmodifiableEconomicMap<OptionKey<?>,Object> values)
public void printHelp(Iterable<OptionDescriptors> loader, PrintStream out, String namePrefix)
out
describing all options available via loader
. The
key/value for each option is separated by :=
if the option has an entry in this
object otherwise =
is used as the separator.loader
- out
- namePrefix
-