Package org.opennms.core.collections
Class JdbcSet<E>
- java.lang.Object
-
- java.util.AbstractCollection<E>
-
- java.util.AbstractSet<E>
-
- org.opennms.core.collections.JdbcSet<E>
-
- All Implemented Interfaces:
Iterable<E>,Collection<E>,Set<E>
- Direct Known Subclasses:
LazySet
public class JdbcSet<E> extends AbstractSet<E>
JdbcSet class.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description classJdbcSet.JdbcSetIterator
-
Constructor Summary
Constructors Constructor Description JdbcSet()Constructor for JdbcSet.JdbcSet(Collection<E> c)Constructor for JdbcSet.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanadd(E o)addSet<E>getAdded()getAddedSet<E>getRemaining()getRemainingSet<E>getRemoved()getRemovedIterator<E>iterator()iteratorvoidreset()resetprotected voidsetElements(Collection<E> c)setElementsintsize()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
-
-
-
-
Constructor Detail
-
JdbcSet
public JdbcSet(Collection<E> c)
Constructor for JdbcSet.
- Parameters:
c- aCollectionobject.
-
JdbcSet
public JdbcSet()
Constructor for JdbcSet.
-
-
Method Detail
-
setElements
protected void setElements(Collection<E> c)
setElements
- Parameters:
c- aCollectionobject.
-
size
public int size()
size
- Specified by:
sizein interfaceCollection<E>- Specified by:
sizein interfaceSet<E>- Specified by:
sizein classAbstractCollection<E>- Returns:
- a int.
-
add
public boolean add(E o)
add
- Specified by:
addin interfaceCollection<E>- Specified by:
addin interfaceSet<E>- Overrides:
addin classAbstractCollection<E>- Parameters:
o- a E object.- Returns:
- a boolean.
-
reset
public void reset()
reset
-
-