E - set element typepublic class DefaultDistributedSet<E> extends Object implements org.onosproject.store.service.DistributedSet<E>
| Constructor and Description |
|---|
DefaultDistributedSet(String name,
boolean meteringEnabled,
org.onosproject.store.service.ConsistentMap<E,Boolean> backingMap) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(E e) |
boolean |
addAll(Collection<? extends E> c) |
void |
addListener(org.onosproject.store.service.SetEventListener<E> listener) |
void |
clear() |
boolean |
contains(Object o) |
boolean |
containsAll(Collection<?> c) |
boolean |
isEmpty() |
Iterator<E> |
iterator() |
boolean |
remove(Object o) |
boolean |
removeAll(Collection<?> c) |
void |
removeListener(org.onosproject.store.service.SetEventListener<E> listener) |
boolean |
retainAll(Collection<?> c) |
int |
size() |
Object[] |
toArray() |
<T> T[] |
toArray(T[] a) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitequals, hashCode, spliteratorparallelStream, removeIf, streampublic int size()
public boolean isEmpty()
public boolean contains(Object o)
public Object[] toArray()
public <T> T[] toArray(T[] a)
public boolean add(E e)
public boolean remove(Object o)
public boolean containsAll(Collection<?> c)
containsAll in interface Collection<E>containsAll in interface Set<E>public boolean addAll(Collection<? extends E> c)
public boolean retainAll(Collection<?> c)
public boolean removeAll(Collection<?> c)
public void clear()
public void addListener(org.onosproject.store.service.SetEventListener<E> listener)
addListener in interface org.onosproject.store.service.DistributedSet<E>Copyright © 2015. All rights reserved.