public interface EnqueuePredicate
| Modifier and Type | Method and Description |
|---|---|
boolean |
accept(java.lang.Object[] elements,
Sink modifyingSink)
Tests the given element for acceptance onto the m_sink.
|
boolean |
accept(java.lang.Object element,
Sink modifyingSink)
Tests the given element for acceptance onto the m_sink.
|
boolean accept(java.lang.Object element,
Sink modifyingSink)
element - The element to enqueuemodifyingSink - The sink that is used for this predicatetrue if the sink accepts the element;
false otherwise.boolean accept(java.lang.Object[] elements,
Sink modifyingSink)
elements - The array of elements to enqueuemodifyingSink - The sink that is used for this predicatetrue if the sink accepts all the elements;
false otherwise.