Skip navigation links
A B C D E F G H I J K L M N O P S T W 

A

allCharsMatch(Function<? super T, ? extends CharSequence>, IntPredicate) - Static method in class org.perro.functions.predicate.PredicateUtils
Given a Function that takes an element of type <T> and returns a CharSequence, this method builds a Predicate that takes an element of type <T>, and determines if all of the characters in the character sequence returned from the function match the given IntPredicate.
allMatch(Function<? super T, ? extends Collection<R>>, Predicate<R>) - Static method in class org.perro.functions.predicate.PredicateUtils
Given a Function that takes an element of type <T>, and returns a Collection<R>, this method builds a Predicate that takes an element of type <T>, and determines if all of the elements of the collection returned by that function match a given Predicate.
allMatch(Collection<T>, Predicate<T>) - Static method in class org.perro.functions.stream.StreamUtils
Given a Collection of objects of type <T> and a Predicate, returns a boolean value indicating whether all of the values in the collection match the predicate.
anyCharsMatch(Function<? super T, ? extends CharSequence>, IntPredicate) - Static method in class org.perro.functions.predicate.PredicateUtils
Given a Function that takes an element of type <T> and returns a CharSequence, this method builds a Predicate that takes an element of type <T>, and determines if any of the characters in the character sequence returned from the function match the given IntPredicate.
anyMatch(Function<? super T, ? extends Collection<R>>, Predicate<R>) - Static method in class org.perro.functions.predicate.PredicateUtils
Given a Function that takes an element of type <T>, and returns a Collection<R>, this method builds a Predicate that takes an element of type <T>, and determines if any of the elements of the collection returned by that function match a given Predicate.
anyMatch(Collection<T>, Predicate<T>) - Static method in class org.perro.functions.stream.StreamUtils
Given a Collection of objects of type <T> and a Predicate, returns a boolean value indicating whether any of the values in the collection match the predicate.

B

booleanSupplier(Function<T, Boolean>, T) - Static method in class org.perro.functions.supplier.BooleanSupplierUtils
Builds a BooleanSupplier from a passed Function which takes a parameter of type <T>, and returns a Boolean.
booleanSupplier(BiFunction<T, U, Boolean>, ConstantValues<T, U>) - Static method in class org.perro.functions.supplier.BooleanSupplierUtils
Builds a BooleanSupplier from a passed BiFunction which takes parameters of type <T> and <U>, and returns a Boolean.
BooleanSupplierUtils - Class in org.perro.functions.supplier
Methods that build suppliers, specifically those involving primitive boolean types.

C

checkArgument(boolean, Object) - Static method in class org.perro.functions.internal.Invariants
 
CollectorUtils - Class in org.perro.functions.collector
Methods that build different kinds of Collector instances useful in conjunction with Java streams.
ComparatorUtils - Class in org.perro.functions.comparator
Methods that build comparators useful in many different situations, particularly in Java streams.
comparingNullsFirst() - Static method in class org.perro.functions.comparator.ComparatorUtils
Builds a comparator that can be used to compare and sort instances of any type that extends Comparable.
comparingNullsFirst(Function<? super T, ? extends R>) - Static method in class org.perro.functions.comparator.ComparatorUtils
Builds a comparator that can be used to compare and sort instances of any type, provided that the keyExtractor function retrieves an instance of Comparable from them.
comparingNullsLast() - Static method in class org.perro.functions.comparator.ComparatorUtils
Builds a comparator that can be used to compare and sort instances of any type that extends Comparable.
comparingNullsLast(Function<? super T, ? extends R>) - Static method in class org.perro.functions.comparator.ComparatorUtils
Builds a comparator that can be used to compare and sort instances of any type, provided that the keyExtractor function retrieves an instance of Comparable from them.
conditionalCollector(Predicate<T>) - Static method in class org.perro.functions.collector.CollectorUtils
When using the Java Collectors.groupingBy(...) methods, you might come across a situation where you want to include a grouping with a key in the resulting map, but don't want to include particular elements in the collection it maps to.
conditionalCollector(Predicate<T>, Supplier<R>) - Static method in class org.perro.functions.collector.CollectorUtils
When using the Java Collectors.groupingBy(...) methods, you might come across a situation where you want to include a grouping with a key in the resulting map, but don't want to include particular elements in the collection it maps to.
constant(boolean) - Static method in class org.perro.functions.predicate.PredicateUtils
Builds a predicate based on a passed constant boolean value.
constantValues(T, U) - Static method in class org.perro.functions.supplier.SupplierUtils
Builds an object representing a pair of constant values of type <T> and <U> to be used as the second parameter to the above SupplierUtils.supplier(BiFunction, ConstantValues) method.
consumer(Consumer<T>) - Static method in class org.perro.functions.consumer.ConsumerUtils
Simply casts a method reference, which takes a single parameter of type <T> and returns void, to a Consumer.
consumer(Runnable) - Static method in class org.perro.functions.consumer.ConsumerUtils
Simply casts a method reference, which takes no parameters and returns void, to a Consumer.
consumer(BiConsumer<? super T, ? super U>, U) - Static method in class org.perro.functions.consumer.ConsumerUtils
Builds a consumer from a passed BiConsumer, which can be very useful in the common situation where you are streaming through a collection of elements, and have a method to call that takes two parameters - the first one being the element on which you are streaming, and the second being some constant value that will be passed to all invocations.
ConsumerUtils - Class in org.perro.functions.consumer
Methods that build consumers useful in many different situations, particularly in Java streams.
contains(Collection<? extends R>, Function<? super T, ? extends R>) - Static method in class org.perro.functions.predicate.PredicateUtils
Given a Collection whose elements are of type <R>, and a Function that takes an element of type <T> and returns a value of type <R>, this method builds a Predicate that takes an element of type <T>, and determines if the given collection contains the value returned by the function.
containsAll(Collection<? extends R>, Function<? super T, Collection<? extends R>>) - Static method in class org.perro.functions.predicate.PredicateUtils
Given a Collection whose elements are of type <R>, and a Function that takes an element of type <T> and returns a Collection whose elements are of type <R>, this method builds a Predicate that takes an element of type <T>, and determines if the given collection contains all of the values in the collection returned by the function.
containsChar(Function<? super T, ? extends CharSequence>, int) - Static method in class org.perro.functions.predicate.PredicateUtils
Given a Function that takes an element of type <T> and returns a CharSequence, this method builds a Predicate that takes an element of type <T>, and determines if the character sequence returned from the function contains at least one character matching the given searchChar.
containsCharIgnoreCase(Function<? super T, ? extends CharSequence>, int) - Static method in class org.perro.functions.predicate.PredicateUtils
Given a Function that takes an element of type <T> and returns a CharSequence, this method builds a Predicate that takes an element of type <T>, and determines if the character sequence returned from the function contains at least one character matching the given searchChar ignoring case.
containsKey(Map<R, ?>, Function<? super T, ? extends R>) - Static method in class org.perro.functions.predicate.PredicateUtils
Given a Map whose keys are of type <R>, and a Function that takes an element of type <T> and returns a value of type <R>, this method builds a Predicate that takes an element of type <T>, and determines if the given map contains a key equal to the value returned by the function.
containsSeq(Function<? super T, ? extends CharSequence>, CharSequence) - Static method in class org.perro.functions.predicate.PredicateUtils
Given a Function that takes an element of type <T> and returns a CharSequence, this method builds a Predicate that takes an element of type <T>, and determines if the character sequence returned from the function contains at least one matching instance of the given searchSeq.
containsSeqIgnoreCase(Function<? super T, ? extends CharSequence>, CharSequence) - Static method in class org.perro.functions.predicate.PredicateUtils
Given a Function that takes an element of type <T> and returns a CharSequence, this method builds a Predicate that takes an element of type <T>, and determines if the character sequence returned from the function contains at least one matching instance of the given searchSeq ignoring case.
containsValue(Map<?, R>, Function<? super T, ? extends R>) - Static method in class org.perro.functions.predicate.PredicateUtils
Given a Map whose values are of type <R>, and a Function that takes an element of type <T> and returns a value of type <R>, this method builds a Predicate that takes an element of type <T>, and determines if the given map contains at least one value equal to the value returned by the function.
count(Collection<T>, Predicate<T>) - Static method in class org.perro.functions.stream.StreamUtils
Given a Collection of objects of type <T>, and a Predicate, returns a long value indicating the number of elements in the collection that match the predicate.

D

