| Package | Description |
|---|---|
| org.osgl | |
| org.osgl.util.algo |
| Modifier and Type | Class and Description |
|---|---|
static class |
Lang.F3<P1,P2,P3,R>
Base implementation of
Lang.Func3 function. |
static class |
Lang.V3<P1,P2,P3> |
| Modifier and Type | Method and Description |
|---|---|
Lang.Func3<P1,P2,P3,R> |
Lang.F3.andThen(Lang.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> Lang.Func3<P1,P2,P3,T> |
Lang.F3.andThen(Lang.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 |
|---|---|
Lang.Func3<P1,P2,P3,R> |
Lang.F3.andThen(Lang.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> Lang.F3<T1,T2,T3,Void> |
Lang.F.breakIf(Lang.Func3<? super T1,? super T2,? super T3,Boolean> predicate)
Return a three variables function that throw out a
Lang.Break when a three variables predicate return true on an element been tested. |
static <P,T1,T2,T3> |
Lang.F.breakIf(Lang.Func3<? super T1,? super T2,? super T3,Boolean> predicate,
P payload)
Return a three variables function that throw out a
Lang.Break with payload specified when a three variables predicate return true on an element been tested |
<X1,X2,X3> Lang.F3<X1,X2,X3,R> |
Lang.F1.compose(Lang.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> |
Lang.f3(Lang.Func3<? super P1,? super P2,? super P3,? extends R> f3)
Convert a general
Lang.Func3 function into a Lang.F3 typed function |
static <P1,P2,P3> Lang.F3<P1,P2,P3,Boolean> |
Lang.F.negate(Lang.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
|
Lang.F3<P1,P2,P3,R> |
Lang.F3.orElse(Lang.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.
|
class |
StringSearch |
static class |
StringSearch.SimpleStringSearch
Implement a simple string search algorithm using JDK
String.indexOf algorithm |
| Modifier and Type | Method and Description |
|---|---|
static StringSearch |
StringSearch.wrap(Lang.Func3<char[],char[],Integer,Integer> searchLogic) |
Copyright © 2014–2019 OSGL (Open Source General Library). All rights reserved.