| Package | Description |
|---|---|
| org.osgl | |
| org.osgl.util.algo |
| Modifier and Type | Class and Description |
|---|---|
static class |
Osgl.F3<P1,P2,P3,R>
Base implementation of
Osgl.Func3 function. |
static class |
Osgl.V3<P1,P2,P3> |
| Modifier and Type | Method and Description |
|---|---|
Osgl.Func3<P1,P2,P3,R> |
Osgl.F3.andThen(Osgl.Func3<? super P1,? super P2,? super P3,? extends R>... fs)
Returns a composed function that applied, in sequence, this function and
all functions specified one by one.
|
<T> Osgl.Func3<P1,P2,P3,T> |
Osgl.F3.andThen(Osgl.Function<? super R,? extends T> f)
Returns a composed function from this function and the specified function that takes the
result of this function.
|
| Modifier and Type | Method and Description |
|---|---|
Osgl.Func3<P1,P2,P3,R> |
Osgl.F3.andThen(Osgl.Func3<? super P1,? super P2,? super P3,? extends R>... fs)
Returns a composed function that applied, in sequence, this function and
all functions specified one by one.
|
static <T1,T2,T3> Osgl.F3<T1,T2,T3,Void> |
Osgl.F.breakIf(Osgl.Func3<? super T1,? super T2,? super T3,Boolean> predicate)
Return a three variables function that throw out a
Osgl.Break when a three variables predicate return
true on an element been tested. |
static <P,T1,T2,T3> |
Osgl.F.breakIf(Osgl.Func3<? super T1,? super T2,? super T3,Boolean> predicate,
P payload)
Return a three variables function that throw out a
Osgl.Break with payload specified when
a three variables predicate return true on an element been tested |
<X1,X2,X3> Osgl.F3<X1,X2,X3,R> |
Osgl.F1.compose(Osgl.Func3<? super X1,? super X2,? super X3,? extends P1> before)
Returns an
F3<X1, X2, X3, R>> function by composing the specified
Func3<X1, X2, X3, P1> function with this function applied last |
static <P1,P2,P3,R> |
Osgl.f3(Osgl.Func3<? super P1,? super P2,? super P3,? extends R> f3)
Convert a general
Osgl.Func3 function into a Osgl.F3 typed
function |
static <P1,P2,P3> Osgl.F3<P1,P2,P3,Boolean> |
Osgl.F.negate(Osgl.Func3<? super P1,? super P2,? super P3,Boolean> predicate)
Returns a negate function of the specified predicate that applied to 3 parameters and returns boolean value
|
Osgl.F3<P1,P2,P3,R> |
Osgl.F3.orElse(Osgl.Func3<? super P1,? super P2,? super P3,? extends R> fallback)
Returns a composed function that when applied, try to apply this function first, in case
a
NotAppliedException is captured apply to the fallback function specified. |
| Modifier and Type | Class and Description |
|---|---|
class |
ArrayReverse<T>
Return an new array contains elements specified by from and to in an array in reverse order
|
class |
ArrayReverseInplace<T>
Created with IntelliJ IDEA.
|
Copyright © 2017. All Rights Reserved.