dblAdd(double) - Static method in class org.perro.functions.mapper.DblMapperUtils
Builds a DoubleUnaryOperator that adds a constant value to a double parameter.
dblAllMatch(double[], DoublePredicate) - Static method in class org.perro.functions.stream.DblStreamUtils
Given an array of doubles and a DoublePredicate, returns a boolean value indicating whether all of the values in the array match the predicate.
dblAnyMatch(double[], DoublePredicate) - Static method in class org.perro.functions.stream.DblStreamUtils
Given an array of doubles and a DoublePredicate, returns a boolean value indicating whether any of the values in the array match the predicate.
dblConstant(boolean) - Static method in class org.perro.functions.predicate.DblPredicateUtils
Builds a double predicate based on a passed constant boolean value.
dblConsumer(DoubleConsumer) - Static method in class org.perro.functions.consumer.DblConsumerUtils
Simply casts a method reference, which takes a single parameter of type double and returns void, to a DoubleConsumer.
dblConsumer(Runnable) - Static method in class org.perro.functions.consumer.DblConsumerUtils
Simply casts a method reference, which takes no parameters and returns void, to a DoubleConsumer.
dblConsumer(BiConsumer<Double, ? super U>, U) - Static method in class org.perro.functions.consumer.DblConsumerUtils
Builds a DoubleConsumer from a passed BiConsumer.
DblConsumerUtils - Class in org.perro.functions.consumer
Methods that build consumers useful in many different situations, particularly in Java streams.
dblCount(double[], DoublePredicate) - Static method in class org.perro.functions.stream.DblStreamUtils
Given an array of doubles and a DoublePredicate, returns a long value indicating the number of values in the array that match the predicate.
dblDivide(double) - Static method in class org.perro.functions.mapper.DblMapperUtils
Builds a DoubleUnaryOperator that divides its double parameter by a constant value.
dblFilter(double[], DoublePredicate) - Static method in class org.perro.functions.predicate.DblFilterUtils
Filters an array of doubles, based a predicate, into another double array.
dblFilter(double[], DoubleFilterCollector<C>) - Static method in class org.perro.functions.predicate.DblFilterUtils
Filters an array of doubles, based a predicate, into a collection.
dblFilterAndThen(DoublePredicate, Collector<Double, ?, C>) - Static method in class org.perro.functions.predicate.DblFilterUtils
Builds an object combining a DoublePredicate and a Collector for use in the DblFilterUtils.dblFilter(double[], DoubleFilterCollector) method.
dblFilterDistinct(double[], DoublePredicate) - Static method in class org.perro.functions.predicate.DblFilterUtils
Filters an array of doubles, based a predicate, into an array of distinct double values (according to Double.compare(double, double)).
dblFilterDistinct(double[], DoubleFilterCollector<C>) - Static method in class org.perro.functions.predicate.DblFilterUtils
Filters an array of doubles, based a predicate, into an array of distinct double values.
dblFilterToSet(double[], DoublePredicate) - Static method in class org.perro.functions.predicate.DblFilterUtils
Filters an array of doubles, based a predicate, into a set.
DblFilterUtils - Class in org.perro.functions.predicate
Convenience methods for filtering arrays of double primitives, without having to spell out the entire stream->filter->collect process.
dblFlatMap(double[], DoubleFunction<double[]>) - Static method in class org.perro.functions.mapper.DblTransformUtils
Given an array of doubles, and a DoubleFunction<double[]> (a function that takes a double and returns an array of doubles), returns an array of doubles.
dblFlatMapDistinct(double[], DoubleFunction<double[]>) - Static method in class org.perro.functions.mapper.DblTransformUtils
Given an array of doubles, and a DoubleFunction<double[]> (a function that takes a double and returns an array of doubles), returns an array of distinct primitive double values.
dblFlatMapper(DoubleFunction<? extends double[]>) - Static method in class org.perro.functions.mapper.DblMapperUtils
Given a DoubleFunction that returns a double array, this method builds a DoubleFunction that returns a DoubleStream.
dblGt(double) - Static method in class org.perro.functions.predicate.DblPredicateUtils
Builds a DoublePredicate that determines whether a value is greater than a passed constant double value.
dblGt(DoubleFunction<? extends R>, R) - Static method in class org.perro.functions.predicate.DblPredicateUtils
Given a DoubleFunction that returns a value of type <R>, and a constant value of type <R>, this method builds a DoublePredicate that applies that function to its target value, and determines whether the returned Comparable value is greater than a passed constant value of type <R> (also a Comparable).
dblGte(double) - Static method in class org.perro.functions.predicate.DblPredicateUtils
Builds a DoublePredicate that determines whether a value is greater than or equal to a passed constant double value.
dblGte(DoubleFunction<? extends R>, R) - Static method in class org.perro.functions.predicate.DblPredicateUtils
Given a DoubleFunction that returns a value of type <R>, and a constant value of type <R>, this method builds a DoublePredicate that applies that function to its target value, and determines whether the returned Comparable value is greater than or equal to a passed constant value of type <R> (also a Comparable).
dblIsNotNull(DoubleFunction<?>) - Static method in class org.perro.functions.predicate.DblPredicateUtils
Given a DoubleFunction that returns a value of an arbitrary type, this method builds a DoublePredicate that determines whether that returned value is not null.
dblIsNull(DoubleFunction<?>) - Static method in class org.perro.functions.predicate.DblPredicateUtils
Given a DoubleFunction that returns a value of an arbitrary type, this method builds a DoublePredicate that determines whether that returned value is null.
dblKeyValueMapper(DoubleFunction<K>, DoubleFunction<V>) - Static method in class org.perro.functions.mapper.DblMapperUtils
Builds an object representing a pair of double functions, one to return a key in a Map, and the other to return its associated value.
dblLt(double) - Static method in class org.perro.functions.predicate.DblPredicateUtils
Builds a DoublePredicate that determines whether a value is less than a passed constant double value.
dblLt(DoubleFunction<? extends R>, R) - Static method in class org.perro.functions.predicate.DblPredicateUtils
Given a DoubleFunction that returns a value of type <R>, and a constant value of type <R>, this method builds a DoublePredicate that applies that function to its target value, and determines whether the returned Comparable value is less than a passed constant value of type <R> (also a Comparable).
dblLte(double) - Static method in class org.perro.functions.predicate.DblPredicateUtils
Builds a DoublePredicate that determines whether a value is less than or equal to a passed constant double value.
dblLte(DoubleFunction<? extends R>, R) - Static method in class org.perro.functions.predicate.DblPredicateUtils
Given a DoubleFunction that returns a value of type <R>, and a constant value of type <R>, this method builds a DoublePredicate that applies that function to its target value, and determines whether the returned Comparable value is less than or equal to a passed constant value of type <R> (also a Comparable).
dblMapAndConsume(DoubleFunction<? extends U>, Consumer<U>) - Static method in class org.perro.functions.consumer.DblConsumerUtils
Builds a DoubleConsumer from a passed DoubleFunction and a Consumer.
dblMapAndFilter(DoubleFunction<? extends T>, Predicate<? super T>) - Static method in class org.perro.functions.predicate.DblPredicateUtils
Given a DoubleFunction that returns a value of type <T>, and a Predicate, this method builds a DoublePredicate that applies the return value of the DoubleFunction to the given predicate.
dblMapper(DoubleFunction<R>) - Static method in class org.perro.functions.mapper.DblMapperUtils
Simply casts a method reference, which takes a single parameter of type double and returns <R>, to a DoubleFunction.
dblMapper(BiFunction<Double, ? super U, ? extends R>, U) - Static method in class org.perro.functions.mapper.DblMapperUtils
Builds a DoubleFunction from a passed BiFunction.
DblMapperUtils - Class in org.perro.functions.mapper
Methods that build functions to map a target element into another result.
dblMaxDefault(double[], FindDoubleWithDefault) - Static method in class org.perro.functions.stream.DblStreamUtils
Given an array of doubles, and an object representing a DoublePredicate along with a default value, this method returns the maximum double value in the array that matches the predicate, or the default value if no matching values are found.
dblMaxDefault(double[], FindDoubleWithDefaultSupplier) - Static method in class org.perro.functions.stream.DblStreamUtils
Given an array of doubles, and an object representing a DoublePredicate along with a Supplier for a default value, this method returns the maximum double value in the array that matches the predicate, or a default value from the supplier if no matching values are found.
dblMinDefault(double[], FindDoubleWithDefault) - Static method in class org.perro.functions.stream.DblStreamUtils
Given an array of doubles, and an object representing a DoublePredicate along with a default value, this method returns the minimum double value in the array that matches the predicate, or the default value if no matching values are found.
dblMinDefault(double[], FindDoubleWithDefaultSupplier) - Static method in class org.perro.functions.stream.DblStreamUtils
Given an array of doubles, and an object representing a DoublePredicate along with a Supplier for a default value, this method returns the minimum double value in the array that matches the predicate, or a default value from the supplier if no matching values are found.
dblModulo(double) - Static method in class org.perro.functions.mapper.DblMapperUtils
Builds a DoubleUnaryOperator that divides its double parameter by a constant value to get a remainder.
dblMultiply(double) - Static method in class org.perro.functions.mapper.DblMapperUtils
Builds a DoubleUnaryOperator that multiplies a constant value with a double parameter.
dblNoneMatch(double[], DoublePredicate) - Static method in class org.perro.functions.stream.DblStreamUtils
Given an array of doubles and a DoublePredicate, returns a boolean value indicating whether none of the values in the array match the predicate.
dblNot(DoublePredicate) - Static method in class org.perro.functions.predicate.DblPredicateUtils
A DoublePredicate that simply negates the passed DoublePredicate.
dblPairOf(DoubleFunction<? extends U>) - Static method in class org.perro.functions.mapper.DblMapperUtils
Given a DoubleFunction that returns a value of type <U>, this method builds a DoubleFunction that returns a value of type DoubleObjectPair<U>.
dblPairOf(DblKeyValueMapper<U, V>) - Static method in class org.perro.functions.mapper.DblMapperUtils
Given an object consisting of a pair of double functions, one that returns a value of type <U>, and the other that returns a value of type <V>, this method builds a DoubleFunction that returns a value of type Pair<U, V>.
dblPairOf(DoubleFunction<? extends U>, DoubleFunction<? extends V>) - Static method in class org.perro.functions.mapper.DblMapperUtils
Given a pair of double functions, one that returns a value of type <U>, and the other that returns a value of type <V>, this method builds a DoubleFunction that returns a value of type Pair<U, V>.
dblPairWith(List<R>) - Static method in class org.perro.functions.mapper.DblMapperUtils
Given a List<R>, this methods builds a DoubleFunction that returns a DoubleObjectPair<R>.
dblPairWith(DoubleFunction<? extends U>, List<V>) - Static method in class org.perro.functions.mapper.DblMapperUtils
Given a DoubleFunction<U>, and a List<V>, this method builds a DoubleFunction that returns a Pair<U, V>.
dblPairWithIndex() - Static method in class org.perro.functions.mapper.DblMapperUtils
Builds a DoubleFunction that returns an object that represents a pair of values, one being the double value itself, and the other a primitive zero-based index of the double in encounter order.
dblPairWithIndex(DoubleFunction<? extends R>) - Static method in class org.perro.functions.mapper.DblMapperUtils
Given a DoubleFunction that returns a value of type <R>, this method builds a DoubleFunction that returns an object that represents a pair of values, one being a value returned from the passed double function, and the other a primitive zero-based index of the double value in encounter order.
dblPredicate(DoublePredicate) - Static method in class org.perro.functions.predicate.DblPredicateUtils
Simply casts a method reference, which takes a single parameter of type double or Double, and returns a boolean or Boolean, to a DoublePredicate.
dblPredicate(BiPredicate<Double, ? super U>, U) - Static method in class org.perro.functions.predicate.DblPredicateUtils
Builds a DoublePredicate from a passed BiPredicate<Double, U>, which can be very useful in the common situation where you are streaming through a collection of elements, and have a double predicate method to call that takes two parameters - the first one being the double element on which you are streaming, and the second being some constant value that will be passed to all invocations.
DblPredicateUtils - Class in org.perro.functions.predicate
Methods that build predicates specifically those involving primitive double types.
dblSetter(BiConsumer<? super T, Double>, ToDoubleFunction<T>) - Static method in class org.perro.functions.consumer.DblConsumerUtils
This method is a variation of the consumer(...) methods that has some special properties.
DblStreamUtils - Class in org.perro.functions.stream
Methods that are shortcuts to creating streams, specifically methods involving primitive double types.
dblSubtract(double) - Static method in class org.perro.functions.mapper.DblMapperUtils
Builds a DoubleUnaryOperator that subtracts a constant value from a double parameter.
dblSupplier(ToDoubleFunction<T>, T) - Static method in class org.perro.functions.supplier.DblSupplierUtils
Builds a DoubleSupplier from a passed ToDoubleFunction which takes a parameter of type <T>.
dblSupplier(ToDoubleBiFunction<T, U>, ConstantValues<T, U>) - Static method in class org.perro.functions.supplier.DblSupplierUtils
Builds a DoubleSupplier from a passed BiFunction which takes parameters of type <T> and <U>, and returns a Double.
DblSupplierUtils - Class in org.perro.functions.supplier
Methods that build suppliers, specifically those involving primitive double types.
dblTernary(DoublePredicate, DoubleTernaryMapper<R>) - Static method in class org.perro.functions.mapper.DblMapperUtils
Given a DoublePredicate and an object consisting of a pair of double functions, each returning a value of type <R>, one to return a value if the predicate is true, the other returning an alternate value if the predicate is false, this method builds a DoubleFunction that evaluates the predicate and returns a value produced by one or the other of the pair.
dblToObjContains(Collection<? extends R>, DoubleFunction<? extends R>) - Static method in class org.perro.functions.predicate.DblPredicateUtils
Given a Collection whose elements are of type <R>, and a DoubleFunction that returns a value of type <R>, this method builds a DoublePredicate that determines if the given collection contains the value returned by the double function.
dblToObjsAllMatch(DoubleFunction<? extends Collection<R>>, Predicate<R>) - Static method in class org.perro.functions.predicate.DblPredicateUtils
Given a DoubleFunction that returns a Collection of type <R>, and a Predicate, this method builds a DoublePredicate that determines whether all elements in the returned Collection match the Predicate.
dblToObjsAnyMatch(DoubleFunction<? extends Collection<R>>, Predicate<R>) - Static method in class org.perro.functions.predicate.DblPredicateUtils
Given a DoubleFunction that returns a Collection of type <R>, and a Predicate, this method builds a DoublePredicate that determines whether any of the elements in the returned Collection match the Predicate.
dblToObjsNoneMatch(DoubleFunction<? extends Collection<R>>, Predicate<R>) - Static method in class org.perro.functions.predicate.DblPredicateUtils
Given a DoubleFunction that returns a Collection of type <R>, and a Predicate, this method builds a DoublePredicate that determines whether none of the elements in the returned Collection match the Predicate.
dblTransform(double[], DoubleFunction<R>) - Static method in class org.perro.functions.mapper.DblTransformUtils
Given an array of doubles, and a DoubleFunction<R> that transforms those doubles into elements of type <R>, returns a List<R> of those elements.
dblTransform(double[], Collector<Double, ?, C>) - Static method in class org.perro.functions.mapper.DblTransformUtils
Given an array of doubles, and a Collector<Double, ?, C>, returns a Collection<C> of Double elements.
dblTransform(double[], DblTransformerCollector<U, C>) - Static method in class org.perro.functions.mapper.DblTransformUtils
Given an array of doubles, and a DblTransformerCollector<U, C> that contains a DoubleFunction<U> to transform double values into elements of type <U>, and a Collector<U, ?, C>, returns a collection of type <C> of those elements.
dblTransformAndThen(DoubleFunction<U>, Collector<U, ?, C>) - Static method in class org.perro.functions.mapper.DblTransformUtils
Builds a DblTransformerCollector<U, C> that contains a DoubleFunction<U> to transform primitive double values into elements of type <U>, and a Collector<U, ?, C> to collect those elements into a collection of type <C>.
dblTransformDistinct(double[], DoubleFunction<R>) - Static method in class org.perro.functions.mapper.DblTransformUtils
Given an array of doubles, and a DoubleFunction<R> that transforms those doubles to elements of type <R>, returns a List<R> of those elements, which will contain only unique values (according to Object.equals(Object)).
dblTransformToMap(double[], DblKeyValueMapper<K, V>) - Static method in class org.perro.functions.mapper.DblTransformUtils
Given an array of primitive doubles, and a DblKeyValueMapper containing a DoubleFunction to transform a double to a key of type <K>, and another DoubleFunction to transform a double to a value of type <V>, returns a Map<K, V>.
dblTransformToSet(double[], DoubleFunction<R>) - Static method in class org.perro.functions.mapper.DblTransformUtils
Given an array of doubles, and a DoubleFunction<R> that transforms those doubles to an element of type <R>, returns a Set<R> of those elements.
DblTransformUtils - Class in org.perro.functions.mapper
Methods to transform an array of doubles to a collection of elements of an arbitrary type, or to transform a collection of elements of an arbitrary type to an array of doubles.
dblTrueFalseMappers(DoubleFunction<R>, DoubleFunction<R>) - Static method in class org.perro.functions.mapper.DblMapperUtils
Builds an object representing a pair of functions, one to return a value if a double predicate evaluates to true, the other to return an alternate value if it evaluates to false.
dblUnaryTransform(double[], DoubleUnaryOperator) - Static method in class org.perro.functions.mapper.DblTransformUtils
Given an array of doubles, and a DoubleUnaryOperator that transforms each of those doubles to another double, returns an array of the resulting double values.
dblUnaryTransformDistinct(double[], DoubleUnaryOperator) - Static method in class org.perro.functions.mapper.DblTransformUtils
Given an array of doubles, and a DoubleUnaryOperator that transforms each of those doubles to another double, returns an array of the resulting double values, which will contain only distinct values.
dblWithDelta(double, double) - Static method in class org.perro.functions.predicate.DblPredicateUtils
Combines a double value for use in a comparison, with a delta.
defaultDblStream(double[]) - Static method in class org.perro.functions.stream.DblStreamUtils
Given an array of double values, returns a DoubleStream of them.
defaultDblStream(DoubleStream) - Static method in class org.perro.functions.stream.DblStreamUtils
Given a DoubleStream returns that stream if it is not null, otherwise returns an empty DoubleStream.
defaultDblStream(Collection<Double>) - Static method in class org.perro.functions.stream.DblStreamUtils
Given a Collection of Double instances, returns a DoubleStream of them.
defaultDblStream(Stream<Double>) - Static method in class org.perro.functions.stream.DblStreamUtils
Given a Stream of Double instances, returns a DoubleStream from it, or an empty DoubleStream if it is null.
defaultIntStream(int[]) - Static method in class org.perro.functions.stream.IntStreamUtils
Given an array of int values, returns an IntStream of them.
defaultIntStream(IntStream) - Static method in class org.perro.functions.stream.IntStreamUtils
Given an IntStream returns that stream if it is not null, otherwise returns an empty IntStream.
defaultIntStream(Collection<Integer>) - Static method in class org.perro.functions.stream.IntStreamUtils
Given a Collection of Integer instances, returns an IntStream of them.
defaultIntStream(Stream<Integer>) - Static method in class org.perro.functions.stream.IntStreamUtils
Given a Stream of Integer instances, returns an IntStream from it, or an empty IntStream if it is null.
defaultLongStream(long[]) - Static method in class org.perro.functions.stream.LongStreamUtils
Given an array of long values, returns a LongStream of them.
defaultLongStream(LongStream) - Static method in class org.perro.functions.stream.LongStreamUtils
Given a LongStream returns that stream if it is not null, otherwise returns an empty LongStream.
defaultLongStream(Collection<Long>) - Static method in class org.perro.functions.stream.LongStreamUtils
Given a Collection of Long instances, returns a LongStream of them.
defaultLongStream(Stream<Long>) - Static method in class org.perro.functions.stream.LongStreamUtils
Given a Stream of Long instances, returns a LongStream from it, or an empty LongStream if it is null.
defaultStream(Collection<T>) - Static method in class org.perro.functions.stream.StreamUtils
Given a Collection of elements of type <T>, returns a Stream of those elements.
defaultStream(Stream<T>) - Static method in class org.perro.functions.stream.StreamUtils
Given a Stream of elements of type <T>, returns that stream if it is not null, otherwise returns an empty Stream.
defaultStream(T[]) - Static method in class org.perro.functions.stream.StreamUtils
Given an array of elements of type <T>, returns a Stream of them.
defaultStream(T) - Static method in class org.perro.functions.stream.StreamUtils
Given a single element of type <T>, returns a Stream containing only that element.
defaultString(String) - Static method in class org.perro.functions.internal.StringUtils
 
distinctByKey(Function<? super T, ?>) - Static method in class org.perro.functions.predicate.PredicateUtils
Given a Function that takes an element of type <T>, and returns a key value of any type, this method builds a Predicate that takes an element of type <T>, and determines whether no elements that have been encountered so far have the same key returned from the function.
distinctByKeyParallel(Function<? super T, ?>) - Static method in class org.perro.functions.predicate.PredicateUtils
Given a Function that takes an element of type <T>, and returns a key value of any type, this method builds a Predicate that takes an element of type <T>, and determines whether no elements that have been encountered so far have the same key returned from the function.
DoubleIndexPair - Class in org.perro.functions.mapper
An immutable object that pairs a primitive double value, with an associated int index.
DoubleObjectPair<T> - Class in org.perro.functions.mapper
An immutable object that pairs a primitive double value, with an associated object of type <T>.

E

endsWith(Function<? super T, ? extends CharSequence>, CharSequence) - Static method in class org.perro.functions.predicate.PredicateUtils
Given a Function that takes an element of type <T> and returns a CharSequence, this method builds a Predicate that takes an element of type <T>, and determines if the character sequence returned from the function ends with a given suffix.
endsWithIgnoreCase(Function<? super T, ? extends CharSequence>, CharSequence) - Static method in class org.perro.functions.predicate.PredicateUtils
Given a Function that takes an element of type <T> and returns a CharSequence, this method builds a Predicate that takes an element of type <T>, and determines if the character sequence returned from the function ends with a given suffix ignoring case.
equals(Object) - Method in class org.perro.functions.mapper.DoubleIndexPair
Indicates whether some other object is "equal to" this one.
equals(Object) - Method in class org.perro.functions.mapper.DoubleObjectPair
Indicates whether some other object is "equal to" this one.
equals(Object) - Method in class org.perro.functions.mapper.IntIndexPair
Indicates whether some other object is "equal to" this one.
equals(Object) - Method in class org.perro.functions.mapper.IntObjectPair
Indicates whether some other object is "equal to" this one.
equals(Object) - Method in class org.perro.functions.mapper.LongIndexPair
Indicates whether some other object is "equal to" this one.
equals(Object) - Method in class org.perro.functions.mapper.LongObjectPair
Indicates whether some other object is "equal to" this one.
equals(Object) - Method in class org.perro.functions.mapper.ObjectIndexPair
Indicates whether some other object is "equal to" this one.
equalsIgnoreCase(Function<? super T, ? extends CharSequence>, CharSequence) - Static method in class org.perro.functions.predicate.PredicateUtils
Given a Function that takes an element of type <T>, and returns a CharSequence, this method builds a Predicate that takes an element of type <T>, and determines if the CharSequence returned by that Function is equal to a passed CharSequence ignoring case.

F

