private static class MessageSender.BlockingSet
extends java.util.AbstractSet
Modifier and Type | Field and Description |
---|---|
private boolean |
done_ |
private java.util.List |
list_ |
Constructor and Description |
---|
BlockingSet()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
add(java.lang.Object o) |
void |
done()
Indicates that no more items will be added to this set.
|
java.util.Iterator |
iterator() |
int |
size() |
addAll, clear, contains, containsAll, isEmpty, remove, retainAll, toArray, toArray, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
public boolean add(java.lang.Object o)
add
in interface java.util.Collection
add
in interface java.util.Set
add
in class java.util.AbstractCollection
public void done()
public int size()
size
in interface java.util.Collection
size
in interface java.util.Set
size
in class java.util.AbstractCollection
public java.util.Iterator iterator()
iterator
in interface java.lang.Iterable
iterator
in interface java.util.Collection
iterator
in interface java.util.Set
iterator
in class java.util.AbstractCollection