Package org.onosproject.persistence.impl
Class PersistentSet<E>
- java.lang.Object
-
- org.onosproject.persistence.impl.PersistentSet<E>
-
- All Implemented Interfaces:
Iterable<E>,Collection<E>,Set<E>
public class PersistentSet<E> extends Object implements Set<E>
A set implementation that gets and receives all data from a serialized internal set.
-
-
Constructor Summary
Constructors Constructor Description PersistentSet(org.onosproject.store.service.Serializer serializer, org.mapdb.DB database, String name)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanadd(E item)booleanaddAll(Collection<? extends E> c)voidclear()booleancontains(Object o)booleancontainsAll(Collection<?> c)booleanequals(Object set)inthashCode()booleanisEmpty()Iterator<E>iterator()voidreadInto(Set<E> items)booleanremove(Object o)booleanremoveAll(Collection<?> c)booleanretainAll(Collection<?> c)intsize()Object[]toArray()<T> T[]toArray(T[] a)-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
-
Methods inherited from interface java.util.Set
spliterator
-
-
-
-
Constructor Detail
-
PersistentSet
public PersistentSet(org.onosproject.store.service.Serializer serializer, org.mapdb.DB database, String name)
-
-
Method Detail
-
size
public int size()
-
isEmpty
public boolean isEmpty()
-
contains
public boolean contains(Object o)
-
toArray
public Object[] toArray()
-
toArray
public <T> T[] toArray(T[] a)
-
add
public boolean add(E item)
-
remove
public boolean remove(Object o)
-
containsAll
public boolean containsAll(Collection<?> c)
- Specified by:
containsAllin interfaceCollection<E>- Specified by:
containsAllin interfaceSet<E>
-
addAll
public boolean addAll(Collection<? extends E> c)
-
retainAll
public boolean retainAll(Collection<?> c)
-
removeAll
public boolean removeAll(Collection<?> c)
-
clear
public void clear()
-
equals
public boolean equals(Object set)
-
-