Class SingleValueMap

    • Constructor Summary

      Constructors 
      Constructor Description
      SingleValueMap​(java.lang.Object key, java.lang.Object value)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      ConstMapIterator constIterator()
      Returns an iterator for this map.
      boolean containsKey​(java.lang.Object key)
      Returns true if this map contains the key.
      boolean containsValue​(java.lang.Object value)
      Returns true if this map contains the value.
      java.lang.Object get​(java.lang.Object key)
      Returns the value associated with the key.
      boolean isEmpty()
      Returns true if this collection is empty.
      • Methods inherited from class java.lang.Object

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

      • SingleValueMap

        public SingleValueMap​(java.lang.Object key,
                              java.lang.Object value)
    • Method Detail

      • get

        public java.lang.Object get​(java.lang.Object key)
        Description copied from interface: ConstMap
        Returns the value associated with the key.
        Specified by:
        get in interface ConstMap
        Parameters:
        key - the key
        Returns:
        the value associated with the key, null if no value is associated with the key
      • containsKey

        public boolean containsKey​(java.lang.Object key)
        Description copied from interface: ConstMap
        Returns true if this map contains the key.
        Specified by:
        containsKey in interface ConstMap
        Parameters:
        key - the key
        Returns:
        true if this map contains the key
      • containsValue

        public boolean containsValue​(java.lang.Object value)
        Description copied from interface: ConstMap
        Returns true if this map contains the value.
        Specified by:
        containsValue in interface ConstMap
        Parameters:
        value - the value
        Returns:
        true if this map contains the value
      • isEmpty

        public boolean isEmpty()
        Description copied from interface: ConstCollection
        Returns true if this collection is empty.
        Specified by:
        isEmpty in interface ConstCollection
        Returns:
        true if this collection is empty