filter(Collection<T>, Predicate<T>) - Static method in class org.perro.functions.predicate.FilterUtils
Filters a Collection of objects, based a predicate, into a list.
filter(Collection<T>, FilterCollector<T, C>) - Static method in class org.perro.functions.predicate.FilterUtils
Filters a collection of objects, based a predicate, into a Collection.
filterAndThen(Predicate<T>, Collector<T, ?, C>) - Static method in class org.perro.functions.predicate.FilterUtils
Builds an object combining a Predicate and a Collector for use in the FilterUtils.filter(Collection, FilterCollector) method.
filterDistinct(Collection<T>, Predicate<T>) - Static method in class org.perro.functions.predicate.FilterUtils
Filters a Collection of objects, based a predicate, into a list of distinct instances (according to Object.equals(Object)).
filterToSet(Collection<T>, Predicate<T>) - Static method in class org.perro.functions.predicate.FilterUtils
Filters a Collection of objects, based a predicate, into a set.
FilterUtils - Class in org.perro.functions.predicate
Convenience methods for filtering collections of objects, without having to spell out the entire stream->filter->collect process.
findAnyDblDefault(double[], FindDoubleWithDefault) - Static method in class org.perro.functions.stream.DblStreamUtils
Attempt to find any matching double value in an array of doubles using a predicate, returning a default value if one is not found.
findAnyDblDefault(double[], FindDoubleWithDefaultSupplier) - Static method in class org.perro.functions.stream.DblStreamUtils
Attempt to find any matching double value in an array of doubles using a predicate, returning a default value retrieved using a DoubleSupplier if one is not found.
findAnyDblDefaultNull(double[], DoublePredicate) - Static method in class org.perro.functions.stream.DblStreamUtils
Attempt to find any matching double value in an array of doubles using a predicate, returning null if one is not found.
findAnyDefaultNull(Collection<T>, Predicate<T>) - Static method in class org.perro.functions.stream.StreamUtils
Attempt to find any matching element in a Collection of elements of type <T> using a predicate, returning null if one is not found.
findAnyIntDefault(int[], FindIntWithDefault) - Static method in class org.perro.functions.stream.IntStreamUtils
Attempt to find any matching int value in an array of ints using a predicate, returning a default value if one is not found.
findAnyIntDefault(int[], FindIntWithDefaultSupplier) - Static method in class org.perro.functions.stream.IntStreamUtils
Attempt to find any matching int value in an array of ints using a predicate, returning a default value retrieved using an IntSupplier if one is not found.
findAnyIntDefaultNull(int[], IntPredicate) - Static method in class org.perro.functions.stream.IntStreamUtils
Attempt to find any matching int value in an array of ints using a predicate, returning null if one is not found.
findAnyLongDefault(long[], FindLongWithDefault) - Static method in class org.perro.functions.stream.LongStreamUtils
Attempt to find any matching long value in an array of longs using a predicate, returning a default value if one is not found.
findAnyLongDefault(long[], FindLongWithDefaultSupplier) - Static method in class org.perro.functions.stream.LongStreamUtils
Attempt to find any matching long value in an array of longs using a predicate, returning a default value retrieved using a LongSupplier if one is not found.
findAnyLongDefaultNull(long[], LongPredicate) - Static method in class org.perro.functions.stream.LongStreamUtils
Attempt to find any matching long value in an array of longs using a predicate, returning null if one is not found.
findAnyWithDefault(Collection<T>, FindWithDefault<T>) - Static method in class org.perro.functions.stream.StreamUtils
Attempt to find any matching element in a Collection of elements of type <T> using a predicate, returning a default element if one is not found.
findAnyWithDefault(Collection<T>, FindWithDefaultSupplier<T>) - Static method in class org.perro.functions.stream.StreamUtils
Attempt to find any matching element in a Collection of elements of type <T> using a predicate, returning a default value retrieved using a Supplier if one is not found.
findDblDefault(DoublePredicate, double) - Static method in class org.perro.functions.stream.DblStreamUtils
Retrieves an object representing a predicate for finding a value, and a default double value if one is not found.
findDblDefault(DoublePredicate, DoubleSupplier) - Static method in class org.perro.functions.stream.DblStreamUtils
Retrieves an object representing a predicate for finding a value, and a default DoubleSupplier if one is not found.
findFirstDblDefault(double[], FindDoubleWithDefault) - Static method in class org.perro.functions.stream.DblStreamUtils
Attempt to find the first matching double value in an array of doubles using a predicate, returning a default value if one is not found.
findFirstDblDefault(double[], FindDoubleWithDefaultSupplier) - Static method in class org.perro.functions.stream.DblStreamUtils
Attempt to find the first matching double value in an array of doubles using a predicate, returning a default value retrieved using a DoubleSupplier if one is not found.
findFirstDblDefaultNull(double[], DoublePredicate) - Static method in class org.perro.functions.stream.DblStreamUtils
Attempt to find the first matching double value in an array of doubles using a predicate, returning null if one is not found.
findFirstDefaultNull(Collection<T>, Predicate<T>) - Static method in class org.perro.functions.stream.StreamUtils
Attempt to find the first matching element in a Collection of elements of type <T> using a predicate, returning null if one is not found.
findFirstIntDefault(int[], FindIntWithDefault) - Static method in class org.perro.functions.stream.IntStreamUtils
Attempt to find the first matching int value in an array of ints using a predicate, returning a default value if one is not found.
findFirstIntDefault(int[], FindIntWithDefaultSupplier) - Static method in class org.perro.functions.stream.IntStreamUtils
Attempt to find the first matching int value in an array of ints using a predicate, returning a default value retrieved using an IntSupplier if one is not found.
findFirstIntDefaultNull(int[], IntPredicate) - Static method in class org.perro.functions.stream.IntStreamUtils
Attempt to find the first matching int value in an array of ints using a predicate, returning null if one is not found.
findFirstLongDefault(long[], FindLongWithDefault) - Static method in class org.perro.functions.stream.LongStreamUtils
Attempt to find the first matching long value in an array of longs using a predicate, returning a default value if one is not found.
findFirstLongDefault(long[], FindLongWithDefaultSupplier) - Static method in class org.perro.functions.stream.LongStreamUtils
Attempt to find the first matching long value in an array of longs using a predicate, returning a default value retrieved using a LongSupplier if one is not found.
findFirstLongDefaultNull(long[], LongPredicate) - Static method in class org.perro.functions.stream.LongStreamUtils
Attempt to find the first matching long value in an array of longs using a predicate, returning null if one is not found.
findFirstWithDefault(Collection<T>, FindWithDefault<T>) - Static method in class org.perro.functions.stream.StreamUtils
Attempt to find the first matching element in a Collection of elements of type <T> using a predicate, returning a default element if one is not found.
findFirstWithDefault(Collection<T>, FindWithDefaultSupplier<T>) - Static method in class org.perro.functions.stream.StreamUtils
Attempt to find the first matching element in a Collection of elements of type <T> using a predicate, returning a default value retrieved using a Supplier if one is not found.
findIntDefault(IntPredicate, int) - Static method in class org.perro.functions.stream.IntStreamUtils
Retrieves an object representing a predicate for finding a value, and a default int value if one is not found.
findIntDefault(IntPredicate, IntSupplier) - Static method in class org.perro.functions.stream.IntStreamUtils
Retrieves an object representing a predicate for finding a value, and a default DoubleSupplier if one is not found.
findLongDefault(LongPredicate, long) - Static method in class org.perro.functions.stream.LongStreamUtils
Retrieves an object representing a predicate for finding a value, and a default long value if one is not found.
findLongDefaultSupplier(LongPredicate, LongSupplier) - Static method in class org.perro.functions.stream.LongStreamUtils
Retrieves an object representing a predicate for finding a value, and a default LongSupplier if one is not found.
findWithDefault(Predicate<T>, T) - Static method in class org.perro.functions.stream.StreamUtils
Retrieves an object representing a predicate for finding a value, and a default element of type <T> if one is not found.
findWithDefault(Predicate<T>, Supplier<T>) - Static method in class org.perro.functions.stream.StreamUtils
Retrieves an object representing a predicate for finding a value, and a default Supplier if one is not found.
flatArrayMapper(Function<? super T, ? extends R[]>) - Static method in class org.perro.functions.mapper.MapperUtils
Given a Function that takes an element of type <T> and returns an array of type <R>, this method builds a Function that takes the same argument type, and returns a Stream<R>.
flatMap(Collection<T>, Function<T, Collection<U>>) - Static method in class org.perro.functions.mapper.TransformUtils
Given a collection of elements of type <T>, and a Function that transforms each of those elements into collections of type <U>, this method collects all of those individual collections into one resulting List consisting of all of the elements.
flatMap(Collection<T>, FlatMapCollector<T, U, C>) - Static method in class org.perro.functions.mapper.TransformUtils
Given a collection of elements of type <T>, and an object that represents a transformer Function<T, Collection<U>> along with a Collector<U, ?, C>, this method collects all of those individual collections into one resulting Collection of type <C>, consisting of all of the elements.
flatMapAndThen(Function<T, Collection<U>>, Collector<U, ?, C>) - Static method in class org.perro.functions.mapper.TransformUtils
Given a Function<T, Collection<U>>, and a Collector<U, ?, C>, this method builds an object consisting of both of those parameters.
flatMapDistinct(Collection<T>, Function<T, Collection<U>>) - Static method in class org.perro.functions.mapper.TransformUtils
Given a collection of elements of type <T>, and a Function that transforms each of those elements into collections of type <U>, this method collects all of those individual collections into one resulting List consisting of all of the distinct elements of type <U> (according to Object.equals(Object)).
flatMapper(Function<? super T, ? extends Collection<R>>) - Static method in class org.perro.functions.mapper.MapperUtils
Given a Function that takes an element of type <T> and returns a Collection<R>, this method builds a Function that takes the same argument type, and returns a Stream<R>.
flatMapperToDbl(Function<? super T, ? extends double[]>) - Static method in class org.perro.functions.mapper.DblMapperUtils
Given a Function that takes an argument of type <T> and returns a double array, this method builds a Function that takes the same argument, but returns a DoubleStream.
flatMapperToInt(Function<? super T, ? extends int[]>) - Static method in class org.perro.functions.mapper.IntMapperUtils
Given a Function that takes an argument of type <T> and returns an int array, this method builds a Function that takes the same argument, but returns an IntStream.
flatMapperToLong(Function<? super T, ? extends long[]>) - Static method in class org.perro.functions.mapper.LongMapperUtils
Given a Function that takes an argument of type <T> and returns a long array, this method builds a Function that takes the same argument, but returns a LongStream.
flatMapToDbl(Collection<T>, Function<T, double[]>) - Static method in class org.perro.functions.mapper.DblTransformUtils
Given a collection of objects of type <T>, and a Function<T, double[]>, returns an array of primitive doubles.
flatMapToDblDistinct(Collection<T>, Function<T, double[]>) - Static method in class org.perro.functions.mapper.DblTransformUtils
Given a collection of objects of type <T>, and a Function<T, double[]>, returns an array of distinct primitive doubles.
flatMapToInt(Collection<T>, Function<T, int[]>) - Static method in class org.perro.functions.mapper.IntTransformUtils
Given a collection of objects of type <T>, and a Function<T, int[]>, returns an array of primitive ints.
flatMapToIntDistinct(Collection<T>, Function<T, int[]>) - Static method in class org.perro.functions.mapper.IntTransformUtils
Given a collection of objects of type <T>, and a Function<T, int[]>, returns an array of distinct primitive ints.
flatMapToLong(Collection<T>, Function<T, long[]>) - Static method in class org.perro.functions.mapper.LongTransformUtils
Given a collection of objects of type <T>, and a Function<T, long[]>, returns an array of primitive longs.
flatMapToLongDistinct(Collection<T>, Function<T, long[]>) - Static method in class org.perro.functions.mapper.LongTransformUtils
Given a collection of objects of type <T>, and a Function<T, long[]>, returns an array of distinct primitive longs.
flatMapToSet(Collection<T>, Function<T, Collection<R>>) - Static method in class org.perro.functions.mapper.TransformUtils
Given a collection of elements of type <T>, and a Function that transforms each of those elements into collections of type <R>, this method collects all of those individual collections into one resulting Set consisting of all of the elements.
fromIterator(Iterator<T>) - Static method in class org.perro.functions.stream.StreamUtils
Given an Iterator of elements of type <T>, returns a Stream of those elements.
fromMapper(Function<T, Boolean>) - Static method in class org.perro.functions.predicate.PredicateUtils
Allows conversion of any mapper Function to a Predicate.

G

getDoubleValue() - Method in class org.perro.functions.mapper.DoubleIndexPair
Getter for the double value associated with an index.
getIndex() - Method in class org.perro.functions.mapper.DoubleIndexPair
Getter for the index.
getIndex() - Method in class org.perro.functions.mapper.IntIndexPair
Getter for the index.
getIndex() - Method in class org.perro.functions.mapper.LongIndexPair
Getter for the index.
getIndex() - Method in class org.perro.functions.mapper.ObjectIndexPair
Getter for the index.
getIntValue() - Method in class org.perro.functions.mapper.IntIndexPair
Getter for the int value associated with an index.
getKey() - Method in class org.perro.functions.internal.Pair
Getter for the map entry key, or left object in the pair.
getLeft() - Method in class org.perro.functions.internal.Pair
Getter for the map entry key, or left object in the pair.
getLeft() - Method in class org.perro.functions.mapper.DoubleObjectPair
Getter for the left double value associated with an object of type <T>.
getLeft() - Method in class org.perro.functions.mapper.IntObjectPair
Getter for the left int value associated with an object of type <T>.
getLeft() - Method in class org.perro.functions.mapper.LongObjectPair
Getter for the left long value associated with an object of type <T>.
getLongValue() - Method in class org.perro.functions.mapper.LongIndexPair
Getter for the long value associated with an index.
getObject() - Method in class org.perro.functions.mapper.ObjectIndexPair
Getter for an object of type <T> associated with an index.
getRight() - Method in class org.perro.functions.internal.Pair
Getter for the map entry value, or right object in the pair.
getRight() - Method in class org.perro.functions.mapper.DoubleObjectPair
Getter for the right object of type <T> associated with a double value.
getRight() - Method in class org.perro.functions.mapper.IntObjectPair
Getter for the right object of type <T> associated with an int value.
getRight() - Method in class org.perro.functions.mapper.LongObjectPair
Getter for the right object of type <T> associated with a long value.
getValue() - Method in class org.perro.functions.internal.Pair
Getter for the map entry value, or right object in the pair.
getValue(Map<K, V>, Function<T, K>) - Static method in class org.perro.functions.mapper.MapperUtils
Retrieves a value of type <R> from a Map, using a key retrieved from an element of type <T> using a passed Function.
gt(Function<? super T, ? extends R>, R) - Static method in class org.perro.functions.predicate.PredicateUtils
Given a Function that takes an element of type <T> and returns a value of type <R>, this method builds a Predicate that takes an element of type <T>, and determines if the value returned from the function is greater than the compareTo value passed.
gte(Function<? super T, ? extends R>, R) - Static method in class org.perro.functions.predicate.PredicateUtils
Given a Function that takes an element of type <T> and returns a value of type <R>, this method builds a Predicate that takes an element of type <T>, and determines if the value returned from the function is greater than or equal to the compareTo value passed.

H

hashCode() - Method in class org.perro.functions.mapper.DoubleIndexPair
Generates a hash code based on the hash codes of its primitive attributes.
hashCode() - Method in class org.perro.functions.mapper.DoubleObjectPair
Generates a hash code based on the hash codes of its primitive double attribute, and its object of type <T>.
hashCode() - Method in class org.perro.functions.mapper.IntIndexPair
Generates a hash code based on the hash codes of its primitive attributes.
hashCode() - Method in class org.perro.functions.mapper.IntObjectPair
Generates a hash code based on the hash codes of its primitive int attribute, and its object of type <T>.
hashCode() - Method in class org.perro.functions.mapper.LongIndexPair
Generates a hash code based on the hash codes of its primitive attributes.
hashCode() - Method in class org.perro.functions.mapper.LongObjectPair
Generates a hash code based on the hash codes of its primitive long attribute, and its object of type <T>.
hashCode() - Method in class org.perro.functions.mapper.ObjectIndexPair
Generates a hash code based on the hash codes of its attributes.

I

