Package Torello.Java.Function
Java is a strongly-typed language. It is different than other typed-languages like 'C++',
because there aren't any memory address allowed inside of a programmer's code inside Java. As
such, certain artifacts that a programmer uses often can change as compared to other variants
of typed programming languages.
A C-Styled Function Pointer is usually easy - it just contains a pointer - it is just a memory address of a C Function. Java, however, requires that the types of both the input-parameters, and the return-values be knownst and identified when using a Java Function Pointer. This differs from how the C-Compiler handles function-pointers. In C, the input and output types are irrelevant.
For whatever reason, Sun-Oracle did not provide a very comprehensive list for all of the combinations of
Regardless, any pre-defined Functional-Interface can be created by anybody who writes Java. Extending the original Java package with these Function-Pointer Type-Definiitions has been useful vis-a-vis the Java-HTML JAR Distribution (this JAR).
A C-Styled Function Pointer is usually easy - it just contains a pointer - it is just a memory address of a C Function. Java, however, requires that the types of both the input-parameters, and the return-values be knownst and identified when using a Java Function Pointer. This differs from how the C-Compiler handles function-pointers. In C, the input and output types are irrelevant.
For whatever reason, Sun-Oracle did not provide a very comprehensive list for all of the combinations of
Predicate, Consumer, Supplier
or Function
when it developed the
package java.util.function.*
Though more could have been done, recognizing that the
sheer number of combinations becomes so large (when including all of the variants of Java
Primitives), it is likely that Java's Function Pointer Package didn't "just forget" - it was a
conscious decision.
Regardless, any pre-defined Functional-Interface can be created by anybody who writes Java. Extending the original Java package with these Function-Pointer Type-Definiitions has been useful vis-a-vis the Java-HTML JAR Distribution (this JAR).
-
Single Primitive Java Entity Description BoolConsumer BoolConsumer DocumentationByteConsumer ByteConsumer DocumentationCharConsumer CharConsumer DocumentationFloatConsumer FloatConsumer DocumentationShortConsumer ShortConsumer DocumentationBoolPredicate BoolPredicate DocumentationBytePredicate BytePredicate DocumentationCharPredicate CharPredicate DocumentationFloatPredicate FloatPredicate DocumentationShortPredicate ShortPredicate DocumentationBoolSupplier BoolSupplier DocumentationByteSupplier ByteSupplier DocumentationCharSupplier CharSupplier DocumentationFloatSupplier FloatSupplier DocumentationShortSupplier ShortSupplier DocumentationMultilple Object Types Java Entity Description TriConsumer<A,B,C> TriConsumer DocumentationTriFunction<A,B,C,R> TriFunction DocumentationTriPredicate<A,B,C> TriPredicate DocumentationQuadConsumer<A,B,C,D> QuadConsumer DocumentationQuadFunction<A,B,C,D,R> QuadFunction DocumentationQuadPredicate<A,B,C,D> QuadPredicate DocumentationQuintConsumer<A,B,C,D,E> QuintConsumer DocumentationQuintFunction<A,B,C,D,E,R> QuintFunction DocumentationQuintPredicate<A,B,C,D,E> QuintPredicate DocumentationHexConsumer<A,B,C,D,E,F> HexConsumer DocumentationHexFunction<A,B,C,D,E,F,R> HexFunction DocumentationHexPredicate<A,B,C,D,E,F> HexPredicate DocumentationFunctions into a Primitive Java Entity Description ToDoubleHexFunction<A,B,C,D,E,F> ToDoubleHexFunction DocumentationToDoubleQuadFunction<A,B,C,D> ToDoubleQuadFunction DocumentationToDoubleQuintFunction<A,B,C,D,E> ToDoubleQuintFunction DocumentationToDoubleTriFunction<A,B,C> ToDoubleTriFunction DocumentationToIntHexFunction<A,B,C,D,E,F> ToIntHexFunction DocumentationToIntQuadFunction<A,B,C,D> ToIntQuadFunction DocumentationToIntQuintFunction<A,B,C,D,E> ToIntQuintFunction DocumentationToIntTriFunction<A,B,C> ToIntTriFunction DocumentationToLongHexFunction<A,B,C,D,E,F> ToLongHexFunction DocumentationToLongQuadFunction<A,B,C,D> ToLongQuadFunction DocumentationToLongQuintFunction<A,B,C,D,E> ToLongQuintFunction DocumentationToLongTriFunction<A,B,C> ToLongTriFunction DocumentationTwo Primitive Inputs Java Entity Description BiIntConsumer BiIntConsumer DocumentationBiIntFunction<R> BiIntFunction DocumentationBiIntPredicate BiIntPredicate DocumentationIntBoolConsumer IntBoolConsumer DocumentationIntBoolFunction<R> IntBoolFunction DocumentationIntBoolPredicate IntBoolPredicate DocumentationIntByteConsumer IntByteConsumer DocumentationIntByteFunction<R> IntByteFunction DocumentationIntBytePredicate IntBytePredicate DocumentationIntDoubleConsumer IntDoubleConsumer DocumentationIntDoubleFunction<R> IntDoubleFunction DocumentationIntDoublePredicate IntDoublePredicate DocumentationIntFloatConsumer IntFloatConsumer DocumentationIntFloatFunction<R> IntFloatFunction DocumentationIntFloatPredicate IntFloatPredicate DocumentationIntLongConsumer IntLongConsumer DocumentationIntLongFunction<R> IntLongFunction DocumentationIntLongPredicate IntLongPredicate DocumentationIntShortConsumer IntShortConsumer DocumentationIntShortFunction<R> IntShortFunction DocumentationIntShortPredicate IntShortPredicate DocumentationIntCharConsumer IntCharConsumer DocumentationIntCharFunction<R> IntCharFunction DocumentationIntCharPredicate IntCharPredicate DocumentationPrimitve and Object Inputs Java Entity Description ByteTFunction<T,R> ByteTFunction DocumentationShortTFunction<T,R> ShortTFunction DocumentationIntTFunction<T,R> IntTFunction DocumentationLongTFunction<T,R> LongTFunction DocumentationFloatTFunction<T,R> IntTFunction DocumentationDoubleTFunction<T,R> DoubleTFunction DocumentationCharTFunction<T,R> CharTFunction DocumentationBooleanTFunction<T,R> BooleanTFunction DocumentationMisc. (Used in Torello.Java) Java Entity Description IntIntByteFunc<R> IntIntByteFunc DocumentationIntIntShortFunc<R> IntIntShortFunc DocumentationTriIntFunc<R> TriIntFunc DocumentationIntIntLongFunc<R> IntIntLongFunc DocumentationIntIntFloatFunc<R> IntIntFloatFunc DocumentationIntIntDoubleFunc<R> IntIntDoubleFunc DocumentationIntIntCharFunc<R> IntIntCharFunc DocumentationIntIntBoolFunc<R> IntIntBoolFunc DocumentationIntIntTFunc<T,R> IntIntTFunc DocumentationToCharIntCharFunc ToCharIntCharFunc DocumentationToCharIntTFunc<T> ToCharIntTFunc Documentation