|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Predicate<T>
Used when filtering a collection of objects of a given type; the predicate is passed each object in turn, and returns true to include the object in the result collection.
The F class includes a number of Predicate factory methods.
This was converted from a abstract base class to an interface in 5.3.
FlowOperations.filter(Predicate),
FlowOperations.remove(Predicate)| Method Summary | |
|---|---|
boolean |
accept(T element)
This method is overridden in subclasses to define which objects the Predicate will accept and which it will reject. |
| Method Detail |
|---|
boolean accept(T element)
element - the element from the flow to be evaluated by the Predicate
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||