indexOfFirst(Collection<T>, Predicate<T>) - Static method in class org.perro.functions.stream.StreamUtils
Finds the index of the first element in a Collection of type <T>, that matches a Predicate.
indexOfFirstDbl(double[], DoublePredicate) - Static method in class org.perro.functions.stream.DblStreamUtils
Finds the index of the first double in an array that matches a DoublePredicate.
indexOfFirstInt(int[], IntPredicate) - Static method in class org.perro.functions.stream.IntStreamUtils
Finds the index of the first int in an array that matches an IntPredicate.
indexOfFirstLong(long[], LongPredicate) - Static method in class org.perro.functions.stream.LongStreamUtils
Finds the index of the first long in an array that matches a LongPredicate.
intAdd(int) - Static method in class org.perro.functions.mapper.IntMapperUtils
Builds an IntUnaryOperator that adds a constant value to an int parameter.
intAllMatch(int[], IntPredicate) - Static method in class org.perro.functions.stream.IntStreamUtils
Given an array of ints and an IntPredicate, returns a boolean value indicating whether all values in the array match the predicate.
intAnyMatch(int[], IntPredicate) - Static method in class org.perro.functions.stream.IntStreamUtils
Given an array of ints and an IntPredicate, returns a boolean value indicating whether any of the values in the array match the predicate.
intConstant(boolean) - Static method in class org.perro.functions.predicate.IntPredicateUtils
Builds an integer predicate based on a passed constant boolean value.
intConsumer(IntConsumer) - Static method in class org.perro.functions.consumer.IntConsumerUtils
Simply casts a method reference, which takes a single parameter of type int and returns void, to an IntConsumer.
intConsumer(Runnable) - Static method in class org.perro.functions.consumer.IntConsumerUtils
Simply casts a method reference, which takes no parameters and returns void, to an IntConsumer.
intConsumer(BiConsumer<Integer, ? super U>, U) - Static method in class org.perro.functions.consumer.IntConsumerUtils
Builds an IntConsumer from a passed BiConsumer.
IntConsumerUtils - Class in org.perro.functions.consumer
Methods that build consumers useful in many different situations, particularly in Java streams.
intCount(int[], IntPredicate) - Static method in class org.perro.functions.stream.IntStreamUtils
Given an array of ints and an IntPredicate, returns a long value indicating the number of values in the array that match the predicate.
intDivide(int) - Static method in class org.perro.functions.mapper.IntMapperUtils
Builds an IntUnaryOperator that divides its int parameter by a constant value.
intFilter(int[], IntPredicate) - Static method in class org.perro.functions.predicate.IntFilterUtils
Filters an array of ints, based a predicate, into another int array.
intFilter(int[], IntFilterCollector<C>) - Static method in class org.perro.functions.predicate.IntFilterUtils
Filters an array of ints, based a predicate, into a collection.
intFilterAndThen(IntPredicate, Collector<Integer, ?, C>) - Static method in class org.perro.functions.predicate.IntFilterUtils
Builds an object combining a IntPredicate and a Collector for use in the IntFilterUtils.intFilter(int[], IntFilterCollector) method.
intFilterDistinct(int[], IntPredicate) - Static method in class org.perro.functions.predicate.IntFilterUtils
Filters an array of ints, based a predicate, into an array of distinct int values (according to Integer.compare(int, int)).
intFilterDistinct(int[], IntFilterCollector<C>) - Static method in class org.perro.functions.predicate.IntFilterUtils
Filters an array of ints, based a predicate, into an array of distinct int values.
intFilterToSet(int[], IntPredicate) - Static method in class org.perro.functions.predicate.IntFilterUtils
Filters an array of ints, based a predicate, into a set.
IntFilterUtils - Class in org.perro.functions.predicate
Convenience methods for filtering arrays of int primitives, without having to spell out the entire stream->filter->collect process.
intFlatMap(int[], IntFunction<int[]>) - Static method in class org.perro.functions.mapper.IntTransformUtils
Given an array of ints, and an IntFunction<int[]> (a function that takes an int and returns an array of ints), returns an array of ints.
intFlatMapDistinct(int[], IntFunction<int[]>) - Static method in class org.perro.functions.mapper.IntTransformUtils
Given an array of ints, and an IntFunction<int[]> (a function that takes an int and returns an array of ints), returns an array of distinct primitive int values.
intFlatMapper(IntFunction<? extends int[]>) - Static method in class org.perro.functions.mapper.IntMapperUtils
Given an IntFunction that returns an int array, this method builds an IntFunction that returns an IntStream.
intGt(int) - Static method in class org.perro.functions.predicate.IntPredicateUtils
Builds an IntPredicate that determines whether a value is greater than a passed constant int value.
intGt(IntFunction<? extends R>, R) - Static method in class org.perro.functions.predicate.IntPredicateUtils
Given an IntFunction that returns a value of type <R>, and a constant value of type <R>, this method builds an IntPredicate that applies that function to its target value, and determines whether the returned Comparable value is greater than a passed constant value of type <R> (also a Comparable).
intGte(int) - Static method in class org.perro.functions.predicate.IntPredicateUtils
Builds an IntPredicate that determines whether a value is greater than or equal to a passed constant int value.
intGte(IntFunction<? extends R>, R) - Static method in class org.perro.functions.predicate.IntPredicateUtils
Given an IntFunction that returns a value of type <R>, and a constant value of type <R>, this method builds an IntPredicate that applies that function to its target value, and determines whether the returned Comparable value is greater than or equal to a passed constant value of type <R> (also a Comparable).
IntIndexPair - Class in org.perro.functions.mapper
An immutable object that pairs a primitive int value, with an associated int index.
intIsNotNull(IntFunction<?>) - Static method in class org.perro.functions.predicate.IntPredicateUtils
Given an IntFunction that returns a value of an arbitrary type, this method builds an IntPredicate that determines whether that returned value is not null.
intIsNull(IntFunction<?>) - Static method in class org.perro.functions.predicate.IntPredicateUtils
Given an IntFunction that returns a value of an arbitrary type, this method builds an IntPredicate that determines whether that returned value is null.
intKeyValueMapper(IntFunction<K>, IntFunction<V>) - Static method in class org.perro.functions.mapper.IntMapperUtils
Builds an object representing a pair of int functions, one to return a key in a Map, and the other to return its associated value.
intLt(int) - Static method in class org.perro.functions.predicate.IntPredicateUtils
Builds an IntPredicate that determines whether a value is less than a passed constant int value.
intLt(IntFunction<? extends R>, R) - Static method in class org.perro.functions.predicate.IntPredicateUtils
Given an IntFunction that returns a value of type <R>, and a constant value of type <R>, this method builds an IntPredicate that applies that function to its target value, and determines whether the returned Comparable value is less than a passed constant value of type <R> (also a Comparable).
intLte(int) - Static method in class org.perro.functions.predicate.IntPredicateUtils
Builds an IntPredicate that determines whether a value is less than or equal to a passed constant int value.
intLte(IntFunction<? extends R>, R) - Static method in class org.perro.functions.predicate.IntPredicateUtils
Given an IntFunction that returns a value of type <R>, and a constant value of type <R>, this method builds an IntPredicate that applies that function to its target value, and determines whether the returned Comparable value is less than or equal to a passed constant value of type <R> (also a Comparable).
intMapAndConsume(IntFunction<? extends U>, Consumer<U>) - Static method in class org.perro.functions.consumer.IntConsumerUtils
Builds an IntConsumer from a passed IntFunction and a Consumer.
intMapAndFilter(IntFunction<? extends T>, Predicate<? super T>) - Static method in class org.perro.functions.predicate.IntPredicateUtils
Given an IntFunction that returns a value of type <T>, and a Predicate, this method builds an IntPredicate that applies the return value of the IntFunction to the given predicate.
intMapper(IntFunction<R>) - Static method in class org.perro.functions.mapper.IntMapperUtils
Simply casts a method reference, which takes a single parameter of type int and returns <R>, to an IntFunction.
intMapper(BiFunction<Integer, ? super U, ? extends R>, U) - Static method in class org.perro.functions.mapper.IntMapperUtils
Builds an IntFunction from a passed BiFunction.
IntMapperUtils - Class in org.perro.functions.mapper
Methods that build functions to map a target element into another result.
intMaxDefault(int[], FindIntWithDefault) - Static method in class org.perro.functions.stream.IntStreamUtils
Given an array of ints, and an object representing an IntPredicate along with a default value, this method returns the maximum int value in the array that matches the predicate, or the default value if no matching values are found.
intMaxDefault(int[], FindIntWithDefaultSupplier) - Static method in class org.perro.functions.stream.IntStreamUtils
Given an array of ints, and an object representing an IntPredicate along with a Supplier for a default value, this method returns the maximum int value in the array that matches the predicate, or a default value from the supplier if no matching values are found.
intMinDefault(int[], FindIntWithDefault) - Static method in class org.perro.functions.stream.IntStreamUtils
Given an array of ints, and an object representing an IntPredicate along with a default value, this method returns the minimum int value in the array that matches the predicate, or the default value if no matching values are found.
intMinDefault(int[], FindIntWithDefaultSupplier) - Static method in class org.perro.functions.stream.IntStreamUtils
Given an array of ints, and an object representing an IntPredicate along with a Supplier for a default value, this method returns the minimum int value in the array that matches the predicate, or a default value from the supplier if no matching values are found.
intModulo(int) - Static method in class org.perro.functions.mapper.IntMapperUtils
Builds an IntUnaryOperator that divides its int parameter by a constant value to get a remainder.
intMultiply(int) - Static method in class org.perro.functions.mapper.IntMapperUtils
Builds an IntUnaryOperator that multiplies a constant value with an int parameter.
intNoneMatch(int[], IntPredicate) - Static method in class org.perro.functions.stream.IntStreamUtils
Given an array of ints and an IntPredicate, returns a boolean value indicating whether none of the values in the array match the predicate.
intNot(IntPredicate) - Static method in class org.perro.functions.predicate.IntPredicateUtils
An IntPredicate that simply negates the passed IntPredicate.
IntObjectPair<T> - Class in org.perro.functions.mapper
An immutable object that pairs a primitive int value, with an associated object of type <T>.
intPairOf(IntFunction<? extends U>) - Static method in class org.perro.functions.mapper.IntMapperUtils
Given an IntFunction that returns a value of type <U>, this method builds an IntFunction that returns a value of type IntObjectPair<U>.
intPairOf(IntKeyValueMapper<U, V>) - Static method in class org.perro.functions.mapper.IntMapperUtils
Given an object consisting of a pair of int functions, one that returns a value of type <U>, and the other that returns a value of type <V>, this method builds an IntFunction that returns a value of type Pair<U, V>.
intPairOf(IntFunction<? extends U>, IntFunction<? extends V>) - Static method in class org.perro.functions.mapper.IntMapperUtils
Given a pair of int functions, one that returns a value of type <U>, and the other that returns a value of type <V>, this method builds a DoubleFunction that returns a value of type Pair<U, V>.
intPairWith(List<R>) - Static method in class org.perro.functions.mapper.IntMapperUtils
Given a List<R>, this methods builds an IntFunction that returns an IntObjectPair<R>.
intPairWith(IntFunction<? extends U>, List<V>) - Static method in class org.perro.functions.mapper.IntMapperUtils
Given an IntFunction<U>, and a List<V>, this method builds an IntFunction that returns a Pair<U, V>.
intPairWithIndex() - Static method in class org.perro.functions.mapper.IntMapperUtils
Builds an IntFunction that returns an object that represents a pair of values, one being the int value itself, and the other a primitive zero-based index of the int in encounter order.
intPairWithIndex(IntFunction<? extends R>) - Static method in class org.perro.functions.mapper.IntMapperUtils
Given an IntFunction that returns a value of type <R>, this method builds an IntFunction that returns an object that represents a pair of values, one being a value returned from the passed int function, and the other a primitive zero-based index of the int value in encounter order.
intPredicate(IntPredicate) - Static method in class org.perro.functions.predicate.IntPredicateUtils
Simply casts a method reference, which takes a single parameter of type int or Integer, and returns a boolean or Boolean, to an IntPredicate.
intPredicate(BiPredicate<Integer, ? super U>, U) - Static method in class org.perro.functions.predicate.IntPredicateUtils
Builds an IntPredicate from a passed BiPredicate<Integer, U>, which can be very useful in the common situation where you are streaming through a collection of elements, and have an integer predicate method to call that takes two parameters - the first one being the int element on which you are streaming, and the second being some constant value that will be passed to all invocations.
IntPredicateUtils - Class in org.perro.functions.predicate
Methods that build predicates specifically those involving primitive int types.
intSetter(BiConsumer<? super T, Integer>, ToIntFunction<T>) - Static method in class org.perro.functions.consumer.IntConsumerUtils
Builds a Consumer from a passed BiConsumer.
IntStreamUtils - Class in org.perro.functions.stream
Methods that are shortcuts to creating streams, specifically methods involving primitive int types.
intSubtract(int) - Static method in class org.perro.functions.mapper.IntMapperUtils
Builds an IntUnaryOperator that subtracts a constant value from an int parameter.
intSupplier(ToIntFunction<T>, T) - Static method in class org.perro.functions.supplier.IntSupplierUtils
Builds an IntSupplier from a passed ToIntFunction which takes a parameter of type <T>.
intSupplier(ToIntBiFunction<T, U>, ConstantValues<T, U>) - Static method in class org.perro.functions.supplier.IntSupplierUtils
Builds an IntSupplier from a passed BiFunction which takes parameters of type <T> and <U>, and returns an Integer.
IntSupplierUtils - Class in org.perro.functions.supplier
Methods that build suppliers, specifically those involving primitive int types.
intTernary(IntPredicate, IntTernaryMapper<R>) - Static method in class org.perro.functions.mapper.IntMapperUtils
Given an IntPredicate and an object consisting of a pair of int functions, each returning a value of type <R>, one to return a value if the predicate is true, the other returning an alternate value if the predicate is false, this method builds an IntFunction that evaluates the predicate and returns a value produced by one or the other of the pair.
intToObjContains(Collection<? extends R>, IntFunction<? extends R>) - Static method in class org.perro.functions.predicate.IntPredicateUtils
Given a Collection whose elements are of type <R>, and an IntFunction that returns a value of type <R>, this method builds an IntPredicate that determines if the given collection contains the value returned by the int function.
intToObjectsAllMatch(IntFunction<? extends Collection<R>>, Predicate<R>) - Static method in class org.perro.functions.predicate.IntPredicateUtils
Given an IntFunction that returns a Collection of type <R>, and a Predicate, this method builds an IntPredicate that determines whether all elements in the returned Collection match the Predicate.
intToObjectsAnyMatch(IntFunction<? extends Collection<R>>, Predicate<R>) - Static method in class org.perro.functions.predicate.IntPredicateUtils
Given an IntFunction that returns a Collection of type <R>, and a Predicate, this method builds an IntPredicate that determines whether any of the elements in the returned Collection match the Predicate.
intToObjectsNoneMatch(IntFunction<? extends Collection<R>>, Predicate<R>) - Static method in class org.perro.functions.predicate.IntPredicateUtils
Given an IntFunction that returns a Collection of type <R>, and a Predicate, this method builds an IntPredicate that determines whether none of the elements in the returned Collection match the Predicate.
intTransform(int[], IntFunction<R>) - Static method in class org.perro.functions.mapper.IntTransformUtils
Given an array of ints, and an IntFunction<R> that transforms those ints into elements of type <R>, returns a List<R> of those elements.
intTransform(int[], Collector<Integer, ?, C>) - Static method in class org.perro.functions.mapper.IntTransformUtils
Given an array of ints, and a Collector<Integer, ?, C>, returns a Collection<C> of Integer elements.
intTransform(int[], IntTransformerCollector<U, C>) - Static method in class org.perro.functions.mapper.IntTransformUtils
Given an array of ints, and an IntTransformerCollector<U, C> that contains an IntFunction<U> to transform int values into elements of type <U>, and a Collector<U, ?, C>, returns a collection of type <C> of those elements.
intTransformAndThen(IntFunction<U>, Collector<U, ?, C>) - Static method in class org.perro.functions.mapper.IntTransformUtils
Builds an IntTransformerCollector<U, C> that contains an IntFunction<U> to transform primitive int values into elements of type <U>, and a Collector<U, ?, C> to collect those elements into a collection of type <C>.
intTransformDistinct(int[], IntFunction<R>) - Static method in class org.perro.functions.mapper.IntTransformUtils
Given an array of ints, and an IntFunction<R> that transforms those ints into elements of type <R>, returns a List<R> of those elements, which will contain only unique values (according to Object.equals(Object)).
intTransformToMap(int[], IntKeyValueMapper<K, V>) - Static method in class org.perro.functions.mapper.IntTransformUtils
Given an array of primitive ints, and an IntKeyValueMapper containing an IntFunction to transform an int to a key of type <K>, and another IntFunction to transform an int to a value of type <V>, returns a Map<K, V>.
intTransformToSet(int[], IntFunction<R>) - Static method in class org.perro.functions.mapper.IntTransformUtils
Given an array of ints, and an IntFunction<R> that transforms those ints into elements of type <R>, returns a Set<R> of those elements.
IntTransformUtils - Class in org.perro.functions.mapper
Methods to transform an array of ints to a collection of elements of an arbitrary type, or to transform a collection of elements of an arbitrary type to an array of ints.
intTrueFalseMappers(IntFunction<R>, IntFunction<R>) - Static method in class org.perro.functions.mapper.IntMapperUtils
Builds an object representing a pair of functions, one to return a value if an int predicate evaluates to true, the other to return an alternate value if it evaluates to false.
intUnaryTransform(int[], IntUnaryOperator) - Static method in class org.perro.functions.mapper.IntTransformUtils
Given an array of ints, and an IntUnaryOperator that transforms each of those ints to another int, returns an array of the resulting int values.
intUnaryTransformDistinct(int[], IntUnaryOperator) - Static method in class org.perro.functions.mapper.IntTransformUtils
Given an array of ints, and an IntUnaryOperator that transforms each of those ints to another int, returns an array of the resulting int values, which will contain only distinct values.
Invariants - Class in org.perro.functions.internal
Internal class intended only to be used by classes in this library.
inverseConsumer(BiConsumer<? super U, ? super T>, U) - Static method in class org.perro.functions.consumer.ConsumerUtils
As in the ConsumerUtils.consumer(BiConsumer, Object) method, builds a consumer from a passed BiConsumer, which can be very useful in the common situation where you are streaming through a collection elements, and have a method to call that takes two parameters.
inverseContains(Function<? super T, ? extends Collection<R>>, R) - Static method in class org.perro.functions.predicate.PredicateUtils
Given a Function that takes an element of type <T>, and returns a Collection<R>, this method builds a Predicate that takes an element of type <T>, and determines if the collection returned by that function contains the passed value of type <R>.
inverseContainsAll(Function<? super T, ? extends Collection<R>>, Collection<? extends R>) - Static method in class org.perro.functions.predicate.PredicateUtils
Given a Function that takes an element of type <T>, and returns a Collection<R>, this method builds a Predicate that takes an element of type <T>, and determines if the collection returned by that function contains all of the value in the passed Collection of elements of type <R>.
inverseDblConsumer(ObjDoubleConsumer<? super U>, U) - Static method in class org.perro.functions.consumer.DblConsumerUtils
Builds a DoubleConsumer from a passed BiConsumer.
inverseDblMapper(BiFunction<? super U, Double, ? extends R>, U) - Static method in class org.perro.functions.mapper.DblMapperUtils
Builds a DoubleFunction from a passed BiFunction.
inverseDblPredicate(BiPredicate<? super U, Double>, U) - Static method in class org.perro.functions.predicate.DblPredicateUtils
Builds a DoublePredicate from a passed BiPredicate<Double, U>, which can be very useful in the common situation where you are streaming through a collection of elements, and have a double predicate method to call that takes two parameters.
inverseDblToObjContains(DoubleFunction<? extends Collection<R>>, R) - Static method in class org.perro.functions.predicate.DblPredicateUtils
Given a DoubleFunction that returns a Collection<R>, this method builds a DoublePredicate that determines if the collection returned by that double function contains the passed value of type <R>.
inverseIntConsumer(ObjIntConsumer<? super U>, U) - Static method in class org.perro.functions.consumer.IntConsumerUtils
Builds an IntConsumer from a passed BiConsumer.
inverseIntMapper(BiFunction<? super U, Integer, ? extends R>, U) - Static method in class org.perro.functions.mapper.IntMapperUtils
Builds an IntFunction from a passed BiFunction.
inverseIntPredicate(BiPredicate<? super U, Integer>, U) - Static method in class org.perro.functions.predicate.IntPredicateUtils
Builds an IntPredicate from a passed BiPredicate<Integer, U>, which can be very useful in the common situation where you are streaming through a collection of elements, and have an integer predicate method to call that takes two parameters.
inverseIntToObjContains(IntFunction<? extends Collection<R>>, R) - Static method in class org.perro.functions.predicate.IntPredicateUtils
Given an IntFunction that returns a Collection<R>, this method builds an IntPredicate that determines if the collection returned by that int function contains the passed value of type <R>.
inverseLongConsumer(ObjLongConsumer<? super U>, U) - Static method in class org.perro.functions.consumer.LongConsumerUtils
Builds a LongConsumer from a passed BiConsumer.
inverseLongMapper(BiFunction<? super U, Long, ? extends R>, U) - Static method in class org.perro.functions.mapper.LongMapperUtils
Builds a LongFunction from a passed BiFunction.
inverseLongPredicate(BiPredicate<? super U, Long>, U) - Static method in class org.perro.functions.predicate.LongPredicateUtils
Builds a LongPredicate from a passed BiPredicate<Long, U>, which can be very useful in the common situation where you are streaming through a collection of elements, and have a long predicate method to call that takes two parameters.
inverseLongToObjContains(LongFunction<? extends Collection<R>>, R) - Static method in class org.perro.functions.predicate.LongPredicateUtils
Given a LongFunction that returns a Collection<R>, this method builds a LongPredicate that determines if the collection returned by that long function contains the passed value of type <R>.
inverseMapper(BiFunction<? super U, ? super T, ? extends R>, U) - Static method in class org.perro.functions.mapper.MapperUtils
As in the MapperUtils.mapper(BiFunction, Object) method, builds a Function from a passed BiFunction, which can be very useful in the common situation where you are streaming through a collection elements, and have a method to call that takes two parameters.
inverseObjToDblContains(Function<T, double[]>, double) - Static method in class org.perro.functions.predicate.DblPredicateUtils
Given a Function that takes an element of type <T> and returns an array of doubles, this method builds a Predicate that determines if the array returned by that function contains the passed constant double value.
inverseObjToIntContains(Function<T, int[]>, int) - Static method in class org.perro.functions.predicate.IntPredicateUtils
Given a Function that takes an element of type <T> and returns an array of ints, this method builds a Predicate that determines if the array returned by that function contains the passed constant int value.
inverseObjToLongContains(Function<T, ? extends long[]>, long) - Static method in class org.perro.functions.predicate.LongPredicateUtils
Given a Function that takes an element of type <T> and returns an array of longs, this method builds a Predicate that determines if the array returned by that function contains the passed constant long value.
inversePredicate(BiPredicate<? super U, ? super T>, U) - Static method in class org.perro.functions.predicate.PredicateUtils
As in the PredicateUtils.predicate(BiPredicate, Object) method, builds a Predicate<T> from a passed BiPredicate, which can be very useful in the common situation where you are streaming through a collection of elements, and have a predicate method to call that takes two parameters.
inverseToDblMapper(ToDoubleBiFunction<? super U, ? super T>, U) - Static method in class org.perro.functions.mapper.DblMapperUtils
Builds a ToDoubleFunction from a passed ToDoubleBiFunction.
inverseToIntMapper(ToIntBiFunction<? super U, ? super T>, U) - Static method in class org.perro.functions.mapper.IntMapperUtils
Builds a ToIntFunction from a passed ToIntBiFunction.
inverseToLongMapper(ToLongBiFunction<? super U, ? super T>, U) - Static method in class org.perro.functions.mapper.LongMapperUtils
Builds a ToLongFunction from a passed ToLongBiFunction.
isAlpha(Function<? super T, ? extends CharSequence>) - Static method in class org.perro.functions.predicate.PredicateUtils
Given a Function that takes an element of type <T> and returns a CharSequence, this method builds a Predicate that takes an element of type <T>, and determines if the character sequence returned from the function is made up entirely of alpha characters.
isAlphanumeric(Function<? super T, ? extends CharSequence>) - Static method in class org.perro.functions.predicate.PredicateUtils
Given a Function that takes an element of type <T> and returns a CharSequence, this method builds a Predicate that takes an element of type <T>, and determines if the character sequence returned from the function is made up entirely of alphanumeric characters.
isCollEmpty(Function<? super T, ? extends Collection<?>>) - Static method in class org.perro.functions.predicate.PredicateUtils
Given a Function that takes an element of type <T>, and returns a Collection whose elements may be of any type, this method builds a Predicate that takes an element of type <T>, and determines if the collection returned by that function is empty.
isCollNotEmpty(Function<? super T, ? extends Collection<?>>) - Static method in class org.perro.functions.predicate.PredicateUtils
Given a Function that takes an element of type <T>, and returns a Collection whose elements may be of any type, this method builds a Predicate that takes an element of type <T>, and determines if the collection returned by that function is not empty.
isDblArrayEmpty(Function<? super T, double[]>) - Static method in class org.perro.functions.predicate.DblPredicateUtils
Given a Function that returns an array of doubles, this method builds a Predicate that determines whether the returned array is empty.
isDblArrayNotEmpty(Function<? super T, double[]>) - Static method in class org.perro.functions.predicate.DblPredicateUtils
Given a Function that returns an array of doubles, this method builds a Predicate that determines whether the returned array is not empty.
isDblCollEmpty(DoubleFunction<? extends Collection<?>>) - Static method in class org.perro.functions.predicate.DblPredicateUtils
Given a DoubleFunction that returns a Collection of elements of an arbitrary type, this method builds a DoublePredicate that determines whether the returned Collection is empty.
isDblCollNotEmpty(DoubleFunction<? extends Collection<?>>) - Static method in class org.perro.functions.predicate.DblPredicateUtils
Given a DoubleFunction that returns a Collection of elements of an arbitrary type, this method builds a DoublePredicate that determines whether the returned Collection is not empty.
isDblEqual(double) - Static method in class org.perro.functions.predicate.DblPredicateUtils
This method builds a DoublePredicate whose parameter is to be compared for equality to the passed double constant value.
isDblEqual(double, double) - Static method in class org.perro.functions.predicate.DblPredicateUtils
This method builds a DoublePredicate whose parameter is to be compared for equality to the passed double constant value.
isDblEqual(DoubleUnaryOperator, double) - Static method in class org.perro.functions.predicate.DblPredicateUtils
Given a DoubleUnaryOperator this method builds a DoublePredicate that determines if the value returned by that operator is equal to the passed constant double value.
isDblEqual(DoubleUnaryOperator, DoubleWithDelta) - Static method in class org.perro.functions.predicate.DblPredicateUtils
Given a DoubleUnaryOperator this method builds a DoublePredicate that determines if a value returned by that operator is equal to a constant double value, within a delta parameter.
isDblNotEqual(double) - Static method in class org.perro.functions.predicate.DblPredicateUtils
This method builds a DoublePredicate whose parameter is to be compared for inequality to the passed double constant value.
isDblNotEqual(double, double) - Static method in class org.perro.functions.predicate.DblPredicateUtils
This method builds a DoublePredicate whose parameter is to be compared for inequality to the passed double constant value.
isDblNotEqual(DoubleUnaryOperator, double) - Static method in class org.perro.functions.predicate.DblPredicateUtils
Given a DoubleUnaryOperator this method builds a DoublePredicate that determines if the value returned by that operator is not equal to the passed constant double value.
isDblNotEqual(DoubleUnaryOperator, DoubleWithDelta) - Static method in class org.perro.functions.predicate.DblPredicateUtils
Given a DoubleUnaryOperator this method builds a DoublePredicate that determines if a value returned by that operator is equal to a constant double value, within a delta parameter.
isEqual(Function<? super T, ? extends R>, R) - Static method in class org.perro.functions.predicate.PredicateUtils
Given a Function that takes an element of type <T>, and returns a value of type <R>, this method builds a Predicate that takes an element of type <T>, and determines if the value returned by that Function is equal to the passed value, according to Object.equals(...).
isIntArrayEmpty(Function<? super T, int[]>) - Static method in class org.perro.functions.predicate.IntPredicateUtils
Given a Function that returns an array of int, this method builds a Predicate that determines whether the returned array is empty.
isIntArrayNotEmpty(Function<? super T, int[]>) - Static method in class org.perro.functions.predicate.IntPredicateUtils
Given a Function that returns an array of ints, this method builds a Predicate that determines whether the returned array is not empty.
isIntCollEmpty(IntFunction<? extends Collection<?>>) - Static method in class org.perro.functions.predicate.IntPredicateUtils
Given an IntFunction that returns a Collection of elements of an arbitrary type, this method builds an IntPredicate that determines whether the returned Collection is empty.
isIntCollNotEmpty(IntFunction<? extends Collection<?>>) - Static method in class org.perro.functions.predicate.IntPredicateUtils
Given an IntFunction that returns a Collection of elements of an arbitrary type, this method builds an IntPredicate that determines whether the returned Collection is not empty.
isIntEqual(int) - Static method in class org.perro.functions.predicate.IntPredicateUtils
This method builds an IntPredicate whose parameter is to be compared for equality to the passed int constant value.
isIntEqual(IntUnaryOperator, int) - Static method in class org.perro.functions.predicate.IntPredicateUtils
Given an IntUnaryOperator this method builds an IntPredicate that determines if the value returned by that operator is equal to the passed constant int value.
isIntNotEqual(int) - Static method in class org.perro.functions.predicate.IntPredicateUtils
This method builds an IntPredicate whose parameter is to be compared for inequality to the passed int constant value.
isIntNotEqual(IntUnaryOperator, int) - Static method in class org.perro.functions.predicate.IntPredicateUtils
Given an IntUnaryOperator this method builds an IntPredicate that determines if the value returned by that operator is not equal to the passed constant int value.
isLongArrayEmpty(Function<? super T, long[]>) - Static method in class org.perro.functions.predicate.LongPredicateUtils
Given a Function that returns an array of longs, this method builds a Predicate that determines whether the returned array is empty.
isLongArrayNotEmpty(Function<? super T, long[]>) - Static method in class org.perro.functions.predicate.LongPredicateUtils
Given a Function that returns an array of longs, this method builds a Predicate that determines whether the returned array is not empty.
isLongCollEmpty(LongFunction<? extends Collection<?>>) - Static method in class org.perro.functions.predicate.LongPredicateUtils
Given a LongFunction that returns a Collection of elements of an arbitrary type, this method builds a LongPredicate that determines whether the returned Collection is empty.
isLongCollNotEmpty(LongFunction<? extends Collection<?>>) - Static method in class org.perro.functions.predicate.LongPredicateUtils
Given a LongFunction that returns a Collection of elements of an arbitrary type, this method builds a LongPredicate that determines whether the returned Collection is not empty.
isLongEqual(long) - Static method in class org.perro.functions.predicate.LongPredicateUtils
This method builds a LongPredicate whose parameter is to be compared for equality to the passed long constant value.
isLongEqual(LongUnaryOperator, long) - Static method in class org.perro.functions.predicate.LongPredicateUtils
Given a LongUnaryOperator this method builds a LongPredicate that determines if the value returned by that operator is equal to the passed constant long value.
isLongNotEqual(long) - Static method in class org.perro.functions.predicate.LongPredicateUtils
This method builds a LongPredicate whose parameter is to be compared for inequality to the passed long constant value.
isLongNotEqual(LongUnaryOperator, long) - Static method in class org.perro.functions.predicate.LongPredicateUtils
Given a LongUnaryOperator this method builds a LongPredicate that determines if the value returned by that operator is not equal to the passed constant long value.
isNotEqual(Function<? super T, ? extends R>, R) - Static method in class org.perro.functions.predicate.PredicateUtils
Given a Function that takes an element of type <T>, and returns a value of type <R>, this method builds a Predicate that takes an element of type <T>, and determines if the value returned by that Function is not equal to the passed value, according to Object.equals(...).
isNull(Function<? super T, ?>) - Static method in class org.perro.functions.predicate.PredicateUtils
Given a Function that takes an element of type <T> and returns an object of any type, this method builds a Predicate that takes an element of type <T>, and determines whether the value returned from the function is null.
isNullOrEmpty(String) - Static method in class org.perro.functions.internal.StringUtils
 
