Package org.opennms.core.collections
Class LazySet<E>
- java.lang.Object
-
- java.util.AbstractCollection<E>
-
- java.util.AbstractSet<E>
-
- org.opennms.core.collections.JdbcSet<E>
-
- org.opennms.core.collections.LazySet<E>
-
- All Implemented Interfaces:
Iterable<E>,Collection<E>,Set<E>
public class LazySet<E> extends JdbcSet<E>
LazySet class.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceLazySet.Loader<E>-
Nested classes/interfaces inherited from class org.opennms.core.collections.JdbcSet
JdbcSet.JdbcSetIterator
-
-
Constructor Summary
Constructors Constructor Description LazySet(LazySet.Loader<E> loader)Constructor for LazySet.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanaddAll(Collection<? extends E> arg0)voidclear()booleancontains(Object o)booleancontainsAll(Collection<?> arg0)booleanisEmpty()booleanisLoaded()isLoadedIterator<E>iterator()iteratorbooleanremove(Object o)booleanremoveAll(Collection<?> arg0)booleanretainAll(Collection<?> arg0)intsize()sizeObject[]toArray()<T> T[]toArray(T[] arg0)StringtoString()toString-
Methods inherited from class org.opennms.core.collections.JdbcSet
add, getAdded, getRemaining, getRemoved, reset, setElements
-
Methods inherited from class java.util.AbstractSet
equals, hashCode
-
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
-
Methods inherited from interface java.util.Set
spliterator
-
-
-
-
Constructor Detail
-
LazySet
public LazySet(LazySet.Loader<E> loader)
Constructor for LazySet.
- Parameters:
loader- aLazySet.Loaderobject.
-
-
Method Detail
-
size
public int size()
size
-
removeAll
public boolean removeAll(Collection<?> arg0)
- Specified by:
removeAllin interfaceCollection<E>- Specified by:
removeAllin interfaceSet<E>- Overrides:
removeAllin classAbstractSet<E>
-
addAll
public boolean addAll(Collection<? extends E> arg0)
- Specified by:
addAllin interfaceCollection<E>- Specified by:
addAllin interfaceSet<E>- Overrides:
addAllin classAbstractCollection<E>
-
clear
public void clear()
- Specified by:
clearin interfaceCollection<E>- Specified by:
clearin interfaceSet<E>- Overrides:
clearin classAbstractCollection<E>
-
contains
public boolean contains(Object o)
- Specified by:
containsin interfaceCollection<E>- Specified by:
containsin interfaceSet<E>- Overrides:
containsin classAbstractCollection<E>
-
containsAll
public boolean containsAll(Collection<?> arg0)
- Specified by:
containsAllin interfaceCollection<E>- Specified by:
containsAllin interfaceSet<E>- Overrides:
containsAllin classAbstractCollection<E>
-
isEmpty
public boolean isEmpty()
- Specified by:
isEmptyin interfaceCollection<E>- Specified by:
isEmptyin interfaceSet<E>- Overrides:
isEmptyin classAbstractCollection<E>
-
remove
public boolean remove(Object o)
- Specified by:
removein interfaceCollection<E>- Specified by:
removein interfaceSet<E>- Overrides:
removein classAbstractCollection<E>
-
retainAll
public boolean retainAll(Collection<?> arg0)
- Specified by:
retainAllin interfaceCollection<E>- Specified by:
retainAllin interfaceSet<E>- Overrides:
retainAllin classAbstractCollection<E>
-
toArray
public Object[] toArray()
- Specified by:
toArrayin interfaceCollection<E>- Specified by:
toArrayin interfaceSet<E>- Overrides:
toArrayin classAbstractCollection<E>
-
toArray
public <T> T[] toArray(T[] arg0)
- Specified by:
toArrayin interfaceCollection<E>- Specified by:
toArrayin interfaceSet<E>- Overrides:
toArrayin classAbstractCollection<E>
-
toString
public String toString()
toString
- Overrides:
toStringin classAbstractCollection<E>- Returns:
- a
Stringobject.
-
isLoaded
public boolean isLoaded()
isLoaded
- Returns:
- a boolean.
-
-