Uses of Interface
com.saperion.common.lang.criterion.Criterion
-
Packages that use Criterion Package Description com.saperion.common.lang.criterion Contains theCriterion
interface and some standard implementations for simple filter-oriented programming.com.saperion.common.lang.iterator Contains standard iterator classes. -
-
Uses of Criterion in com.saperion.common.lang.criterion
Classes in com.saperion.common.lang.criterion that implement Criterion Modifier and Type Class Description class
AndCriterion<T>
ACriterion
that recombines two existing criteria.class
InstanceOfCriterion<T>
ACriterion
that tests instances against a specified class.class
NotCriterion<T>
class
OrCriterion<T>
ACriterion
that recombines two existing criteria.Constructors in com.saperion.common.lang.criterion with parameters of type Criterion Constructor Description AndCriterion(Criterion<? super T> criterion1, Criterion<? super T> criterion2)
Creates a newAndCriterion
, that combines the two specified criteria.NotCriterion(Criterion<? super T> criterion)
Creates a newNotCriterion
based on the specifiedCriterion
.NotCriterion(Criterion<? super T> criterion, CriterionIsSatisfiedByNullType criterionIsSatisfiedByNullType)
Creates a newNotCriterion
based on the specifiedCriterion
with the specifiedCriterionIsSatisfiedByNullType
.OrCriterion(Criterion<? super T> criterion1, Criterion<? super T> criterion2)
Creates a newOrCriterion
, that combines the two specified criteria. -
Uses of Criterion in com.saperion.common.lang.iterator
Methods in com.saperion.common.lang.iterator with parameters of type Criterion Modifier and Type Method Description static <T> T
Iterators. extractSingleElement(java.util.Iterator<? extends T> iteratorInput, Criterion<? super T> criterion)
Returns the one-and-only element of the specified specified inputIterator
that satisfies the specifiedCriterion
.static <T> void
Iterators. filter(java.util.Iterator<T> iteratorInput, Criterion<? super T> criterion, java.util.Collection<? super T> colOutput)
Iterates through the element of the specified inputIterator
and adds those elements that satisfy the specifiedCriterion
to the specified outputCollection
.static <T> java.util.ArrayList<T>
Iterators. newArrayList(java.util.Iterator<? extends T> iteratorInput, Criterion<? super T> criterion, int sizeGuess)
Creates a newArrayList
with those elements of the specified inputIterator
that satisfy the specifiedCriterion
.Constructors in com.saperion.common.lang.iterator with parameters of type Criterion Constructor Description CriterionIterator(java.util.Iterator<? extends T> iterator, Criterion<? super T> criterion)
Creates a newCriterionIterator
, that filters the objects of the specified iterator using the specifiedCriterion
.
-