isNumeric(Function<? super T, ? extends CharSequence>) - Static method in class org.perro.functions.predicate.PredicateUtils
Given a Function that takes an element of type <T> and returns a CharSequence, this method builds a Predicate that takes an element of type <T>, and determines if the character sequence returned from the function is made up entirely of alpha characters.
isSeqEmpty(Function<? super T, ? extends CharSequence>) - Static method in class org.perro.functions.predicate.PredicateUtils
Given a Function that takes an element of type <T>, and returns a CharSequence, this method builds a Predicate that takes an element of type <T>, and determines if the CharSequence returned by that Function is empty.
isSeqNotEmpty(Function<? super T, ? extends CharSequence>) - Static method in class org.perro.functions.predicate.PredicateUtils
Given a Function that takes an element of type <T>, and returns a CharSequence, this method builds a Predicate that takes an element of type <T>, and determines if the CharSequence returned by that Function is not empty.

J

join(Collection<T>, Function<T, CharSequence>) - Static method in class org.perro.functions.stream.StreamUtils
Given a Collection of elements of type <T>, and a Function that takes an element of type <T> and returns a CharSequence, this method builds a String of those char sequences joined together using "," as a delimiter.
join(Collection<T>, CharSequenceMapperWithDelimiter<T>) - Static method in class org.perro.functions.stream.StreamUtils
Given a Collection of elements of type <T>, and an object representing a Function that takes an element of type <T> and returns a CharSequence, and a delimiter, this method builds a String of those char sequences joined together using the delimiter.
join(Collection<T>, CharSequenceMapperWithCollector<T>) - Static method in class org.perro.functions.stream.StreamUtils
Given a Collection of elements of type <T>, and an object representing a Function that takes an element of type <T> and returns a CharSequence, and a joining Collector, this method builds a String of those char sequences joined together using the collector.

K

keyValueMapper(Function<T, K>, Function<T, V>) - Static method in class org.perro.functions.mapper.MapperUtils
Builds an object representing a pair of functions, one to return a key in a Map, and the other to return its associated value.

L

