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 classAndCriterion<T>ACriterionthat recombines two existing criteria.final classACriterionthat tests instances against a specified class.final classNotCriterion<T>final classOrCriterion<T>ACriterionthat 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 newNotCriterionbased on the specifiedCriterion.NotCriterion(Criterion<? super T> criterion, CriterionIsSatisfiedByNullType criterionIsSatisfiedByNullType) Creates a newNotCriterionbased on the specifiedCriterionwith 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> TIterators.extractSingleElement(Iterator<? extends T> iteratorInput, Criterion<? super T> criterion) static <T> voidIterators.filter(Iterator<T> iteratorInput, Criterion<? super T> criterion, Collection<? super T> colOutput) Iterates through the element of the specified inputIteratorand adds those elements that satisfy the specifiedCriterionto 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.