public interface Eligible
This interface provides a mechanism for matching objects, using a filter on the object’s “kind” as criterion. How the kind is represented depends completely on the class that implements this interface.
Every instance of a class that implement this interface must provide
a default criterion (filter) that accepts the instance (though, of course,
not only this particular instance). Formally: for every instance “
Eligible, the expression
obj.isEligibleFor(obj.getDefaultCrtiterion()) must return
The default criterion can therefore be interpreted as the representation of the kind of the object.
boolean isEligibleFor(Object criterion)
true if this
is met by the provided criterion.
criterion- the criterion
trueif this meets the criterion