lazyDblSupplier(DoubleSupplier) - Static method in class org.perro.functions.supplier.DblSupplierUtils
Takes a DoubleSupplier and turns it into a lazy supplier.
lazyDblSupplier(ToDoubleFunction<T>, T) - Static method in class org.perro.functions.supplier.DblSupplierUtils
First creates a supplier using the DblSupplierUtils.dblSupplier(ToDoubleFunction, Object) method, and turns it into a lazy supplier.
lazyDblSupplier(ToDoubleBiFunction<T, U>, ConstantValues<T, U>) - Static method in class org.perro.functions.supplier.DblSupplierUtils
First creates a supplier using the DblSupplierUtils.dblSupplier(ToDoubleBiFunction, ConstantValues) method, and turns it into a lazy supplier.
lazyIntSupplier(IntSupplier) - Static method in class org.perro.functions.supplier.IntSupplierUtils
Takes an IntSupplier and turns it into a lazy supplier.
lazyIntSupplier(ToIntFunction<T>, T) - Static method in class org.perro.functions.supplier.IntSupplierUtils
First creates a supplier using the IntSupplierUtils.intSupplier(ToIntFunction, Object) method, and turns it into a lazy supplier.
lazyIntSupplier(ToIntBiFunction<T, U>, ConstantValues<T, U>) - Static method in class org.perro.functions.supplier.IntSupplierUtils
First creates a supplier using the IntSupplierUtils.intSupplier(ToIntBiFunction, ConstantValues) method, and turns it into a lazy supplier.
lazyLongSupplier(LongSupplier) - Static method in class org.perro.functions.supplier.LongSupplierUtils
Takes a LongSupplier and turns it into a lazy supplier.
lazyLongSupplier(ToLongFunction<T>, T) - Static method in class org.perro.functions.supplier.LongSupplierUtils
First creates a supplier using the LongSupplierUtils.longSupplier(ToLongFunction, Object) method, and turns it into a lazy supplier.
lazyLongSupplier(ToLongBiFunction<T, U>, ConstantValues<T, U>) - Static method in class org.perro.functions.supplier.LongSupplierUtils
First creates a supplier using the LongSupplierUtils.longSupplier(ToLongBiFunction, ConstantValues) method, and turns it into a lazy supplier.
lazySupplier(Supplier<T>) - Static method in class org.perro.functions.supplier.SupplierUtils
Takes a Supplier and turns it into a lazy supplier.
lazySupplier(Function<T, R>, T) - Static method in class org.perro.functions.supplier.SupplierUtils
First creates a supplier using the SupplierUtils.supplier(Function, Object) method, and turns it into a lazy supplier.
lazySupplier(BiFunction<T, U, R>, ConstantValues<T, U>) - Static method in class org.perro.functions.supplier.SupplierUtils
First creates a supplier using the SupplierUtils.supplier(BiFunction, ConstantValues) method, and turns it into a lazy supplier.
longAdd(long) - Static method in class org.perro.functions.mapper.LongMapperUtils
Builds a LongUnaryOperator that adds a constant value to a long parameter.
longAllMatch(long[], LongPredicate) - Static method in class org.perro.functions.stream.LongStreamUtils
Given an array of longs and a LongPredicate, returns a boolean value indicating whether all values in the array match the predicate.
longAnyMatch(long[], LongPredicate) - Static method in class org.perro.functions.stream.LongStreamUtils
Given an array of longs and a LongPredicate, returns a boolean value indicating whether any of the values in the array match the predicate.
longConstant(boolean) - Static method in class org.perro.functions.predicate.LongPredicateUtils
Builds a long predicate based on a passed constant boolean value.
longConsumer(LongConsumer) - Static method in class org.perro.functions.consumer.LongConsumerUtils
Simply casts a method reference, which takes a single parameter of type long and returns void, to a LongConsumer.
longConsumer(Runnable) - Static method in class org.perro.functions.consumer.LongConsumerUtils
Simply casts a method reference, which takes no parameters and returns void, to a LongConsumer.
longConsumer(BiConsumer<Long, ? super U>, U) - Static method in class org.perro.functions.consumer.LongConsumerUtils
Builds a LongConsumer from a passed BiConsumer.
LongConsumerUtils - Class in org.perro.functions.consumer
Methods that build consumers useful in many different situations, particularly in Java streams.
longCount(long[], LongPredicate) - Static method in class org.perro.functions.stream.LongStreamUtils
Given an array of longs and a LongPredicate, returns a long value indicating the number of values in the array that match the predicate.
longDivide(long) - Static method in class org.perro.functions.mapper.LongMapperUtils
Builds a LongUnaryOperator that divides its long parameter by a constant value.
longFilter(long[], LongPredicate) - Static method in class org.perro.functions.predicate.LongFilterUtils
Filters an array of long primitives, based a predicate, into another long array.
longFilter(long[], LongFilterCollector<C>) - Static method in class org.perro.functions.predicate.LongFilterUtils
Filters an array of long primitives, based a predicate, into a Collection.
longFilterAndThen(LongPredicate, Collector<Long, ?, C>) - Static method in class org.perro.functions.predicate.LongFilterUtils
Builds an object combining a LongPredicate and a Collector for use in the LongFilterUtils.longFilter(long[], LongFilterCollector) method.
longFilterDistinct(long[], LongPredicate) - Static method in class org.perro.functions.predicate.LongFilterUtils
Filters an array of longs, based a predicate, into an array of distinct long values (according to Long.compare(long, long)).
longFilterDistinct(long[], LongFilterCollector<C>) - Static method in class org.perro.functions.predicate.LongFilterUtils
Filters an array of longs, based a predicate, into an array of distinct long values.
longFilterToSet(long[], LongPredicate) - Static method in class org.perro.functions.predicate.LongFilterUtils
Filters an array of long primitives, based a predicate, into a Set.
LongFilterUtils - Class in org.perro.functions.predicate
Convenience methods for filtering arrays of long primitives, without having to spell out the entire stream->filter->collect process.
longFlatMap(long[], LongFunction<long[]>) - Static method in class org.perro.functions.mapper.LongTransformUtils
Given an array of longs, and a LongFunction<int[]> (a function that takes a long and returns an array of longs), returns an array of longs.
longFlatMapDistinct(long[], LongFunction<long[]>) - Static method in class org.perro.functions.mapper.LongTransformUtils
Given an array of longs, and a LongFunction<long[]> (a function that takes a long and returns an array of longs), returns an array of distinct primitive long values.
longFlatMapper(LongFunction<? extends long[]>) - Static method in class org.perro.functions.mapper.LongMapperUtils
Given a LongFunction that returns a long array, this method builds a LongFunction that returns a LongStream.
longGt(long) - Static method in class org.perro.functions.predicate.LongPredicateUtils
Builds a LongPredicate that determines whether a value is greater than a passed constant long value.
longGt(LongFunction<? extends R>, R) - Static method in class org.perro.functions.predicate.LongPredicateUtils
Given a LongFunction that returns a value of type <R>, and a constant value of type <R>, this method builds a LongPredicate that applies that function to its target value, and determines whether the returned Comparable value is greater than a passed constant value of type <R> (also a Comparable).
longGte(long) - Static method in class org.perro.functions.predicate.LongPredicateUtils
Builds a LongPredicate that determines whether a value is greater than or equal to a passed constant long value.
longGte(LongFunction<? extends R>, R) - Static method in class org.perro.functions.predicate.LongPredicateUtils
Given a LongFunction that returns a value of type <R>, and a constant value of type <R>, this method builds a LongPredicate that applies that function to its target value, and determines whether the returned Comparable value is greater than or equal to a passed constant value of type <R> (also a Comparable).
LongIndexPair - Class in org.perro.functions.mapper
An immutable object that pairs a primitive long value, with an associated int index.
longIsNotNull(LongFunction<?>) - Static method in class org.perro.functions.predicate.LongPredicateUtils
Given a LongFunction that returns a value of an arbitrary type, this method builds a LongPredicate that determines whether that returned value is not null.
longIsNull(LongFunction<?>) - Static method in class org.perro.functions.predicate.LongPredicateUtils
Given a LongFunction that returns a value of an arbitrary type, this method builds a LongPredicate that determines whether that returned value is null.
longKeyValueMapper(LongFunction<K>, LongFunction<V>) - Static method in class org.perro.functions.mapper.LongMapperUtils
Builds an object representing a pair of long functions, one to return a key in a Map, and the other to return its associated value.
longLt(long) - Static method in class org.perro.functions.predicate.LongPredicateUtils
Builds a LongPredicate that determines whether a value is less than a passed constant long value.
longLt(LongFunction<? extends R>, R) - Static method in class org.perro.functions.predicate.LongPredicateUtils
Given a LongFunction that returns a value of type <R>, and a constant value of type <R>, this method builds a LongPredicate that applies that function to its target value, and determines whether the returned Comparable value is less than a passed constant value of type <R> (also a Comparable).
longLte(long) - Static method in class org.perro.functions.predicate.LongPredicateUtils
Builds a LongPredicate that determines whether a value is less than or equal to a passed constant long value.
longLte(LongFunction<? extends R>, R) - Static method in class org.perro.functions.predicate.LongPredicateUtils
Given a LongFunction that returns a value of type <R>, and a constant value of type <R>, this method builds a LongPredicate that applies that function to its target value, and determines whether the returned Comparable value is less than or equal to a passed constant value of type <R> (also a Comparable).
longMapAndConsume(LongFunction<? extends U>, Consumer<U>) - Static method in class org.perro.functions.consumer.LongConsumerUtils
Builds a LongConsumer from a passed LongFunction and a Consumer.
longMapAndFilter(LongFunction<? extends T>, Predicate<? super T>) - Static method in class org.perro.functions.predicate.LongPredicateUtils
Given a LongFunction that returns a value of type <T>, and a Predicate, this method builds a LongPredicate that applies the return value of the LongFunction to the given predicate.
longMapper(LongFunction<R>) - Static method in class org.perro.functions.mapper.LongMapperUtils
Simply casts a method reference, which takes a single parameter of type long and returns <R>, to a LongFunction.
longMapper(BiFunction<Long, ? super U, ? extends R>, U) - Static method in class org.perro.functions.mapper.LongMapperUtils
Builds a LongFunction from a passed BiFunction.
LongMapperUtils - Class in org.perro.functions.mapper
Methods that build functions to map a target element into another result.
longMaxDefault(long[], FindLongWithDefault) - Static method in class org.perro.functions.stream.LongStreamUtils
Given an array of longs, and an object representing a LongPredicate along with a default value, this method returns the maximum long value in the array that matches the predicate, or the default value if no matching values are found.
longMaxDefault(long[], FindLongWithDefaultSupplier) - Static method in class org.perro.functions.stream.LongStreamUtils
Given an array of longs, and an object representing a LongPredicate along with a Supplier for a default value, this method returns the maximum long value in the array that matches the predicate, or a default value from the supplier if no matching values are found.
longMinDefault(long[], FindLongWithDefault) - Static method in class org.perro.functions.stream.LongStreamUtils
Given an array of longs, and an object representing a LongPredicate along with a default value, this method returns the minimum long value in the array that matches the predicate, or the default value if no matching values are found.
longMinDefault(long[], FindLongWithDefaultSupplier) - Static method in class org.perro.functions.stream.LongStreamUtils
Given an array of longs, and an object representing a LongPredicate along with a Supplier for a default value, this method returns the minimum long value in the array that matches the predicate, or a default value from the supplier if no matching values are found.
longModulo(long) - Static method in class org.perro.functions.mapper.LongMapperUtils
Builds a LongUnaryOperator that divides its long parameter by a constant value to get a remainder.
longMultiply(long) - Static method in class org.perro.functions.mapper.LongMapperUtils
Builds a LongUnaryOperator that multiplies a constant value with a long parameter.
longNoneMatch(long[], LongPredicate) - Static method in class org.perro.functions.stream.LongStreamUtils
Given an array of longs and a LongPredicate, returns a boolean value indicating whether none of the values in the array match the predicate.
longNot(LongPredicate) - Static method in class org.perro.functions.predicate.LongPredicateUtils
A LongPredicate that simply negates the passed LongPredicate.
LongObjectPair<T> - Class in org.perro.functions.mapper
An immutable object that pairs a primitive long value, with an associated object of type <T>.
longPairOf(LongFunction<? extends U>) - Static method in class org.perro.functions.mapper.LongMapperUtils
Given a LongFunction that returns a value of type <U>, this method builds a LongFunction that returns a value of type LongObjectPair<U>.
longPairOf(LongKeyValueMapper<U, V>) - Static method in class org.perro.functions.mapper.LongMapperUtils
Given an object consisting of a pair of long functions, one that returns a value of type <U>, and the other that returns a value of type <V>, this method builds a LongFunction that returns a value of type Pair<U, V>.
longPairOf(LongFunction<? extends U>, LongFunction<? extends V>) - Static method in class org.perro.functions.mapper.LongMapperUtils
Given a pair of long functions, one that returns a value of type <U>, and the other that returns a value of type <V>, this method builds a LongFunction that returns a value of type Pair<U, V>.
longPairWith(List<R>) - Static method in class org.perro.functions.mapper.LongMapperUtils
Given a List<R>, this methods builds a LongFunction that returns a LongObjectPair<R>.
longPairWith(LongFunction<? extends U>, List<V>) - Static method in class org.perro.functions.mapper.LongMapperUtils
Given a LongFunction<U>, and a List<V>, this method builds a LongFunction that returns a Pair<U, V>.
longPairWithIndex() - Static method in class org.perro.functions.mapper.LongMapperUtils
Builds a LongFunction that returns an object that represents a pair of values, one being the long value itself, and the other a primitive zero-based index of the long in encounter order.
longPairWithIndex(LongFunction<? extends R>) - Static method in class org.perro.functions.mapper.LongMapperUtils
Given a LongFunction that returns a value of type <R>, this method builds a LongFunction that returns an object that represents a pair of values, one being a value returned from the passed long function, and the other a primitive zero-based index of the long value in encounter order.
longPredicate(LongPredicate) - Static method in class org.perro.functions.predicate.LongPredicateUtils
Simply casts a method reference, which takes a single parameter of type long or Long, and returns a boolean or Boolean, to a LongPredicate.
longPredicate(BiPredicate<Long, ? super U>, U) - Static method in class org.perro.functions.predicate.LongPredicateUtils
Builds a LongPredicate from a passed BiPredicate<Long, U>, which can be very useful in the common situation where you are streaming through a collection of elements, and have a long predicate method to call that takes two parameters - the first one being the long element on which you are streaming, and the second being some constant value that will be passed to all invocations.
LongPredicateUtils - Class in org.perro.functions.predicate
Methods that build predicates specifically those involving primitive long types.
longSetter(BiConsumer<? super T, Long>, ToLongFunction<T>) - Static method in class org.perro.functions.consumer.LongConsumerUtils
Builds a Consumer from a passed BiConsumer.
LongStreamUtils - Class in org.perro.functions.stream
Methods that are shortcuts to creating streams, specifically methods involving primitive long types.
longSubtract(long) - Static method in class org.perro.functions.mapper.LongMapperUtils
Builds a LongUnaryOperator that subtracts a constant value from a long parameter.
longSupplier(ToLongFunction<T>, T) - Static method in class org.perro.functions.supplier.LongSupplierUtils
Builds a LongSupplier from a passed ToLongFunction which takes a parameter of type <T>.
longSupplier(ToLongBiFunction<T, U>, ConstantValues<T, U>) - Static method in class org.perro.functions.supplier.LongSupplierUtils
Builds a LongSupplier from a passed BiFunction which takes parameters of type <T> and <U>, and returns a Long.
LongSupplierUtils - Class in org.perro.functions.supplier
Methods that build suppliers, specifically those involving primitive long types.
longTernary(LongPredicate, LongTernaryMapper<R>) - Static method in class org.perro.functions.mapper.LongMapperUtils
Given a LongPredicate and an object consisting of a pair of long functions, each returning a value of type <R>, one to return a value if the predicate is true, the other returning an alternate value if the predicate is false, this method builds a LongFunction that evaluates the predicate and returns a value produced by one or the other of the pair.
longToObjContains(Collection<? extends R>, LongFunction<? extends R>) - Static method in class org.perro.functions.predicate.LongPredicateUtils
Given a Collection whose elements are of type <R>, and a LongFunction that returns a value of type <R>, this method builds a LongPredicate that determines if the given collection contains the value returned by the long function.
longToObjectsAllMatch(LongFunction<? extends Collection<R>>, Predicate<R>) - Static method in class org.perro.functions.predicate.LongPredicateUtils
Given a LongFunction that returns a Collection of type <R>, and a Predicate, this method builds a LongPredicate that determines whether all elements in the returned Collection match the Predicate.
longToObjectsAnyMatch(LongFunction<? extends Collection<R>>, Predicate<R>) - Static method in class org.perro.functions.predicate.LongPredicateUtils
Given a LongFunction that returns a Collection of type <R>, and a Predicate, this method builds a LongPredicate that determines whether any of the elements in the returned Collection match the Predicate.
longToObjectsNoneMatch(LongFunction<? extends Collection<R>>, Predicate<R>) - Static method in class org.perro.functions.predicate.LongPredicateUtils
Given a LongFunction that returns a Collection of type <R>, and a Predicate, this method builds a LongPredicate that determines whether none of the elements in the returned Collection match the Predicate.
longTransform(long[], LongFunction<R>) - Static method in class org.perro.functions.mapper.LongTransformUtils
Given an array of longs, and a LongFunction<R> that transforms those longs into elements of type <R>, returns a List<R> of those elements.
longTransform(long[], Collector<Long, ?, C>) - Static method in class org.perro.functions.mapper.LongTransformUtils
Given an array of longs, and a Collector<Long, ?, C>, returns a Collection<C> of Long elements.
longTransform(long[], LongTransformerCollector<U, C>) - Static method in class org.perro.functions.mapper.LongTransformUtils
Given an array of longs, and a LongTransformerCollector<U, C> that contains a LongFunction<U> to transform long values into elements of type <U>, and a Collector<U, ?, C>, returns a collection of type <C> of those elements.
longTransformAndThen(LongFunction<U>, Collector<U, ?, C>) - Static method in class org.perro.functions.mapper.LongTransformUtils
Builds a LongTransformerCollector<U, C> that contains a LongFunction<U> to transform primitive long values into elements of type <U>, and a Collector<U, ?, C> to collect those elements into a collection of type <C>.
longTransformDistinct(long[], LongFunction<R>) - Static method in class org.perro.functions.mapper.LongTransformUtils
Given an array of longs, and a LongFunction<R> that transforms those longs into elements of type <R>, returns a List<R> of those elements, which will contain only unique values (according to Object.equals(Object)).
longTransformToMap(long[], LongKeyValueMapper<K, V>) - Static method in class org.perro.functions.mapper.LongTransformUtils
Given an array of primitive longs, and a LongKeyValueMapper containing a LongFunction to transform a long to a key of type <K>, and another LongFunction to transform a long to a value of type <V>, returns a Map<K, V>.
longTransformToSet(long[], LongFunction<R>) - Static method in class org.perro.functions.mapper.LongTransformUtils
Given an array of longs, and a LongFunction<R> that transforms those longs into elements of type <R>, returns a Set<R> of those elements.
LongTransformUtils - Class in org.perro.functions.mapper
Methods to transform an array of longs to a collection of elements of an arbitrary type, or to transform a collection of elements of an arbitrary type to an array of longs.
longTrueFalseMappers(LongFunction<R>, LongFunction<R>) - Static method in class org.perro.functions.mapper.LongMapperUtils
Builds an object representing a pair of functions, one to return a value if a long predicate evaluates to true, the other to return an alternate value if it evaluates to false.
longUnaryTransform(long[], LongUnaryOperator) - Static method in class org.perro.functions.mapper.LongTransformUtils
Given an array of longs, and a LongUnaryOperator that transforms each of those longs to another long, returns an array of the resulting long values.
longUnaryTransformDistinct(long[], LongUnaryOperator) - Static method in class org.perro.functions.mapper.LongTransformUtils
Given an array of longs, and a LongUnaryOperator that transforms each of those longs to another long, returns an array of the resulting long values, which will contain only distinct values.
lt(Function<? super T, ? extends R>, R) - Static method in class org.perro.functions.predicate.PredicateUtils
Given a Function that takes an element of type <T> and returns a value of type <R>, this method builds a Predicate that takes an element of type <T>, and determines if the value returned from the function is less than the compareTo value passed.
lte(Function<? super T, ? extends R>, R) - Static method in class org.perro.functions.predicate.PredicateUtils
Given a Function that takes an element of type <T> and returns a value of type <R>, this method builds a Predicate that takes an element of type <T>, and determines if the value returned from the function is less than or equal to the compareTo value passed.

