Class JdbcSet<E>

  • All Implemented Interfaces:
    java.lang.Iterable<E>, java.util.Collection<E>, java.util.Set<E>
    Direct Known Subclasses:
    LazySet

    public class JdbcSet<E>
    extends java.util.AbstractSet<E>

    JdbcSet class.

    • Constructor Summary

      Constructors 
      Constructor Description
      JdbcSet()
      Constructor for JdbcSet.
      JdbcSet​(java.util.Collection<E> c)
      Constructor for JdbcSet.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean add​(E o)
      add
      java.util.Set<E> getAdded()
      getAdded
      java.util.Set<E> getRemaining()
      getRemaining
      java.util.Set<E> getRemoved()
      getRemoved
      java.util.Iterator<E> iterator()
      iterator
      void reset()
      reset
      protected void setElements​(java.util.Collection<E> c)
      setElements
      int size()
      size
      • Methods inherited from class java.util.AbstractSet

        equals, hashCode, removeAll
      • Methods inherited from class java.util.AbstractCollection

        addAll, clear, contains, containsAll, isEmpty, remove, retainAll, toArray, toArray, toString
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface java.util.Collection

        parallelStream, removeIf, stream, toArray
      • Methods inherited from interface java.lang.Iterable

        forEach
      • Methods inherited from interface java.util.Set

        addAll, clear, contains, containsAll, isEmpty, remove, retainAll, spliterator, toArray, toArray
    • Constructor Detail

      • JdbcSet

        public JdbcSet​(java.util.Collection<E> c)

        Constructor for JdbcSet.

        Parameters:
        c - a Collection object.
      • JdbcSet

        public JdbcSet()

        Constructor for JdbcSet.

    • Method Detail

      • setElements

        protected void setElements​(java.util.Collection<E> c)

        setElements

        Parameters:
        c - a Collection object.
      • iterator

        public java.util.Iterator<E> iterator()

        iterator

        Specified by:
        iterator in interface java.util.Collection<E>
        Specified by:
        iterator in interface java.lang.Iterable<E>
        Specified by:
        iterator in interface java.util.Set<E>
        Specified by:
        iterator in class java.util.AbstractCollection<E>
        Returns:
        a Iterator object.
      • size

        public int size()

        size

        Specified by:
        size in interface java.util.Collection<E>
        Specified by:
        size in interface java.util.Set<E>
        Specified by:
        size in class java.util.AbstractCollection<E>
        Returns:
        a int.
      • add

        public boolean add​(E o)

        add

        Specified by:
        add in interface java.util.Collection<E>
        Specified by:
        add in interface java.util.Set<E>
        Overrides:
        add in class java.util.AbstractCollection<E>
        Parameters:
        o - a E object.
        Returns:
        a boolean.
      • getRemoved

        public java.util.Set<E> getRemoved()

        getRemoved

        Returns:
        a Set object.
      • getAdded

        public java.util.Set<E> getAdded()

        getAdded

        Returns:
        a Set object.
      • getRemaining

        public java.util.Set<E> getRemaining()

        getRemaining

        Returns:
        a Set object.
      • reset

        public void reset()

        reset