Class InstanceOfCriterion<T>
java.lang.Object
com.saperion.common.lang.criterion.InstanceOfCriterion<T>
- Type Parameters:
- T- type of testable objects
- All Implemented Interfaces:
- Criterion<T>
 A Criterion that tests instances against a specified class.
 
 Objects satisfy this InstanceOfCriterion if and only if they are an instance of the specified class.
 
 An instance of this InstanceOfCriterion can be used in several threads concurrently.
 
- Author:
- agz
- 
Constructor SummaryConstructorsConstructorDescriptionInstanceOfCriterion(Class<? extends T> clazz) Creates a newInstanceOfCriterionbased on the specifiedClass.
- 
Method SummaryModifier and TypeMethodDescriptionbooleanisSatisfiedBy(T object) Returns whether the specified object satisfies this criterion.toString()
- 
Constructor Details- 
InstanceOfCriterionCreates a newInstanceOfCriterionbased on the specifiedClass.The specified Classmust not benull.- Parameters:
- clazz-- Classto test the objects against
 
 
- 
- 
Method Details- 
isSatisfiedByDescription copied from interface:CriterionReturns whether the specified object satisfies this criterion. Implementations have to acceptnull-values without throwing exceptions.- Specified by:
- isSatisfiedByin interface- Criterion<T>
- Parameters:
- object- object to test
- Returns:
- whether the specified object satisfies this criterion
 
- 
toString
 
-