M

mapAndConsume(Function<? super T, ? extends U>, Consumer<? super U>) - Static method in class org.perro.functions.consumer.ConsumerUtils
Applies a Function to a target element, before passing its result to a Consumer.
mapAndFilter(Function<? super T, ? extends R>, Predicate<? super R>) - Static method in class org.perro.functions.predicate.PredicateUtils
Given a Function that takes an element of type <T> returning a value of type <R>, and a Predicate that takes an element of type <R>, this method builds a Predicate that takes an element of type <T>, and applies the return value of the function to the given predicate.
mapper(Function<T, R>) - Static method in class org.perro.functions.mapper.MapperUtils
Simply casts a method reference, which takes a single parameter of type <T> and returns <R>, to a Function.
mapper(BiFunction<? super T, ? super U, ? extends R>, U) - Static method in class org.perro.functions.mapper.MapperUtils
Builds a Function from a passed BiFunction, which can be very useful in the common situation where you are streaming through a collection of elements, and have a method to call that takes two parameters - the first one being the element on which you are streaming, and the second being some constant value that will be passed to all invocations.
mapper(Function<? super T, ? extends U>, Function<? super U, ? extends R>) - Static method in class org.perro.functions.mapper.MapperUtils
Applies a series to two Function method references, the first taking a parameter of type <T> and returning a value of type <U>, and the second taking a parameter of type <U> and returning a value of type <R>.
mapperDefault(T) - Static method in class org.perro.functions.mapper.MapperUtils
Given a default value of type <T>, returns a UnaryOperator<T> that simply returns the target element if it is not null, otherwise it returns the passed defaultValue.
mapperDefault(Supplier<T>) - Static method in class org.perro.functions.mapper.MapperUtils
Given a default value of type <T>, returns a UnaryOperator<T> that simply returns the target element if it is not null, otherwise it returns a default value retrieved from the passed defaultSupplier.
mapperDefault(Function<? super T, ? extends R>, R) - Static method in class org.perro.functions.mapper.MapperUtils
Builds a mapper Function that, if the target element is null, or the result of the Function call on the target element is null, then the passed default value is returned.
mapperDefault(Function<? super T, ? extends R>, Supplier<R>) - Static method in class org.perro.functions.mapper.MapperUtils
Builds a mapper Function that, if the target element is null, or the result of the Function call on the target element is null, then the passed defaultSupplier is called to provide a default value.
mapperIgnoringTarget(Supplier<R>) - Static method in class org.perro.functions.mapper.MapperUtils
Takes a Supplier and returns a Function taking a parameter of type <T>.
mapperIgnoringTarget(Function<U, R>, U) - Static method in class org.perro.functions.mapper.MapperUtils
Takes a Function with a single parameter of type <U> and returns a Function taking a parameter of type <T>.
MapperUtils - Class in org.perro.functions.mapper
Methods that build functions to map a target element into another result.
mapperWithCollector(Function<T, CharSequence>, Collector<CharSequence, ?, String>) - Static method in class org.perro.functions.stream.StreamUtils
Builds an object representing a Function that takes an element of type <T> and returns a CharSequence, and a joining Collector.
mapperWithDelimiter(Function<T, CharSequence>, CharSequence) - Static method in class org.perro.functions.stream.StreamUtils
Builds an object representing a Function that takes an element of type <T> and returns a CharSequence, and a delimiter.
mapToDblAndConsume(ToDoubleFunction<? super T>, DoubleConsumer) - Static method in class org.perro.functions.consumer.DblConsumerUtils
Applies a ToDoubleFunction to a target element, before passing its result to a DoubleConsumer.
mapToDblAndFilter(ToDoubleFunction<? super T>, DoublePredicate) - Static method in class org.perro.functions.predicate.DblPredicateUtils
Given a ToDoubleFunction taking a value of type <T>, and a DoublePredicate, this method builds a Predicate that takes an element of type <T>, and applies the return value of the ToDoubleFunction to the given predicate.
mapToIntAndConsume(ToIntFunction<? super T>, IntConsumer) - Static method in class org.perro.functions.consumer.IntConsumerUtils
Applies a ToIntFunction to a target element, before passing its result to an IntConsumer.
mapToIntAndFilter(ToIntFunction<? super T>, IntPredicate) - Static method in class org.perro.functions.predicate.IntPredicateUtils
Given a ToIntFunction taking a value of type <T>, and an IntPredicate, this method builds a Predicate that takes an element of type <T>, and applies the return value of the ToIntFunction to the given predicate.
mapToLongAndConsume(ToLongFunction<? super T>, LongConsumer) - Static method in class org.perro.functions.consumer.LongConsumerUtils
Applies a ToLongFunction to a target element, before passing its result to a LongConsumer.
mapToLongAndFilter(ToLongFunction<? super T>, LongPredicate) - Static method in class org.perro.functions.predicate.LongPredicateUtils
Given a ToLongFunction taking a value of type <T>, and a LongPredicate, this method builds a Predicate that takes an element of type <T>, and applies the return value of the ToLongFunction to the given predicate.
maxDefault(Collection<T>, FindWithDefault<T>) - Static method in class org.perro.functions.stream.StreamUtils
Given a Collection of elements of type <T>, and an object representing a Predicate along with a default value of type <T>, this method returns the maximum element in the Collection that matches the predicate, or the default value if no matching element is found.
maxDefault(Collection<T>, FindWithDefaultSupplier<T>) - Static method in class org.perro.functions.stream.StreamUtils
Given a Collection of elements of type <T>, and an object representing a Predicate along with a Supplier for a default value, this method returns the maximum element in the Collection that matches the predicate, or a default value from the supplier if no matching element is found.
maxDefaultNull(Collection<T>, Predicate<T>) - Static method in class org.perro.functions.stream.StreamUtils
Given a Collection of elements of type <T> and a Predicate, this method returns the maximum element in the collection that matches the predicate, returning null if none are found.
minDefault(Collection<T>, FindWithDefault<T>) - Static method in class org.perro.functions.stream.StreamUtils
Given a Collection of elements of type <T>, and an object representing a Predicate along with a default value of type <T>, this method returns the minimum element in the Collection that matches the predicate, or the default value if no matching element is found.
minDefault(Collection<T>, FindWithDefaultSupplier<T>) - Static method in class org.perro.functions.stream.StreamUtils
Given a Collection of elements of type <T>, and an object representing a Predicate along with a Supplier for a default value, this method returns the minimum element in the Collection that matches the predicate, or a default value from the supplier if no matching element is found.
minDefaultNull(Collection<T>, Predicate<T>) - Static method in class org.perro.functions.stream.StreamUtils
Given a Collection of elements of type <T> and a Predicate, this method returns the minimum element in the collection that matches the predicate, returning null if none are found.

N

noCharsMatch(Function<? super T, ? extends CharSequence>, IntPredicate) - Static method in class org.perro.functions.predicate.PredicateUtils
Given a Function that takes an element of type <T> and returns a CharSequence, this method builds a Predicate that takes an element of type <T>, and determines if none of the characters in the character sequence returned from the function match the given IntPredicate.
noneMatch(Function<? super T, ? extends Collection<R>>, Predicate<R>) - Static method in class org.perro.functions.predicate.PredicateUtils
Given a Function that takes an element of type <T>, and returns a Collection<R>, this method builds a Predicate that takes an element of type <T>, and determines if none of the elements of the collection returned by that function match a given Predicate.
noneMatch(Collection<T>, Predicate<T>) - Static method in class org.perro.functions.stream.StreamUtils
Given a Collection of objects of type <T> and a Predicate, returns a boolean value indicating whether none of the values in the collection match the predicate.
not(Predicate<T>) - Static method in class org.perro.functions.predicate.PredicateUtils
A predicate that simply negates the passed predicate.
notEqualsIgnoreCase(Function<? super T, ? extends CharSequence>, CharSequence) - Static method in class org.perro.functions.predicate.PredicateUtils
Given a Function that takes an element of type <T>, and returns a CharSequence, this method builds a Predicate that takes an element of type <T>, and determines if the CharSequence returned by that Function is not equal to a passed CharSequence ignoring case.
notNull(Function<T, ?>) - Static method in class org.perro.functions.predicate.PredicateUtils
Given a Function that takes an element of type <T> and returns an object of any type, this method builds a Predicate that takes an element of type <T>, and determines whether the value returned from the function is not null.

O

ObjectIndexPair<T> - Class in org.perro.functions.mapper
An immutable object that pairs an object of type <T>, with an associated int index.
objToDblContains(double[], ToDoubleFunction<? super T>) - Static method in class org.perro.functions.predicate.DblPredicateUtils
Given a double array, and a ToDoubleFunction that takes an element of type <T>, this method builds a Predicate that determines if the given array contains the value returned by the ToDoubleFunction.
objToDblsAllMatch(Function<T, ? extends double[]>, DoublePredicate) - Static method in class org.perro.functions.predicate.DblPredicateUtils
Given a Function that takes an element of type <T> and returns an array of doubles, and a DoublePredicate, this method builds a Predicate that determines whether all doubles in the returned array match the DoublePredicate.
objToDblsAnyMatch(Function<T, ? extends double[]>, DoublePredicate) - Static method in class org.perro.functions.predicate.DblPredicateUtils
Given a Function that takes an element of type <T> and returns an array of doubles, and a DoublePredicate, this method builds a Predicate that determines whether any of the doubles in the returned array match the DoublePredicate.
objToDblsNoneMatch(Function<T, ? extends double[]>, DoublePredicate) - Static method in class org.perro.functions.predicate.DblPredicateUtils
Given a Function that takes an element of type <T> and returns an array of doubles, and a DoublePredicate, this method builds a Predicate that determines whether none of the doubles in the returned array match the DoublePredicate.
objToIntContains(int[], ToIntFunction<? super T>) - Static method in class org.perro.functions.predicate.IntPredicateUtils
Given an int array, and a ToIntFunction that takes an element of type <T>, this method builds a Predicate that determines if the given array contains the value returned by the ToIntFunction.
objToIntsAllMatch(Function<T, ? extends int[]>, IntPredicate) - Static method in class org.perro.functions.predicate.IntPredicateUtils
Given a Function that takes an element of type <T> and returns an array of ints, and an IntPredicate, this method builds a Predicate that determines whether all ints in the returned array match the IntPredicate.
objToIntsAnyMatch(Function<T, ? extends int[]>, IntPredicate) - Static method in class org.perro.functions.predicate.IntPredicateUtils
Given a Function that takes an element of type <T> and returns an array of ints, and an IntPredicate, this method builds a Predicate that determines whether any of the ints in the returned array match the IntPredicate.
objToIntsNoneMatch(Function<T, ? extends int[]>, IntPredicate) - Static method in class org.perro.functions.predicate.IntPredicateUtils
Given a Function that takes an element of type <T> and returns an array of ints, and an IntPredicate, this method builds a Predicate that determines whether none of the ints in the returned array match the IntPredicate.
objToLongContains(long[], ToLongFunction<? super T>) - Static method in class org.perro.functions.predicate.LongPredicateUtils
Given a long array, and a ToLongFunction that takes an element of type <T>, this method builds a Predicate that determines if the given array contains the value returned by the ToLongFunction.
objToLongsAllMatch(Function<T, ? extends long[]>, LongPredicate) - Static method in class org.perro.functions.predicate.LongPredicateUtils
Given a Function that takes an element of type <T> and returns an array of longs, and a LongPredicate, this method builds a Predicate that determines whether all longs in the returned array match the LongPredicate.
objToLongsAnyMatch(Function<T, ? extends long[]>, LongPredicate) - Static method in class org.perro.functions.predicate.LongPredicateUtils
Given a Function that takes an element of type <T> and returns an array of longs, and a LongPredicate, this method builds a Predicate that determines whether any of the longs in the returned array match the LongPredicate.
objToLongsNoneMatch(Function<T, ? extends long[]>, LongPredicate) - Static method in class org.perro.functions.predicate.LongPredicateUtils
Given a Function that takes an element of type <T> and returns an array of longs, and a LongPredicate, this method builds a Predicate that determines whether none of the longs in the returned array match the LongPredicate.
of(K, V) - Static method in class org.perro.functions.internal.Pair
Builds an object of this type using the given key and value instances.
of(double, int) - Static method in class org.perro.functions.mapper.DoubleIndexPair
Builds a new instance of this class, with the given doubleValue and index values.
of(double, T) - Static method in class org.perro.functions.mapper.DoubleObjectPair
Builds a new instance of this class, with the given double and <T> values.
of(int, int) - Static method in class org.perro.functions.mapper.IntIndexPair
Builds a new instance of this class, with the given intValue value, and an associated index.
of(int, T) - Static method in class org.perro.functions.mapper.IntObjectPair
Builds a new instance of this class, with the given int and <T> values.
of(long, int) - Static method in class org.perro.functions.mapper.LongIndexPair
Builds a new instance of this class, with the given longValue value, and an associated index.
of(long, T) - Static method in class org.perro.functions.mapper.LongObjectPair
Builds a new instance of this class, with the given long and <T> values.
of(T, int) - Static method in class org.perro.functions.mapper.ObjectIndexPair
Builds a new instance of this class, with the given object and index values.
org.perro.functions.collector - package org.perro.functions.collector
 
org.perro.functions.comparator - package org.perro.functions.comparator
 
org.perro.functions.consumer - package org.perro.functions.consumer
 
org.perro.functions.internal - package org.perro.functions.internal
 
org.perro.functions.mapper - package org.perro.functions.mapper
 
org.perro.functions.predicate - package org.perro.functions.predicate
 
org.perro.functions.stream - package org.perro.functions.stream
 
org.perro.functions.supplier - package org.perro.functions.supplier
 

P

