Package io.github.wankdanker.clyops
Class Values
- All Implemented Interfaces:
Serializable,Cloneable,Map<String,Object>
Resolved values keyed by option variable and argument name, in registration order. Types
follow spec section 10: Boolean for flags and bool, Long for int and port, Double for float,
String otherwise, a List for arrays and variadics, null when unset.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K, V> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanThe value as a boolean (false when unset).doubleThe value as a double (0 when unset).intThe value as an int (0 when unset).An array option's or variadic argument's values.longThe value as a long (0 when unset).The value as a string ("" when unset).getStrings(String name) An array option's or variadic argument's values as strings.Methods inherited from class java.util.LinkedHashMap
clear, containsValue, entrySet, forEach, get, getOrDefault, keySet, removeEldestEntry, replaceAll, valuesMethods inherited from class java.util.HashMap
clone, compute, computeIfAbsent, computeIfPresent, containsKey, isEmpty, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, sizeMethods inherited from class java.util.AbstractMap
equals, hashCode, toStringMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, containsKey, equals, hashCode, isEmpty, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, size
-
Constructor Details
-
Values
public Values()
-
-
Method Details
-
getString
The value as a string ("" when unset). -
getInt
The value as an int (0 when unset). -
getLong
The value as a long (0 when unset). -
getDouble
The value as a double (0 when unset). -
getBool
The value as a boolean (false when unset). -
getList
An array option's or variadic argument's values. -
getStrings
An array option's or variadic argument's values as strings.
-