Class SimpleOptionNameMap<V>

  • All Implemented Interfaces:
    OptionNameMap<V>

    public class SimpleOptionNameMap<V>
    extends java.lang.Object
    implements OptionNameMap<V>

    An OptionNameMap which wraps and behaves like HashMap.

    • 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()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SimpleOptionNameMap

        public SimpleOptionNameMap()
    • Method Detail

      • contains

        public boolean contains​(java.lang.String key)
        Specified by:
        contains in interface OptionNameMap<V>
      • get

        public V get​(java.lang.String key)
        Specified by:
        get in interface OptionNameMap<V>
      • put

        public void put​(java.lang.String key,
                        V newValue)
        Specified by:
        put in interface OptionNameMap<V>
      • putAll

        public void putAll​(java.lang.Iterable<java.lang.String> keys,
                           V newValue)
        Specified by:
        putAll in interface OptionNameMap<V>
      • remove

        public void remove​(java.lang.String key)
        Specified by:
        remove in interface OptionNameMap<V>