Package eu.bandm.tools.util.java
Class Functions
java.lang.Object
eu.bandm.tools.util.java.Functions
Library of constants and combinators for classes implementing
Function
.-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic <A,
B> Function<A, B> static <A,
B, C> BiFunction<A, B, C> binConstant
(C result) static <A,
B, C, D> BiFunction<A, B, D> compose
(BiFunction<? super A, ? super B, ? extends C> f, Function<? super C, ? extends D> g) static <A,
B, C> Function<A, C> static <A,
B, C, D> Function<A, D> compose
(Function<? super A, ? extends B> f1, Function<? super B, ? extends C> f2, Function<? super C, ? extends D> f3) static <A,
B, C, D, E>
Function<A,E> compose
(Function<? super A, ? extends B> f1, Function<? super B, ? extends C> f2, Function<? super C, ? extends D> f3, Function<? super D, ? extends E> f4) static <A,
B, C, D, E>
BiFunction<A,C, E> compose
(Function<? super A, ? extends B> f, Function<? super C, ? extends D> g, BiFunction<? super B, ? super D, ? extends E> h) static <A,
B> Function<A, B> constant
(B result) curry
(BiFunction<A, B, C> f) static <A,
B> Function<A, B> static <A,
B> Predicate<A> static <A,
B> Function<A, B> fail()
static <A,
B, C> BiFunction<B, A, C> flip
(BiFunction<A, B, C> f) static <A,
B, C> Function<A, C> leftSection
(BiFunction<? super A, ? super B, ? extends C> f, B arg) static <A,
B, C> Functions.MemoizedBiFunction<A, B, C> memoize
(BiFunction<A, B, C> fun) static <A,
B> Function<A, B> static <A,
B> Function<A, B> static <A,
B> Function<A, B> static <A,
B, C> Function<B, C> rightSection
(BiFunction<? super A, ? super B, ? extends C> f, A a) static <A,
B> Function<A, B> static <A> Function<A,
A> static <A,
B, C> BiFunction<A, B, C> static <A,
B> Function<A, B>
-
Method Details
-
undef
-
compose
-
curry
-
uncurry
-
constant
-
binConstant
-
flip
-
rightSection
public static <A,B, Function<B,C> C> rightSection(BiFunction<? super A, ? super B, ? extends C> f, A a) -
leftSection
public static <A,B, Function<A,C> C> leftSection(BiFunction<? super A, ? super B, ? extends C> f, B arg) -
compose
public static <A,B, BiFunction<A,C, D> B, composeD> (BiFunction<? super A, ? super B, ? extends C> f, Function<? super C, ? extends D> g) -
compose
public static <A,B, BiFunction<A,C, D, E> C, composeE> (Function<? super A, ? extends B> f, Function<? super C, ? extends D> g, BiFunction<? super B, ? super D, ? extends E> h) -
fail
-
restrict
-
strict
-
override
-
defaultTo
-
domain
-
arbitrary
-
adjust
-
trace
-
compose
-
compose
-
memoize
-
memoize
-