org.opennms.core.utils
Class JdbcSet<E>

java.lang.Object
  extended by java.util.AbstractCollection<E>
      extended by java.util.AbstractSet<E>
          extended by org.opennms.core.utils.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
 class JdbcSet.JdbcSetIterator
           
 
Constructor Summary
JdbcSet()
          Constructor for JdbcSet.
JdbcSet(Collection<E> c)
          Constructor for JdbcSet.
 
Method Summary
 boolean add(E o)
          add
 Set<E> getAdded()
          getAdded
 Set<E> getRemaining()
          getRemaining
 Set<E> getRemoved()
          getRemoved
 Iterator<E> iterator()
          iterator
 void reset()
          reset
protected  void setElements(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.Set
addAll, clear, contains, containsAll, isEmpty, remove, retainAll, toArray, toArray
 

Constructor Detail

JdbcSet

public JdbcSet(Collection<E> c)

Constructor for JdbcSet.

Type Parameters:
E - a E object.
Parameters:
c - a Collection object.

JdbcSet

public JdbcSet()

Constructor for JdbcSet.

Method Detail

setElements

protected void setElements(Collection<E> c)

setElements

Parameters:
c - a Collection object.

iterator

public Iterator<E> iterator()

iterator

Specified by:
iterator in interface Iterable<E>
Specified by:
iterator in interface Collection<E>
Specified by:
iterator in interface Set<E>
Specified by:
iterator in class AbstractCollection<E>
Returns:
a Iterator object.

size

public int size()

size

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

add

public boolean add(E o)

add

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

getRemoved

public Set<E> getRemoved()

getRemoved

Returns:
a Set object.

getAdded

public Set<E> getAdded()

getAdded

Returns:
a Set object.

getRemaining

public Set<E> getRemaining()

getRemaining

Returns:
a Set object.

reset

public void reset()

reset



Copyright © 2011. All Rights Reserved.