|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.rice.cs.plt.collect.ListenerSet.Sink
public class ListenerSet.Sink
A write-only view of the set. This interface ensures that clients act independently — a client with only a reference to a certain listener cannot view, remove, or run other listeners.
| Constructor Summary | |
|---|---|
ListenerSet.Sink()
|
|
| Method Summary | |
|---|---|
boolean |
add(Runnable listener)
Add the given listener to the set, wrapped with LambdaUtil.promote(Runnable). |
boolean |
add(Runnable1<? super T> listener)
Add the given listener to the set. |
boolean |
addAll(Iterable<Runnable1<? super T>> addList)
Add the given listeners to the set. |
boolean |
remove(Runnable1<? super T> listener)
Remove the given listener from the set. |
boolean |
removeAll(Iterable<Runnable1<? super T>> removeList)
Remove all of the given listeners from the set. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ListenerSet.Sink()
| Method Detail |
|---|
public boolean add(Runnable1<? super T> listener)
public boolean add(Runnable listener)
LambdaUtil.promote(Runnable).
public boolean addAll(Iterable<Runnable1<? super T>> addList)
public boolean remove(Runnable1<? super T> listener)
public boolean removeAll(Iterable<Runnable1<? super T>> removeList)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||