Class SingleValueMap

java.lang.Object
net.infonode.util.collection.map.SingleValueMap
All Implemented Interfaces:
ConstCollection, ConstMap

public class SingleValueMap extends Object implements ConstMap
  • Constructor Details

    • SingleValueMap

      public SingleValueMap(Object key, Object value)
  • Method Details

    • get

      public Object get(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(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(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
    • constIterator

      public ConstMapIterator constIterator()
      Description copied from interface: ConstMap
      Returns an iterator for this map.
      Specified by:
      constIterator in interface ConstMap
      Returns:
      an iterator for this map
    • 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