Package org.onosproject.persistence.impl
Class PersistentSet<E>
- java.lang.Object
-
- org.onosproject.persistence.impl.PersistentSet<E>
-
- All Implemented Interfaces:
java.lang.Iterable<E>,java.util.Collection<E>,java.util.Set<E>
public class PersistentSet<E> extends java.lang.Object implements java.util.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, java.lang.String name)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanadd(E item)booleanaddAll(java.util.Collection<? extends E> c)voidclear()booleancontains(java.lang.Object o)booleancontainsAll(java.util.Collection<?> c)booleanequals(java.lang.Object set)inthashCode()booleanisEmpty()java.util.Iterator<E>iterator()voidreadInto(java.util.Set<E> items)booleanremove(java.lang.Object o)booleanremoveAll(java.util.Collection<?> c)booleanretainAll(java.util.Collection<?> c)intsize()java.lang.Object[]toArray()<T> T[]toArray(T[] a)
-
-
-
Method Detail
-
readInto
public void readInto(java.util.Set<E> items)
-
size
public int size()
-
isEmpty
public boolean isEmpty()
-
contains
public boolean contains(java.lang.Object o)
-
iterator
public java.util.Iterator<E> iterator()
-
toArray
public java.lang.Object[] toArray()
-
toArray
public <T> T[] toArray(T[] a)
-
add
public boolean add(E item)
-
remove
public boolean remove(java.lang.Object o)
-
containsAll
public boolean containsAll(java.util.Collection<?> c)
-
addAll
public boolean addAll(java.util.Collection<? extends E> c)
-
retainAll
public boolean retainAll(java.util.Collection<?> c)
-
removeAll
public boolean removeAll(java.util.Collection<?> c)
-
clear
public void clear()
-
equals
public boolean equals(java.lang.Object set)
-
-