| Package | Description |
|---|---|
| org.osgl | |
| org.osgl.util.algo |
| Modifier and Type | Class and Description |
|---|---|
static class |
Lang.F5<P1,P2,P3,P4,P5,R>
Base implementation of
Lang.Func5 function. |
static class |
Lang.V5<P1,P2,P3,P4,P5> |
| Modifier and Type | Method and Description |
|---|---|
Lang.F5<P1,P2,P3,P4,P5,R> |
Lang.F5.andThen(Lang.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.
|
static <T1,T2,T3,T4,T5> |
Lang.F.breakIf(Lang.Func5<? super T1,? super T2,? super T3,? super T4,? super T5,Boolean> predicate)
Return a five variables function that throw out a
Lang.Break when the predicate returns true on an element been tested. |
static <P,T1,T2,T3,T4,T5> |
Lang.F.breakIf(Lang.Func5<? super T1,? super T2,? super T3,? super T4,? super T5,Boolean> predicate,
P payload)
Return a five variables function that throw out a
Lang.Break with payload specified when a five variables predicate return true on an element been tested |
<X1,X2,X3,X4,X5> |
Lang.F1.compose(Lang.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> |
Lang.f5(Lang.Func5<? super P1,? super P2,? super P3,? super P4,? super P5,? extends R> f5)
Convert a general
Lang.Func5 function into a Lang.F5 typed function |
static <P1,P2,P3,P4,P5> |
Lang.F.negate(Lang.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
|
Lang.F5<P1,P2,P3,P4,P5,R> |
Lang.F5.orElse(Lang.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 | Interface and Description |
|---|---|
interface |
ArraySearch<T>
Created with IntelliJ IDEA.
|
| Modifier and Type | Class and Description |
|---|---|
class |
ArrayBinarySearch<T>
Implement the binary search on array which is assumed to be sorted already
|
Copyright © 2014–2019 OSGL (Open Source General Library). All rights reserved.