Package joptsimple.internal
Class SimpleOptionNameMap<V>
- java.lang.Object
-
- joptsimple.internal.SimpleOptionNameMap<V>
-
- All Implemented Interfaces:
OptionNameMap<V>
public class SimpleOptionNameMap<V> extends java.lang.Object implements OptionNameMap<V>
An
OptionNameMap
which wraps and behaves likeHashMap
.
-
-
Constructor Summary
Constructors Constructor Description SimpleOptionNameMap()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
contains(java.lang.String key)
V
get(java.lang.String key)
void
put(java.lang.String key, V newValue)
void
putAll(java.lang.Iterable<java.lang.String> keys, V newValue)
void
remove(java.lang.String key)
java.util.Map<java.lang.String,V>
toJavaUtilMap()
-
-
-
Method Detail
-
contains
public boolean contains(java.lang.String key)
- Specified by:
contains
in interfaceOptionNameMap<V>
-
get
public V get(java.lang.String key)
- Specified by:
get
in interfaceOptionNameMap<V>
-
put
public void put(java.lang.String key, V newValue)
- Specified by:
put
in interfaceOptionNameMap<V>
-
putAll
public void putAll(java.lang.Iterable<java.lang.String> keys, V newValue)
- Specified by:
putAll
in interfaceOptionNameMap<V>
-
remove
public void remove(java.lang.String key)
- Specified by:
remove
in interfaceOptionNameMap<V>
-
toJavaUtilMap
public java.util.Map<java.lang.String,V> toJavaUtilMap()
- Specified by:
toJavaUtilMap
in interfaceOptionNameMap<V>
-
-