Package com.swoval.functional
Interface Filter<T>
-
- Type Parameters:
T- The type of object to filter
public interface Filter<T>Generic Filter functional interface.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanaccept(T t)Accept only some instances ofT.
-
-
-
Method Detail
-
accept
boolean accept(T t)
Accept only some instances ofT.- Parameters:
t- The instance to filter- Returns:
- true if the instance is accepted
-
-