Uses of Interface
com.saperion.common.lang.criterion.Criterion
Packages that use Criterion
Package
Description
Contains the
Criterion
interface and some standard implementations for
simple filter-oriented programming.Contains standard iterator classes.
-
Uses of Criterion in com.saperion.common.lang.criterion
Classes in com.saperion.common.lang.criterion that implement CriterionModifier and TypeClassDescriptionfinal class
AndCriterion<T>
ACriterion
that recombines two existing criteria.final class
ACriterion
that tests instances against a specified class.final class
NotCriterion<T>
final class
OrCriterion<T>
ACriterion
that recombines two existing criteria.Constructors in com.saperion.common.lang.criterion with parameters of type CriterionModifierConstructorDescriptionAndCriterion
(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 CriterionModifier and TypeMethodDescriptionstatic <T> T
Iterators.extractSingleElement
(Iterator<? extends T> iteratorInput, Criterion<? super T> criterion) static <T> void
Iterators.filter
(Iterator<T> iteratorInput, Criterion<? super T> criterion, 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> ArrayList<T>
Iterators.newArrayList
(Iterator<? extends T> iteratorInput, Criterion<? super T> criterion, int sizeGuess) Constructors in com.saperion.common.lang.iterator with parameters of type CriterionModifierConstructorDescriptionCriterionIterator
(Iterator<? extends T> iterator, Criterion<? super T> criterion) Creates a newCriterionIterator
, that filters the objects of the specified iterator using the specifiedCriterion
.