Class SynchronizedLinkedSet<E>

java.lang.Object
com.pnfsoftware.jeb.util.collect.SynchronizedLinkedSet<E>
Type Parameters:
E -

@Ser public class SynchronizedLinkedSet<E> extends Object
A serializable, inefficient, fully synchronized, linked pseudo-set. (Refer to SynchronizedLinkedMap for additional details.)

This class does not allow null keys.

Methods of this object are guaranteed to never raise ConcurrentModificationException.

  • Constructor Details

    • SynchronizedLinkedSet

      public SynchronizedLinkedSet()
  • Method Details

    • size

      public int size()
    • clear

      public void clear()
    • isEmpty

      public boolean isEmpty()
    • contains

      public boolean contains(E e)
    • add

      public boolean add(E e)
    • remove

      public boolean remove(E e)
    • copyOfEntries

      public Set<E> copyOfEntries()
    • firstEntry

      public E firstEntry()
      Returns:
      Throws:
      NoSuchElementException - if the map is empty
    • toString

      public String toString()
      Overrides:
      toString in class Object