Uses of Interface
de.renebergelt.quiterables.Predicate
Packages that use Predicate
Package
Description
-
Uses of Predicate in de.renebergelt.quiterables
Methods in de.renebergelt.quiterables with parameters of type PredicateModifier and TypeMethodDescriptionbooleanReturn if all elements in the enumeration fulfill the given predicateintReturn the amount of elements in the (finite) enumeration which satisfy the given predicate This is basically the same as .where(predicate).count()booleanTest if at least one element of the enumeration fulfills the conditionReturn the first element of the enumeration for which the predicate is true or throw NoSuchElementException if no corresponding element existsQueriable.firstOrDefault(Predicate<T> predicate)Return the first element in the enumeration for which the predicate is true or null if no corresponding element existsQueriable.firstOrDefault(Predicate<T> predicate, T defaultValue)Return the first element in the enumeration for which the predicate is true or the given default value if no corresponding element existsReturn the last element of the enumeration for which the predicate is true or throw NoSuchElementException if no corresponding element existsQueriable.lastOrDefault(Predicate<T> predicate)Return the last element in the enumeration for which the predicate is true or null if no corresponding element exists This is basically the same as .where(predicate).lastOrDefault()Queriable.lastOrDefault(Predicate<T> predicate, T defaultValue)Return the last element in the enumeration for which the predicate is true or the given default value if no corresponding element exists This is basically the same as .where(predicate).lastOrDefault()If the iterable contains only one element which satisfies the condition return this element.Queriable.singleOrDefault(Predicate<T> predicate)If the iterable contains only one element which satisfies the condition return this element.Return a queriable which starts at the first element of the enumeration which does not satisfy the condition, if no such element exists the returned Queriable is emptyTake elements from the enumeration as long as they satisfy the condition or until the enumeration endsReturn all elements from the enumeration for which the predicate holds true or return an empty list if no such elements exist -
Uses of Predicate in de.renebergelt.quiterables.grouping
Methods in de.renebergelt.quiterables.grouping with parameters of type Predicate -
Uses of Predicate in de.renebergelt.quiterables.iterators
Constructors in de.renebergelt.quiterables.iterators with parameters of type PredicateModifierConstructorDescriptionLazySkipIterable(Iterable<T> _wrapped, Predicate<T> _skipWhileCondition)Create a new lazy skip iterable which wraps the given iterableLazyTakeIterable(Iterable<T> _wrapped, Predicate<T> _takeWhileCondition)Create a new lazy take iterable which wraps the given iterableLazyWhereIterable(Iterable<T> _wrapped, Predicate<T> _predicate)Create a new lazy where iterable which wraps the given iterable