Class AndCriterion<T>
- java.lang.Object
- 
- com.saperion.common.lang.criterion.AndCriterion<T>
 
- 
- Type Parameters:
- T- type of testable objects
 - All Implemented Interfaces:
- Criterion<T>
 
 public final class AndCriterion<T> extends java.lang.Object implements Criterion<T> A Criterionthat recombines two existing criteria.Objects satisfy this AndCriterionif and only if they satisfy both constituting criteria.This implementation is not synchronized. If the two constituting criteria are independent of each other (no side effects) and can be used by multiple threads concurrently, this AndCriterioncan be used by multiple threads concurrently as well. In any other case if used by different threads concurrently, external synchronization is necessary.- Author:
- agz
 
- 
- 
Constructor SummaryConstructors Constructor Description AndCriterion(Criterion<? super T> criterion1, Criterion<? super T> criterion2)Creates a newAndCriterion, that combines the two specified criteria.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanisSatisfiedBy(T object)Returns whether the specified object satisfies this criterion.java.lang.StringtoString()
 
- 
- 
- 
Constructor Detail- 
AndCriterionpublic AndCriterion(Criterion<? super T> criterion1, Criterion<? super T> criterion2) Creates a newAndCriterion, that combines the two specified criteria. The specified criteria must not benull.
 
- 
 - 
Method Detail- 
isSatisfiedBypublic boolean isSatisfiedBy(T object) Description 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
 
 - 
toStringpublic java.lang.String toString() - Overrides:
- toStringin class- java.lang.Object
 
 
- 
 
-