Uses of Interface
com.saperion.common.lang.criterion.Criterion
-
Packages that use Criterion Package Description com.saperion.common.lang.criterion Contains theCriterioninterface 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 classAndCriterion<T>ACriterionthat recombines two existing criteria.classInstanceOfCriterion<T>ACriterionthat tests instances against a specified class.classNotCriterion<T>classOrCriterion<T>ACriterionthat 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 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 Criterion Modifier and Type Method Description static <T> TIterators. extractSingleElement(java.util.Iterator<? extends T> iteratorInput, Criterion<? super T> criterion)Returns the one-and-only element of the specified specified inputIteratorthat satisfies the specifiedCriterion.static <T> voidIterators. filter(java.util.Iterator<T> iteratorInput, Criterion<? super T> criterion, java.util.Collection<? super T> colOutput)Iterates through the element of the specified inputIteratorand adds those elements that satisfy the specifiedCriterionto 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 newArrayListwith those elements of the specified inputIteratorthat 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.
-