Interface Criterion<T>
-
- Type Parameters:
T
- type of testable objects
- All Known Implementing Classes:
AndCriterion
,InstanceOfCriterion
,NotCriterion
,OrCriterion
public interface Criterion<T>
An interface to define a criterion (usually for use in some kind of filtering method).
The concrete implementation should specify whether it can be used in several threads concurrently or not.
- Author:
- agz
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
isSatisfiedBy(T object)
Returns whether the specified object satisfies this criterion.
-
-
-
Method Detail
-
isSatisfiedBy
boolean isSatisfiedBy(T object)
Returns whether the specified object satisfies this criterion. Implementations have to acceptnull
-values without throwing exceptions.- Parameters:
object
- object to test- Returns:
- whether the specified object satisfies this criterion
-
-