| Package | Description |
|---|---|
| org.osgl | |
| org.osgl.util | |
| org.osgl.util.algo |
| Modifier and Type | Class and Description |
|---|---|
static class |
Lang.F4<P1,P2,P3,P4,R>
Base implementation of
Lang.Func4 function. |
static class |
Lang.V4<P1,P2,P3,P4> |
| Modifier and Type | Method and Description |
|---|---|
Lang.F4<P1,P2,P3,P4,R> |
Lang.F4.andThen(Lang.Func4<? super P1,? super P2,? super P3,? super P4,? 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> |
Lang.F.breakIf(Lang.Func4<? super T1,? super T2,? super T3,? super T4,Boolean> predicate)
Return a four variables function that throw out a
Lang.Break when the predicate returns true on an element been tested. |
static <P,T1,T2,T3,T4> |
Lang.F.breakIf(Lang.Func4<? super T1,? super T2,? super T3,? super T4,Boolean> predicate,
P payload)
Return a four variables function that throw out a
Lang.Break with payload specified when a four variables predicate return true on an element been tested |
<X1,X2,X3,X4> |
Lang.F1.compose(Lang.Func4<? super X1,? super X2,? super X3,? super X4,? extends P1> before)
Returns an
F3<X1, X2, X3, X4, R>> function by composing the specified Func3<X1, X2, X3, X4, P1> function with this function applied last |
static <P1,P2,P3,P4,R> |
Lang.f4(Lang.Func4<? super P1,? super P2,? super P3,? super P4,? extends R> f4)
Convert a general
Lang.Func4 function into a Lang.F4 typed function |
static <P1,P2,P3,P4> |
Lang.F.negate(Lang.Func4<? super P1,? super P2,? super P3,? super P4,Boolean> predicate)
Returns a negate function of the specified predicate that applied to 3 parameters and returns boolean value
|
Lang.F4<P1,P2,P3,P4,R> |
Lang.F4.orElse(Lang.Func4<? super P1,? super P2,? super P3,? super P4,? 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 |
|---|---|
S._Replace2 |
S._Replace2.replacer(Lang.Func4<char[],char[],char[],Integer,char[]> replacer) |
S._Replace |
S._Replace.replacer(Lang.Func4<char[],char[],char[],Integer,char[]> replacer) |
| Modifier and Type | Interface and Description |
|---|---|
interface |
ArraySort<T>
Created with IntelliJ IDEA.
|
| Modifier and Type | Class and Description |
|---|---|
class |
ArrayInsertionSort<T>
Array insertion sort algorithm.
|
class |
ArrayInsertionSortInplace<T>
Created with IntelliJ IDEA.
|
class |
ArrayMergeSort<T>
Created with IntelliJ IDEA.
|
class |
ArrayMergeSortInplace<T>
Created with IntelliJ IDEA.
|
class |
ArraySimpleInsertionSort<T>
Array insertion sort algorithm.
|
class |
ArraySimpleInsertionSortInplace<T>
Array insertion sort algorithm.
|
class |
ArraySortBase<T>
Created with IntelliJ IDEA.
|
class |
ArraySortInplaceBase<T>
Created with IntelliJ IDEA.
|
class |
StringReplace
Base class for implementing algorithm that perform replacement on
char[] |
static class |
StringReplace.SimpleStringReplace |
| Modifier and Type | Method and Description |
|---|---|
static StringReplace |
StringReplace.wrap(Lang.Func4<char[],char[],char[],Integer,char[]> replaceLogic) |
Copyright © 2014–2019 OSGL (Open Source General Library). All rights reserved.