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:
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.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description class
JdbcSet.JdbcSetIterator
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
add(E o)
addjava.util.Set<E>
getAdded()
getAddedjava.util.Set<E>
getRemaining()
getRemainingjava.util.Set<E>
getRemoved()
getRemovedjava.util.Iterator<E>
iterator()
iteratorvoid
reset()
resetprotected void
setElements(java.util.Collection<E> c)
setElementsint
size()
size-
Methods inherited from class java.util.AbstractCollection
addAll, clear, contains, containsAll, isEmpty, remove, retainAll, toArray, toArray, toString
-
-
-
-
Constructor Detail
-
JdbcSet
public JdbcSet(java.util.Collection<E> c)
Constructor for JdbcSet.
- Parameters:
c
- aCollection
object.
-
JdbcSet
public JdbcSet()
Constructor for JdbcSet.
-
-
Method Detail
-
setElements
protected void setElements(java.util.Collection<E> c)
setElements
- Parameters:
c
- aCollection
object.
-
iterator
public java.util.Iterator<E> iterator()
iterator
-
size
public int size()
size
-
add
public boolean add(E o)
add
-
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
-
-