E
- The type of element that is stored in the set.public class DynamicDifferenceSet<E>
extends java.lang.Object
implements java.util.Set<E>
Constructor and Description |
---|
DynamicDifferenceSet(java.util.Set<E> source,
java.util.Set<E> removals)
Constructor for creating a difference set instance.
|
Modifier and Type | Method and Description |
---|---|
boolean |
add(E e)
Adding elements to a difference set is unsupported.
|
boolean |
addAll(java.util.Collection<? extends E> c)
Adding elements to a difference set is unsupported.
|
void |
clear()
Modifying a difference set is unsupported.
|
boolean |
contains(java.lang.Object o)
Check if an element is contained in the difference set.
|
boolean |
containsAll(java.util.Collection<?> c)
Check if all provided elements are contained in the difference set of the
moment.
|
boolean |
isEmpty()
Check if the difference set of the moment is empty.
|
java.util.Iterator<E> |
iterator()
Get an iterator for the difference set of the moment.
|
boolean |
remove(java.lang.Object o)
Removing elements from a difference set is unsupported.
|
boolean |
removeAll(java.util.Collection<?> c)
Removing elements from a difference set is unsupported.
|
boolean |
retainAll(java.util.Collection<?> c)
Modifying a difference set is unsupported.
|
int |
size()
Get the size of the difference set.
|
java.lang.Object[] |
toArray()
Get an array of the current difference set.
|
<T> T[] |
toArray(T[] a)
Get an array of the current difference set.
|
public int size()
public boolean isEmpty()
public boolean contains(java.lang.Object o)
public java.util.Iterator<E> iterator()
public java.lang.Object[] toArray()
public <T> T[] toArray(T[] a)
public boolean add(E e)
public boolean remove(java.lang.Object o)
public boolean containsAll(java.util.Collection<?> c)
public boolean addAll(java.util.Collection<? extends E> c)
public boolean removeAll(java.util.Collection<?> c)
public boolean retainAll(java.util.Collection<?> c)
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.