| Package | Description |
|---|---|
| org.osgl |
| Modifier and Type | Class and Description |
|---|---|
static class |
Osgl.V5<P1,P2,P3,P4,P5> |
| Modifier and Type | Field and Description |
|---|---|
static Osgl.F5 |
Osgl.F5
A dumb
Osgl.Func5 implementation that does nothing and return null |
| Modifier and Type | Method and Description |
|---|---|
Osgl.F5<P1,P2,P3,P4,P5,R> |
Osgl.F5.andThen(Osgl.Func5<? super P1,? super P2,? super P3,? super P4,? super P5,? extends R>... fs)
Returns a composed function that applied, in sequence, this function and
all functions specified one by one.
|
<T> Osgl.F5<P1,P2,P3,P4,P5,T> |
Osgl.F5.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.
|
static <T1,T2,T3,T4,T5> |
Osgl.F.breakIf(Osgl.Func5<? super T1,? super T2,? super T3,? super T4,? super T5,Boolean> predicate)
Return a five variables function that throw out a
Osgl.Break when the predicate returns
true on an element been tested. |
static <P,T1,T2,T3,T4,T5> |
Osgl.F.breakIf(Osgl.Func5<? super T1,? super T2,? super T3,? super T4,? super T5,Boolean> predicate,
P payload)
Return a five variables function that throw out a
Osgl.Break with payload specified when
a five variables predicate return true on an element been tested |
<X1,X2,X3,X4,X5> |
Osgl.F1.compose(Osgl.Func5<? super X1,? super X2,? super X3,? super X4,? super X5,? extends P1> before)
Returns an
F3<X1, X2, X3, X4, X5, R>> function by composing the specified
Func3<X1, X2, X3, X4, X5, P1> function with this function applied last |
static <P1,P2,P3,P4,P5,R> |
Osgl.f5()
The type-safe version of
Osgl.F5 |
static <P1,P2,P3,P4,P5,R> |
Osgl.f5(Osgl.Func5<? super P1,? super P2,? super P3,? super P4,? super P5,? extends R> f5)
Convert a general
Osgl.Func5 function into a Osgl.F5 typed
function |
Osgl.F5<P1,P2,P3,P4,P5,Osgl.Option<R>> |
Osgl.F5.lift()
Turns this partial function into a plain function returning an Option result.
|
static <P1,P2,P3,P4,P5> |
Osgl.F.negate(Osgl.Func5<? super P1,? super P2,? super P3,? super P4,? super P5,Boolean> predicate)
Returns a negate function of the specified predicate that applied to 3 parameters and returns boolean value
|
Osgl.F5<P1,P2,P3,P4,P5,R> |
Osgl.F5.orElse(Osgl.Func5<? super P1,? super P2,? super P3,? super P4,? super P5,? 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 | Method and Description |
|---|---|
R |
Osgl.F5.applyOrElse(P1 p1,
P2 p2,
P3 p3,
P4 p4,
P5 p5,
Osgl.F5<? super P1,? super P2,? super P3,? super P4,? super P5,? extends R> fallback)
Applies this partial function to the given argument when it is contained in the function domain.
|
Copyright © 2017. All Rights Reserved.