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>


Nested Class Summary
 class JdbcSet.JdbcSetIterator
           
 
Constructor Summary
JdbcSet()
           
JdbcSet(Collection<E> c)
           
 
Method Summary
 boolean add(E o)
           
 Set<E> getAdded()
           
 Set<E> getRemaining()
           
 Set<E> getRemoved()
           
 Iterator<E> iterator()
           
 void reset()
           
protected  void setElements(Collection<E> c)
           
 int 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)

JdbcSet

public JdbcSet()
Method Detail

setElements

protected void setElements(Collection<E> c)

iterator

public Iterator<E> 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>

size

public int size()
Specified by:
size in interface Collection<E>
Specified by:
size in interface Set<E>
Specified by:
size in class AbstractCollection<E>

add

public boolean add(E o)
Specified by:
add in interface Collection<E>
Specified by:
add in interface Set<E>
Overrides:
add in class AbstractCollection<E>

getRemoved

public Set<E> getRemoved()

getAdded

public Set<E> getAdded()

getRemaining

public Set<E> getRemaining()

reset

public void reset()


Copyright © 2009. All Rights Reserved.