Class SynchronizedIdentityMap<K,V>

java.lang.Object
com.pnfsoftware.jeb.util.collect.SynchronizedIdentityMap<K,V>
Type Parameters:
K -
V -

@Ser public class SynchronizedIdentityMap<K,V> extends Object
A serializable, inefficient, fully synchronized, identity pseudo-map.

See SynchronizedLinkedMap for details and caveats.

  • Constructor Details

    • SynchronizedIdentityMap

      public SynchronizedIdentityMap()
  • Method Details

    • size

      public int size()
    • clear

      public void clear()
    • isEmpty

      public boolean isEmpty()
    • containsKey

      public boolean containsKey(K key)
    • containsValue

      public boolean containsValue(V value)
    • get

      public V get(K key)
    • put

      public V put(K key, V value)
    • remove

      public V remove(K key)
    • copyOfKeys

      public Set<K> copyOfKeys()
    • firstKey

      public K firstKey()
      Returns:
      Throws:
      NoSuchElementException - if the map is empty
    • toString

      public String toString()
      Overrides:
      toString in class Object