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 classJdbcSet.JdbcSetIterator
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanadd(E o)addjava.util.Set<E>getAdded()getAddedjava.util.Set<E>getRemaining()getRemainingjava.util.Set<E>getRemoved()getRemovedjava.util.Iterator<E>iterator()iteratorvoidreset()resetprotected voidsetElements(java.util.Collection<E> c)setElementsintsize()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- aCollectionobject.
-
JdbcSet
public JdbcSet()
Constructor for JdbcSet.
-
-
Method Detail
-
setElements
protected void setElements(java.util.Collection<E> c)
setElements
- Parameters:
c- aCollectionobject.
-
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
Setobject.
-
getAdded
public java.util.Set<E> getAdded()
getAdded
- Returns:
- a
Setobject.
-
getRemaining
public java.util.Set<E> getRemaining()
getRemaining
- Returns:
- a
Setobject.
-
reset
public void reset()
reset
-
-