Pair<K,V> - Class in org.perro.functions.internal
Although this class resides in the "internal" package, it will be returned as the result of some of the mapping functions built by the MapperUtils methods.
pairOf(Function<? super T, ? extends U>) - Static method in class org.perro.functions.mapper.MapperUtils
Given a Function that takes an element of type <T> and returns a value of type <U>, this method builds a Function that takes the same argument type and returns a value of type Pair<T, U>.
pairOf(KeyValueMapper<T, U, V>) - Static method in class org.perro.functions.mapper.MapperUtils
Given an object consisting of a pair of functions, one that takes an element of type <T> and returns a value of type <U>, and the other that takes an element of type <T> and returns a value of type <V>, this method builds a Function that takes the same argument type and returns a value of type Pair<U, V>.
pairOf(Function<T, U>, Function<? super T, ? extends V>) - Static method in class org.perro.functions.mapper.MapperUtils
Given a pair of functions, one that takes an element of type <T> and returns a value of type <U>, and the other that takes an element of type <T> and returns a value of type <V>, this method builds a Function that takes the same argument type and returns a value of type Pair<U, V>.
pairWith(List<R>) - Static method in class org.perro.functions.mapper.MapperUtils
Given a List<R>, this methods builds a Function that returns a Pair<T, R>.
pairWith(Function<? super T, ? extends U>, List<V>) - Static method in class org.perro.functions.mapper.MapperUtils
Given a Function<T, U>, and a List<V>, this method builds a Function that takes an element of type <T>, and returns a Pair<U, V>.
pairWithIndex() - Static method in class org.perro.functions.mapper.MapperUtils
Builds a Function that, given an element of type <T>, returns an object that represents a pair of values, one being the element itself, and the other a primitive zero-based index of the object in encounter order.
pairWithIndex(Function<? super T, ? extends R>) - Static method in class org.perro.functions.mapper.MapperUtils
Given a Function that takes an element of type <T> and returns a value of type <R>, this method builds a Function that, given an element of type <T>, returns an object that represents a pair of values, one being a value returned from the passed function, and the other a primitive zero-based index of the object in encounter order.
predicate(Predicate<T>) - Static method in class org.perro.functions.predicate.PredicateUtils
Simply casts a method reference, which takes a single parameter of type <T> and returns a boolean (or a Boolean), to a Predicate<T>.
predicate(BiPredicate<? super T, ? super U>, U) - Static method in class org.perro.functions.predicate.PredicateUtils
Builds a Predicate<T> from a passed BiPredicate, which can be very useful in the common situation where you are streaming through a collection of elements, and have a predicate method to call that takes two parameters - the first one being the element on which you are streaming, and the second being some constant value that will be passed to all invocations.
predicateDefault(Predicate<? super T>, boolean) - Static method in class org.perro.functions.predicate.PredicateUtils
Builds a Predicate that, if the target element is null, then the passed boolean default value is returned.
PredicateUtils - Class in org.perro.functions.predicate
Methods that build predicates, especially useful in filtering streams.

S

setter(BiConsumer<? super T, ? super U>, Function<T, U>) - Static method in class org.perro.functions.consumer.ConsumerUtils
This method is a variation of the consumer(...) methods that has some special properties.
setValue(V) - Method in class org.perro.functions.internal.Pair
Because this is an immutable map entry object, this method is not unsupported.
startsWith(Function<? super T, ? extends CharSequence>, CharSequence) - Static method in class org.perro.functions.predicate.PredicateUtils
Given a Function that takes an element of type <T> and returns a CharSequence, this method builds a Predicate that takes an element of type <T>, and determines if the character sequence returned from the function starts with a given prefix.
startsWithIgnoreCase(Function<? super T, ? extends CharSequence>, CharSequence) - Static method in class org.perro.functions.predicate.PredicateUtils
Given a Function that takes an element of type <T> and returns a CharSequence, this method builds a Predicate that takes an element of type <T>, and determines if the character sequence returned from the function starts with a given prefix ignoring case.
StreamUtils - Class in org.perro.functions.stream
Methods that are shortcuts to creating streams, specifically methods involving object instances.
StringUtils - Class in org.perro.functions.internal
Internal class intended only to be used by classes in this library.
subtract(Set<T>, Set<T>) - Static method in class org.perro.functions.stream.StreamUtils
Given a Set from which to subtract the elements of another one, returns a Set of the remaining elements.
supplier(Function<T, R>, T) - Static method in class org.perro.functions.supplier.SupplierUtils
Builds a Supplier of objects of type <R> from a passed Function taking a parameter of type <T>.
supplier(BiFunction<T, U, R>, ConstantValues<T, U>) - Static method in class org.perro.functions.supplier.SupplierUtils
Builds a Supplier of objects of type <R> from a passed BiFunction taking parameters of type <T> and <U>.
SupplierUtils - Class in org.perro.functions.supplier
Methods that build suppliers, specifically those involving arbitrary object types.

T

ternary(Predicate<T>, TrueFalseMappers<T, R>) - Static method in class org.perro.functions.mapper.MapperUtils
Given a Predicate<T> and an object consisting of a pair of functions, each taking an element of type <T> and returning a value of type <R>, one to return a value if the predicate is true, the other returning an alternate value if the predicate is false, this method builds a Function that evaluates the predicate and returns a value produced by one or the other of the pair.
toDblGt(ToDoubleFunction<? super T>, double) - Static method in class org.perro.functions.predicate.DblPredicateUtils
Given a ToDoubleFunction that takes an element of type <T>, this method builds a Predicate that compares the return value of that function, and determines whether it is greater than a passed constant double value.
toDblGte(ToDoubleFunction<? super T>, double) - Static method in class org.perro.functions.predicate.DblPredicateUtils
Given a ToDoubleFunction that takes an element of type <T>, this method builds a Predicate that compares the return value of that function, and determines whether it is greater than or equal to a passed constant double value.
toDblLt(ToDoubleFunction<? super T>, double) - Static method in class org.perro.functions.predicate.DblPredicateUtils
Given a ToDoubleFunction that takes an element of type <T>, this method builds a Predicate that compares the return value of that function, and determines whether it is less than a passed constant double value.
toDblLte(ToDoubleFunction<? super T>, double) - Static method in class org.perro.functions.predicate.DblPredicateUtils
Given a ToDoubleFunction that takes an element of type <T>, this method builds a Predicate that compares the return value of that function, and determines whether it is less than or equal to a passed constant double value.
toDblMapper(ToDoubleFunction<T>) - Static method in class org.perro.functions.mapper.DblMapperUtils
Simply casts a method reference, which takes a single parameter of type <T> and returns double, to a ToDoubleFunction.
toDblMapper(ToDoubleBiFunction<? super T, ? super U>, U) - Static method in class org.perro.functions.mapper.DblMapperUtils
Builds a ToDoubleFunction from a passed ToDoubleBiFunction.
toDblMapperDefault(ToDoubleFunction<? super T>, double) - Static method in class org.perro.functions.mapper.DblMapperUtils
Builds a mapper ToDoubleFunction that, if the target element is null, or the result of the Function call on the target element is null, then the passed default value is returned.
toEnumSet(Class<E>) - Static method in class org.perro.functions.collector.CollectorUtils
Builds a Collector that constructs an EnumSet, and accumulates enumerated values into it.
toIntGt(ToIntFunction<? super T>, int) - Static method in class org.perro.functions.predicate.IntPredicateUtils
Given a ToIntFunction that takes an element of type <T>, this method builds a Predicate that compares the return value of that function, and determines whether it is greater than a passed constant int value.
toIntGte(ToIntFunction<? super T>, int) - Static method in class org.perro.functions.predicate.IntPredicateUtils
Given a ToIntFunction that takes an element of type <T>, this method builds a Predicate that compares the return value of that function, and determines whether it is greater than or equal to a passed constant int value.
toIntLt(ToIntFunction<? super T>, int) - Static method in class org.perro.functions.predicate.IntPredicateUtils
Given a ToIntFunction that takes an element of type <T>, this method builds a Predicate that compares the return value of that function, and determines whether it is less than a passed constant int value.
toIntLte(ToIntFunction<? super T>, int) - Static method in class org.perro.functions.predicate.IntPredicateUtils
Given a ToIntFunction that takes an element of type <T>, this method builds a Predicate that compares the return value of that function, and determines whether it is less than or equal to a passed constant int value.
toIntMapper(ToIntFunction<T>) - Static method in class org.perro.functions.mapper.IntMapperUtils
Simply casts a method reference, which takes a single parameter of type <T> and returns int, to a ToIntFunction.
toIntMapper(ToIntBiFunction<? super T, ? super U>, U) - Static method in class org.perro.functions.mapper.IntMapperUtils
Builds a ToIntFunction from a passed ToIntBiFunction.
toIntMapperDefault(ToIntFunction<? super T>, int) - Static method in class org.perro.functions.mapper.IntMapperUtils
Builds a mapper ToIntFunction that, if the target element is null, or the result of the Function call on the target element is null, then the passed default value is returned.
toListWithDefault(T) - Static method in class org.perro.functions.collector.CollectorUtils
Returns a Collector that will add a default element into a resulting collection, if it would have otherwise been empty.
toLongGt(ToLongFunction<? super T>, long) - Static method in class org.perro.functions.predicate.LongPredicateUtils
Given a ToLongFunction that takes an element of type <T>, this method builds a Predicate that compares the return value of that function, and determines whether it is greater than a passed constant long value.
toLongGte(ToLongFunction<? super T>, long) - Static method in class org.perro.functions.predicate.LongPredicateUtils
Given a ToLongFunction that takes an element of type <T>, this method builds a Predicate that compares the return value of that function, and determines whether it is greater than or equal to a passed constant long value.
toLongLt(ToLongFunction<? super T>, long) - Static method in class org.perro.functions.predicate.LongPredicateUtils
Given a ToLongFunction that takes an element of type <T>, this method builds a Predicate that compares the return value of that function, and determines whether it is less than a passed constant long value.
toLongLte(ToLongFunction<? super T>, long) - Static method in class org.perro.functions.predicate.LongPredicateUtils
Given a ToLongFunction that takes an element of type <T>, this method builds a Predicate that compares the return value of that function, and determines whether it is less than or equal to a passed constant long value.
toLongMapper(ToLongFunction<T>) - Static method in class org.perro.functions.mapper.LongMapperUtils
Simply casts a method reference, which takes a single parameter of type <T> and returns long, to a ToLongFunction.
toLongMapper(ToLongBiFunction<? super T, ? super U>, U) - Static method in class org.perro.functions.mapper.LongMapperUtils
Builds a ToLongFunction from a passed ToLongBiFunction.
toLongMapperDefault(ToLongFunction<? super T>, long) - Static method in class org.perro.functions.mapper.LongMapperUtils
Builds a mapper ToLongFunction that, if the target element is null, or the result of the Function call on the target element is null, then the passed default value is returned.
toMapFromEntry() - Static method in class org.perro.functions.collector.CollectorUtils
Sometimes it is convenient to stream through the entries of a map.
toPartitionedDblList(double[], int) - Static method in class org.perro.functions.stream.DblStreamUtils
Given an array of doubles, and a partition size, this method divides the array into a list of double arrays, each of whose length is at most partitionSize.
toPartitionedDblStream(double[], int) - Static method in class org.perro.functions.stream.DblStreamUtils
Given an array of doubles, and a partition size, this method divides the array into a stream of double arrays, each of whose length is at most partitionSize.
toPartitionedIntList(int[], int) - Static method in class org.perro.functions.stream.IntStreamUtils
Given an array of ints, and a partition size, this method divides the array into a list of int arrays, each of whose length is at most partitionSize.
toPartitionedIntStream(int[], int) - Static method in class org.perro.functions.stream.IntStreamUtils
Given an array of ints, and a partition size, this method divides the array into a stream of int arrays, each of whose length is at most partitionSize.
toPartitionedList(int) - Static method in class org.perro.functions.collector.CollectorUtils
Builds a Collector that accumulates a stream of elements into a list of lists of those elements, each limited to the passed partitionSize.
toPartitionedList(int, Function<List<List<T>>, List<R>>) - Static method in class org.perro.functions.collector.CollectorUtils
Builds a Collector that accumulates a stream of elements into a list of arbitrary objects of type <R>, into which those elements are accumulated.
toPartitionedList(Collection<T>, int) - Static method in class org.perro.functions.stream.StreamUtils
Given a Collection of elements of type <T>, and a partition size, this method divides the collection into a List of lists, each of whose length is at most partitionSize.
toPartitionedLongList(long[], int) - Static method in class org.perro.functions.stream.LongStreamUtils
Given an array of longs, and a partition size, this method divides the array into a list of long arrays, each of whose length is at most partitionSize.
toPartitionedLongStream(long[], int) - Static method in class org.perro.functions.stream.LongStreamUtils
Given an array of longs, and a partition size, this method divides the array into a stream of long arrays, each of whose length is at most partitionSize.
toPartitionedStream(int) - Static method in class org.perro.functions.collector.CollectorUtils
Builds a Collector that accumulates a stream of elements into a stream of lists of those elements, each limited to the passed partitionSize.
toPartitionedStream(Collection<T>, int) - Static method in class org.perro.functions.stream.StreamUtils
Given a Collection of elements of type <T>, and a partition size, this method divides the collection into a Stream of lists, each of whose length is at most partitionSize.
toSetWithDefault(T) - Static method in class org.perro.functions.collector.CollectorUtils
Returns a Collector that will add a default element into a resulting collection, if it would have otherwise been empty.
toString() - Method in class org.perro.functions.mapper.DoubleIndexPair
Returns a string representation of the object, containing the primitive attribute values of this object.
toString() - Method in class org.perro.functions.mapper.DoubleObjectPair
Returns a string representation of the object, containing the primitive double left attribute and its associated object of type <T>.
toString() - Method in class org.perro.functions.mapper.IntIndexPair
Returns a string representation of the object, containing the primitive attribute values of this object.
toString() - Method in class org.perro.functions.mapper.IntObjectPair
Returns a string representation of the object, containing the primitive int left attribute and its associated object of type <T>.
toString() - Method in class org.perro.functions.mapper.LongIndexPair
Returns a string representation of the object, containing the primitive attribute values of this object.
toString() - Method in class org.perro.functions.mapper.LongObjectPair
Returns a string representation of the object, containing the primitive long left attribute and its associated object of type <T>.
toString() - Method in class org.perro.functions.mapper.ObjectIndexPair
Returns a string representation of the object, containing the object of type <T> and int index attributes of this object.
toStringBuilder() - Static method in class org.perro.functions.collector.CollectorUtils
Builds a Collector that can be useful in dealing with strings as a stream of characters.
toSynchronizedCollection(Supplier<Collection<T>>) - Static method in class org.perro.functions.collector.CollectorUtils
Builds a Collector that accumulates into a collection supplied by wrappedCollectionSupplier, which will be wrapped by a synchronized collection.
toSynchronizedList() - Static method in class org.perro.functions.collector.CollectorUtils
Builds a Collector that accumulates into an synchronized list.
toSynchronizedSet() - Static method in class org.perro.functions.collector.CollectorUtils
Builds a Collector that accumulates into an synchronized set.
toUnmodifiableCollection(Supplier<Collection<T>>) - Static method in class org.perro.functions.collector.CollectorUtils
Builds a Collector that accumulates into a collection supplied by wrappedCollectionSupplier, which will be wrapped by a unmodifiable collection.
toUnmodifiableList() - Static method in class org.perro.functions.collector.CollectorUtils
Builds a Collector that accumulates into an unmodifiable list.
toUnmodifiableSet() - Static method in class org.perro.functions.collector.CollectorUtils
Builds a Collector that accumulates into an unmodifiable set.
toUpperCase(String) - Static method in class org.perro.functions.internal.StringUtils
 
transform(Collection<T>, Function<T, R>) - Static method in class org.perro.functions.mapper.TransformUtils
Given a collection of elements of type <T>, and a transformer function that converts those elements to objects of type <R>, this method transforms the given collection to a List<R>.
transform(Collection<T>, TransformerCollector<T, U, C>) - Static method in class org.perro.functions.mapper.TransformUtils
Given a collection of elements of type <T>, and an object that represents a transformer Function<T, U> along with a Collector<U, ?, C>, this method transforms the given collection to one of type <C>, with elements of type <U>.
transformAndThen(Function<T, U>, Collector<U, ?, C>) - Static method in class org.perro.functions.mapper.TransformUtils
Given a Function<T, U>, and a Collector<U, ?, C>, this method builds an object consisting of both of those parameters.
transformDistinct(Collection<T>, Function<T, R>) - Static method in class org.perro.functions.mapper.TransformUtils
Given a collection of elements of type <T>, and a transformer function that converts those elements to objects of type <R>, this method transforms the given collection to a List<R> of distinct elements (according to Object.equals(Object)).
transformToMap(Collection<T>, KeyValueMapper<T, K, V>) - Static method in class org.perro.functions.mapper.TransformUtils
Given a collection of elements of type <T>, and an object that represents a transformer of those elements into Map keys and values, of type <K> and <V> respectively, this method transforms that collection into a Map<K, V>.
transformToSet(Collection<T>, Function<T, R>) - Static method in class org.perro.functions.mapper.TransformUtils
Given a collection of elements of type <T>, and a transformer function that converts those elements to objects of type <R>, this method transforms the given collection to a Set<R>.
TransformUtils - Class in org.perro.functions.mapper
Methods to transform a collection of elements of a given type, to those of another type, in some cases to another type of collection as well.
trueFalseMappers(Function<T, R>, Function<T, R>) - Static method in class org.perro.functions.mapper.MapperUtils
Builds an object representing a pair of functions, one to return a value if a predicate evaluates to true, the other to return an alternate value if it evaluates to false.

W

withDefault(T, Supplier<R>) - Static method in class org.perro.functions.collector.CollectorUtils
Returns a Collector that will add a default element into a resulting collection, if it would have otherwise been empty.
A B C D E F G H I J K L M N O P S T W 
Skip navigation links