edu.rice.comp211.laundry.list
Interface Predicate<T>

Type Parameters:
T - the type of element to test.

public interface Predicate<T>

Interface for predicate closures to test objects of type T for some condition.


Method Summary
 boolean test(T elt)
          The method that is called to test a given object
 

Method Detail

test

boolean test(T elt)
The method that is called to test a given object

Parameters:
elt - the object of type T to test
Returns:
true if the test is true, false otherwise