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 class
JdbcSet.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 boolean
add(E o)
addSet<E>
getAdded()
getAddedSet<E>
getRemaining()
getRemainingSet<E>
getRemoved()
getRemovedIterator<E>
iterator()
iteratorvoid
reset()
resetprotected void
setElements(Collection<E> c)
setElementsint
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
-
-
-
-
Constructor Detail
-
JdbcSet
public JdbcSet(Collection<E> c)
Constructor for JdbcSet.
- Parameters:
c
- aCollection
object.
-
JdbcSet
public JdbcSet()
Constructor for JdbcSet.
-
-
Method Detail
-
setElements
protected void setElements(Collection<E> c)
setElements
- Parameters:
c
- aCollection
object.
-
size
public int size()
size
- Specified by:
size
in interfaceCollection<E>
- Specified by:
size
in interfaceSet<E>
- Specified by:
size
in classAbstractCollection<E>
- Returns:
- a int.
-
add
public boolean add(E o)
add
- Specified by:
add
in interfaceCollection<E>
- Specified by:
add
in interfaceSet<E>
- Overrides:
add
in classAbstractCollection<E>
- Parameters:
o
- a E object.- Returns:
- a boolean.
-
reset
public void reset()
reset
-
-