| Package | Description |
|---|---|
| org.osgl | |
| org.osgl.storage | |
| org.osgl.storage.impl | |
| org.osgl.util | |
| org.osgl.util.algo | |
| org.osgl.util.converter |
| Modifier and Type | Interface and Description |
|---|---|
static interface |
Lang.Bijection<X,Y>
|
static interface |
Lang.Func1<P1,R>
Alias of
Lang.Function |
static interface |
Lang.MultiplicableFunction<P1,R>
A
Lang.Function function that support Lang.MultiplicableFunction.times(int) operation |
| Modifier and Type | Class and Description |
|---|---|
static class |
Lang.F1<P1,R>
Base implementation of
Lang.Function function. |
static class |
Lang.Operator<T> |
static class |
Lang.Predicate<T>
Predicate is a predefined Function<Boolean, T> typed function with a set of utilities dealing with boolean operations. |
static class |
Lang.Processor<T>
Define a processor function which applied to one parameter and return the parameter instance after processing on the parameter
|
static class |
Lang.Transformer<FROM,TO>
A Transformer is literally a kind of
Lang.F1 function |
static class |
Lang.TypeConverter<FROM,TO>
A
TypeConverter is a Lang.Transformer that convert a type to another |
static class |
Lang.V1<P1> |
static class |
Lang.Visitor<T>
Define a visitor (known as Consumer in java 8) function which applied to one parameter and without return type
|
| Modifier and Type | Field and Description |
|---|---|
static Lang.Function<Class,?> |
OsglConfig.INSTANCE_FACTORY |
| Modifier and Type | Method and Description |
|---|---|
static Lang.Function<Class,?> |
OsglConfig.globalInstanceFactory() |
| Modifier and Type | Method and Description |
|---|---|
static <F,T> Lang.Transformer<F,T> |
Lang.Transformer.adapt(Lang.Function<F,T> func) |
boolean |
Lang.Var.allMatch(Lang.Function<? super T,Boolean> predicate) |
Lang.Predicate<T> |
Lang.Predicate.and(Lang.Function<? super T,Boolean>... predicates)
Return an
Predicate predicate from a list of Function<Boolean, T> with AND operation. |
static <T> Lang.Predicate<T> |
Lang.F.and(Lang.Function<? super T,Boolean>... predicates)
Returns a composed
Lang.Predicate function that for any given parameter, the test result is true only when all of the specified predicates returns true when applied to the parameter |
Lang.F1<P1,R> |
Lang.F1.andThen(Lang.Function<? super P1,? extends R>... afters)
Returns a composed function that applied, in sequence, this function and all functions specified one by one.
|
<T> Lang.Producer<T> |
Lang.F0.andThen(Lang.Function<? super R,? extends T> after)
Returns a composed function that applies this function to it’s input and then applies the
after function to the result. |
<T> Lang.F1<P1,T> |
Lang.F1.andThen(Lang.Function<? super R,? extends T> after)
Returns a composed function that applies this function to it’s input and then applies the
after function to the result. |
<T> Lang.F2<P1,P2,T> |
Lang.F2.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.
|
<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.
|
<T> Lang.F4<P1,P2,P3,P4,T> |
Lang.F4.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.
|
<T> Lang.F5<P1,P2,P3,P4,P5,T> |
Lang.F5.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.
|
static <T> Lang.Predicate<T> |
Lang.F.any(Lang.Function<? super T,Boolean>... predicates)
Alias of
#or(Function[]) |
boolean |
Lang.Var.anyMatch(Lang.Function<? super T,Boolean> predicate) |
static <T> Lang.F1<T,Void> |
Lang.F.breakIf(Lang.Function<? super T,Boolean> predicate)
Return a one variable function that throw out a
Lang.Break when a predicate return true on an element been tested. |
static <P,T> Lang.F1<T,Void> |
Lang.F.breakIf(Lang.Function<? super T,Boolean> predicate,
P payload)
Return a one variable function that throw out a
Lang.Break with payload specified when a predicate return true on an element been tested |
static <T> T |
Lang.cloneOf(T source,
Lang.Function<Class,?> instanceFactory)
Returns clone of a given
source object. |
static <T,U extends Comparable<? super U>> |
Lang.F.comparing(Lang.Function<? super T,? extends U> keyExtractor) |
static <T,U> Lang.Comparator<T> |
Lang.F.comparing(Lang.Function<? super T,? extends U> keyExtractor,
Comparator<? super U> keyComparator)
Construct a
Comparator with a function to extract the key of type U from given object of type T and a comparator to compare type U |
<X1> Lang.F1<X1,R> |
Lang.F1.compose(Lang.Function<? super X1,? extends P1> before)
Returns an
F1<X1, R>> function by composing the specified Function<X1, P1> function with this function applied last |
C.List<T> |
Lang.Var.dropWhile(Lang.Function<? super T,Boolean> predicate) |
<R> Lang.F1<T,Lang.Option<R>> |
Lang.Predicate.elseThen(Lang.Function<? super T,R> func) |
static <P1,R> Lang.F1<P1,R> |
Lang.f1(Lang.Function<? super P1,? extends R> f1)
Convert a general
Lang.Function function into a Lang.F1 typed function |
static List<Field> |
Lang.fieldsOf(Class<?> c,
Class<?> rootClass,
boolean includeRootClass,
Lang.Function<Field,Boolean> filter)
Returns all fields of a class and all super classes until root class.
|
static List<Field> |
Lang.fieldsOf(Class<?> c,
Class<?> rootClass,
Lang.Function<Field,Boolean> filter)
Returns all fields of a class and all super classes until root class.
|
static List<Field> |
Lang.fieldsOf(Class<?> c,
Lang.Function<Class<?>,Boolean> classFilter,
Lang.Function<Field,Boolean> fieldFilter)
Returns all fields of a class and all super classes until classFilter not applied.
|
static List<Field> |
Lang.fieldsOf(Class<?> c,
Lang.Function<Class<?>,Boolean> classFilter,
Lang.Function<Field,Boolean> fieldFilter)
Returns all fields of a class and all super classes until classFilter not applied.
|
static List<Field> |
Lang.fieldsOf(Class<?> c,
Lang.Function<Field,Boolean> filter)
Returns all fields of a class and all super classes.
|
Lang.Option<T> |
Lang.Option.filter(Lang.Function<? super T,Boolean> predicate)
If a value is present, and the value matches the given predicate, return an
Option describing the value, otherwise return Lang.NONE. |
Lang.F0<Lang.Option<T>> |
Lang.Option.f.filter(Lang.Function<? super T,Boolean> predicate)
Returns a function that when applied, run
Option#filter(Function) on this Option |
C.ListOrSet<T> |
Lang.Var.filter(Lang.Function<? super T,Boolean> predicate) |
Lang.Option<T> |
Lang.Var.findFirst(Lang.Function<? super T,Boolean> predicate) |
Lang.Option<T> |
Lang.Var.findLast(Lang.Function<? super T,Boolean> predicate) |
Lang.Option<T> |
Lang.Var.findOne(Lang.Function<? super T,Boolean> predicate) |
<R> C.List<R> |
Lang.Var.flatMap(Lang.Function<? super T,? extends Iterable<? extends R>> mapper) |
<B> Lang.Option<B> |
Lang.Option.flatMap(Lang.Function<? super T,Lang.Option<B>> mapper)
If a value is present, apply the provided
Option-bearing mapping function to it, return that result, otherwise return Lang.NONE. |
<B> Lang.F0<Lang.Option<B>> |
Lang.Option.f.flatMap(Lang.Function<? super T,Lang.Option<B>> mapper)
Returns a function that when applied, run
Option#flatMap(Function) on this Option |
static <T> Lang.Visitor<T> |
Lang.guardedVisitor(Lang.Function<? super T,Boolean> predicate,
Lang.Visitor<? super T> visitor)
Return a composed visitor function that only applies when the guard predicate test returns
true |
<R> Lang.F1<T,Lang.Option<R>> |
Lang.Predicate.ifThen(Lang.Function<? super T,R> func) |
static <K,T> Lang.IndexedVisitor<K,T> |
Lang.indexGuardedVisitor(Lang.Function<? super K,Boolean> guard,
Lang.Visitor<? super T> visitor) |
Lang._MappingStage |
Lang._MappingStage.instanceFactory(Lang.Function<Class,?> instanceFactory)
Specify a function used to create new instance during mapping process.
|
C.List.Cursor<T> |
Lang.Var.locate(Lang.Function<T,Boolean> predicate) |
C.List.Cursor<T> |
Lang.Var.locateFirst(Lang.Function<T,Boolean> predicate) |
C.List.Cursor<T> |
Lang.Var.locateLast(Lang.Function<T,Boolean> predicate) |
<B> Lang.Option<B> |
Lang.Option.map(Lang.Function<? super T,? extends B> mapper)
If a value is present, apply the provided mapping function to it, and if the result is non-null, return an
Option describing the result. |
<B> Lang.F0<Lang.Option<B>> |
Lang.Option.f.map(Lang.Function<? super T,? extends B> mapper)
Returns a function that when applied, run
Option#map(Function) on this Option |
<R> C.ListOrSet<R> |
Lang.Var.map(Lang.Function<? super T,? extends R> mapper) |
<R> Lang.F1<R,Lang.Var<T>> |
Lang.Var._f.mapper(Lang.Function<R,T> mapper) |
static <T> Lang.Predicate<T> |
Lang.F.negate(Lang.Function<? super T,Boolean> predicate)
Returns a negate function of the specified predicate function that applied to 1 params and returns boolean value
|
static <T> Lang.Predicate<T> |
Lang.Predicate.negate(Lang.Function<T,Boolean> predicate) |
static <T> Lang.Predicate<T> |
Lang.F.none(Lang.Function<? super T,Boolean>... predicates)
Negation of
#or(Function[]) |
boolean |
Lang.Var.noneMatch(Lang.Function<? super T,Boolean> predicate) |
Lang.Predicate<T> |
Lang.Predicate.or(Lang.Function<? super T,Boolean>... predicates)
Return an
Predicate predicate from a list of Function<Boolean, T> with OR operation. |
static <T> Lang.Predicate<T> |
Lang.F.or(Lang.Function<? super T,Boolean>... predicates)
Returns a composed
Lang.Predicate function that for any given parameter, the test result is true when any one of the specified predicates returns true on the parameter |
Lang.F1<P1,R> |
Lang.F1.orElse(Lang.Function<? super P1,? 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. |
static <T> Lang.Predicate<T> |
Lang.predicate(Lang.Function<? super T,Boolean> f)
Convert a
Function<T, Boolean> typed function to Predicate<T> function. |
Lang.Conf |
Lang.Conf.registerBoolTester(Lang.Function<Object,Boolean> tester)
Register a boolean tester.
|
static void |
OsglConfig.registerGlobalInstanceFactory(Lang.Function<Class,?> instanceFactory) |
C.List<T> |
Lang.Var.remove(Lang.Function<? super T,Boolean> predicate) |
C.List<T> |
Lang.Var.takeWhile(Lang.Function<? super T,Boolean> predicate) |
<U extends Comparable<? super U>> |
Lang.Comparator.thenComparing(Lang.Function<? super T,? extends U> keyExtractor)
See Java 8 doc
|
<U extends Comparable<? super U>> |
Lang.Comparator.thenComparing(Lang.Function<? super T,? extends U> keyExtractor,
Comparator<? super U> keyComparator)
See Java 8 doc
|
static <T> T |
Lang.times(Lang.Function<T,T> func,
T initVal,
int n) |
Lang.Var<T> |
Lang.Var.update(Lang.Function<T,T> changer) |
Lang.F1<T,Lang.Var<T>> |
Lang.Var._f.updater(Lang.Function<T,T> changer) |
static <T> Lang.Visitor<T> |
Lang.visitor(Lang.Function<? super T,?> f)
Convert a
Function<? super T, Void> function into a Lang.Visitor |
Lang._MappingStage |
Lang._MappingStage.withKeyTransformer(Lang.Function transformer) |
| Modifier and Type | Method and Description |
|---|---|
static <T> Lang.Predicate<T> |
Lang.F.and(Collection<Lang.Function<? super T,Boolean>> predicates)
Returns a composed
Lang.Predicate function that for any given parameter, the test result is true only when all of the specified predicates returns true when applied to the parameter |
static <T> Lang.Predicate<T> |
Lang.F.any(Collection<Lang.Function<? super T,Boolean>> predicates)
Alias of
Lang.F.or(Collection) |
static <T> Lang.Predicate<T> |
Lang.F.none(Collection<Lang.Function<? super T,Boolean>> predicates)
Negation of
Lang.F.or(Collection) |
static <T> Lang.Predicate<T> |
Lang.F.or(Collection<Lang.Function<? super T,Boolean>> predicates)
Returns a composed
Lang.Predicate function that for any given parameter, the test result is true only when any one of the specified predicates returns true when applied to the parameter |
| Modifier and Type | Method and Description |
|---|---|
void |
ISObject.consumeOnce(Lang.Function<InputStream,?> consumer)
Consume the inputstream of this storage object one time and then close the input stream
|
| Modifier and Type | Method and Description |
|---|---|
void |
SObject.consumeOnce(Lang.Function<InputStream,?> consumer) |
| Modifier and Type | Class and Description |
|---|---|
class |
BigDecimalValueObjectCodec |
class |
BigIntegerValueObjectCodec |
class |
FastJsonObjectCodec |
class |
KeywordValueObjectCodec |
class |
KVCodec |
class |
SimpleObjectFactory |
class |
StringValueResolver<T>
A String value resolver resolves a
string value into a certain type of object instance. |
| Modifier and Type | Field and Description |
|---|---|
static Lang.Function<File,InputStream> |
IO.F.FILE_TO_IS |
static Lang.Function |
IO.F.PRINT |
static Lang.Function |
IO.F.PRINTLN |
| Modifier and Type | Method and Description |
|---|---|
static Lang.Function |
DataMapper.keyTransformer(Keyword.Style targetStyle) |
static <T> Lang.Function<?,T> |
IO.F.print() |
static <T> Lang.Function<T,?> |
IO.F.print(String prefix,
String suffix) |
static <T> Lang.Function<T,?> |
IO.F.print(String prefix,
String suffix,
PrintStream ps) |
static <T> Lang.Function<?,T> |
IO.F.println() |
| Modifier and Type | Method and Description |
|---|---|
static <T extends Number,X> |
N.F.adder(Lang.Function<X,T> func) |
static <T extends Number,X> |
N.F.adder(Lang.Function<X,T> func,
Class<T> clz) |
boolean |
SetBase.allMatch(Lang.Function<? super T,Boolean> predicate) |
boolean |
TraversableBase.allMatch(Lang.Function<? super T,Boolean> predicate) |
boolean |
ListBase.allMatch(Lang.Function<? super T,Boolean> predicate) |
boolean |
C.Traversable.allMatch(Lang.Function<? super T,Boolean> predicate)
Check if all elements match the predicate specified
|
boolean |
SetBase.anyMatch(Lang.Function<? super T,Boolean> predicate) |
boolean |
TraversableBase.anyMatch(Lang.Function<? super T,Boolean> predicate) |
boolean |
ListBase.anyMatch(Lang.Function<? super T,Boolean> predicate) |
boolean |
C.Traversable.anyMatch(Lang.Function<? super T,Boolean> predicate)
Check if any elements matches the predicate specified
|
abstract T |
StrBase.dropWhile(Lang.Function<? super Character,Boolean> predicate)
Return a str that without the first N characters in the string.
|
FastStr |
FastStr.dropWhile(Lang.Function<? super Character,Boolean> predicate) |
Str |
Str.dropWhile(Lang.Function<? super Character,Boolean> predicate) |
C.Sequence<T> |
SequenceBase.dropWhile(Lang.Function<? super T,Boolean> predicate) |
C.List<T> |
ListBase.dropWhile(Lang.Function<? super T,Boolean> predicate) |
C.Sequence<T> |
C.Sequence.dropWhile(Lang.Function<? super T,Boolean> predicate)
Returns a
Sequence consisting of the elements from this sequence with leading elements dropped until the predicate returns true |
C.ReversibleSequence<T> |
C.ReversibleSequence.dropWhile(Lang.Function<? super T,Boolean> predicate) |
C.List<T> |
C.List.dropWhile(Lang.Function<? super T,Boolean> predicate)
Returns a
Sequence consisting of the elements from this sequence with leading elements dropped until the predicate returns true |
Set<Map.Entry<String,Object>> |
AdaptiveMap.entrySet(Lang.Function<BeanInfo,Boolean> fieldFilter)
Returns a set of entries stored in the active record.
|
static <T> C.Sequence<T> |
C.filter(Iterable<? extends T> iterable,
Lang.Function<? super T,Boolean> predicate) |
static <T> Iterator<T> |
Iterators.filter(Iterator<? extends T> itr,
Lang.Function<? super T,Boolean> predicate) |
T |
StrBase.filter(Lang.Function<? super Character,Boolean> predicate) |
C.Set<T> |
SetBase.filter(Lang.Function<? super T,Boolean> predicate) |
C.Traversable<T> |
TraversableBase.filter(Lang.Function<? super T,Boolean> predicate) |
C.Sequence<T> |
SequenceBase.filter(Lang.Function<? super T,Boolean> predicate) |
C.List<T> |
ListBase.filter(Lang.Function<? super T,Boolean> predicate) |
C.Traversable<T> |
C.Traversable.filter(Lang.Function<? super T,Boolean> predicate)
Returns an new traversable that contains all elements in the current traversable except that does not pass the test of the filter function specified.
|
C.Sequence<T> |
C.Sequence.filter(Lang.Function<? super T,Boolean> predicate)
Returns an new traversable that contains all elements in the current traversable except that does not pass the test of the filter function specified.
|
C.ReversibleSequence<T> |
C.ReversibleSequence.filter(Lang.Function<? super T,Boolean> predicate) |
C.List<T> |
C.List.filter(Lang.Function<? super T,Boolean> predicate) |
C.Set<T> |
C.Set.filter(Lang.Function<? super T,Boolean> predicate) |
C.ListOrSet<T> |
C.ListOrSet.filter(Lang.Function<? super T,Boolean> predicate) |
C.Map<K,V> |
C.Map.filter(Lang.Function<K,Boolean> predicate) |
static <T> Iterator<T> |
Iterators.filterIndex(Iterator<? extends T> itr,
Lang.Function<Integer,Boolean> predicate) |
static <T> Iterator<T> |
Iterators.filterUntil(Iterator<? extends T> itr,
Lang.Function<? super T,Boolean> predicate) |
static <T> Iterator<T> |
Iterators.filterWhile(Iterator<? extends T> itr,
Lang.Function<? super T,Boolean> predicate) |
Lang.Option<T> |
SequenceBase.findFirst(Lang.Function<? super T,Boolean> predicate)
Delegate to
TraversableBase.findOne(org.osgl.Lang.Function) |
Lang.Option<T> |
ListBase.findFirst(Lang.Function<? super T,Boolean> predicate) |
Lang.Option<T> |
C.Sequence.findFirst(Lang.Function<? super T,Boolean> predicate)
Apply the predicate specified to the element of this sequence from head to tail.
|
Lang.Option<ELEMENT> |
LazyRange.findLast(Lang.Function<? super ELEMENT,Boolean> predicate) |
Lang.Option<ELEMENT> |
C.Range.findLast(Lang.Function<? super ELEMENT,Boolean> predicate) |
Lang.Option<T> |
ListBase.findLast(Lang.Function<? super T,Boolean> predicate) |
Lang.Option<T> |
C.ReversibleSequence.findLast(Lang.Function<? super T,Boolean> predicate)
Apply the predicate specified to the element of this sequence from tail to head.
|
Lang.Option<T> |
SetBase.findOne(Lang.Function<? super T,Boolean> predicate) |
Lang.Option<T> |
TraversableBase.findOne(Lang.Function<? super T,Boolean> predicate)
Iterate the traversal to check if any element applied to the predicate the iteration process stop when the element is found and return an option describing the element.
|
Lang.Option<T> |
ListBase.findOne(Lang.Function<? super T,Boolean> predicate) |
Lang.Option<T> |
C.Traversable.findOne(Lang.Function<? super T,Boolean> predicate)
Returns an element that matches the predicate specified.
|
static <T,R> Iterator<R> |
Iterators.flatMap(Iterator<? extends T> itr,
Lang.Function<? super T,? extends Iterable<? extends R>> mapper) |
<R> C.List<R> |
StrBase.flatMap(Lang.Function<? super Character,? extends Iterable<? extends R>> mapper) |
<R> C.Traversable<R> |
SetBase.flatMap(Lang.Function<? super T,? extends Iterable<? extends R>> mapper) |
<R> C.Traversable<R> |
TraversableBase.flatMap(Lang.Function<? super T,? extends Iterable<? extends R>> mapper) |
<R> C.Sequence<R> |
SequenceBase.flatMap(Lang.Function<? super T,? extends Iterable<? extends R>> mapper) |
<R> C.List<R> |
ListBase.flatMap(Lang.Function<? super T,? extends Iterable<? extends R>> mapper) |
<R> C.Traversable<R> |
C.Traversable.flatMap(Lang.Function<? super T,? extends Iterable<? extends R>> mapper)
Returns a traversable consisting of the results of replacing each element of this stream with the contents of the iterable produced by applying the provided mapping function to each element.
|
<R> C.Sequence<R> |
C.Sequence.flatMap(Lang.Function<? super T,? extends Iterable<? extends R>> mapper)
Returns a traversable consisting of the results of replacing each element of this stream with the contents of the iterable produced by applying the provided mapping function to each element.
|
<R> C.ReversibleSequence<R> |
C.ReversibleSequence.flatMap(Lang.Function<? super T,? extends Iterable<? extends R>> mapper)
Returns a traversable consisting of the results of replacing each element of this stream with the contents of the iterable produced by applying the provided mapping function to each element.
|
<R> C.List<R> |
C.List.flatMap(Lang.Function<? super T,? extends Iterable<? extends R>> mapper)
Returns a traversable consisting of the results of replacing each element of this stream with the contents of the iterable produced by applying the provided mapping function to each element.
|
C.List.Cursor<T> |
ListBase.locate(Lang.Function<T,Boolean> predicate) |
C.List.Cursor<T> |
C.List.locate(Lang.Function<T,Boolean> predicate)
Locate any one element in the list that matches the predicate.
|
C.List.Cursor<T> |
ListBase.locateFirst(Lang.Function<T,Boolean> predicate) |
C.List.Cursor<T> |
C.List.locateFirst(Lang.Function<T,Boolean> predicate)
Find the first element in this list that matches the predicate.
|
C.List.Cursor<T> |
ListBase.locateLast(Lang.Function<T,Boolean> predicate) |
C.List.Cursor<T> |
C.List.locateLast(Lang.Function<T,Boolean> predicate)
Locate the first element in this list that matches the predicate.
|
static <T,R> C.ReversibleSequence<R> |
C.map(C.ReversibleSequence<? extends T> seq,
Lang.Function<? super T,? extends R> mapper) |
static <T,R> C.Sequence<R> |
C.map(Iterable<? extends T> seq,
Lang.Function<? super T,? extends R> mapper) |
static <T,R> Iterator<R> |
Iterators.map(Iterator<? extends T> itr,
Lang.Function<? super T,? extends R> mapper) |
<R> C.List<R> |
StrBase.map(Lang.Function<? super Character,? extends R> mapper) |
<R> C.Traversable<R> |
SetBase.map(Lang.Function<? super T,? extends R> mapper) |
<R> C.Traversable<R> |
TraversableBase.map(Lang.Function<? super T,? extends R> mapper) |
<R> C.Sequence<R> |
SequenceBase.map(Lang.Function<? super T,? extends R> mapper) |
<R> C.List<R> |
ListBase.map(Lang.Function<? super T,? extends R> mapper) |
<R> C.Traversable<R> |
C.Traversable.map(Lang.Function<? super T,? extends R> mapper)
Returns an new traversable with a mapper function specified.
|
<R> C.Sequence<R> |
C.Sequence.map(Lang.Function<? super T,? extends R> mapper)
Returns an new traversable with a mapper function specified.
|
<R> C.ReversibleSequence<R> |
C.ReversibleSequence.map(Lang.Function<? super T,? extends R> mapper) |
<R> C.List<R> |
C.List.map(Lang.Function<? super T,? extends R> mapper) |
<R> C.ListOrSet<R> |
C.ListOrSet.map(Lang.Function<? super T,? extends R> mapper) |
static <T,R> C._MapStage2 |
C.map(Lang.Function<? super T,? extends R> mapper) |
boolean |
SetBase.noneMatch(Lang.Function<? super T,Boolean> predicate) |
boolean |
TraversableBase.noneMatch(Lang.Function<? super T,Boolean> predicate) |
boolean |
ListBase.noneMatch(Lang.Function<? super T,Boolean> predicate) |
boolean |
C.Traversable.noneMatch(Lang.Function<? super T,Boolean> predicate)
Check if no elements matches the predicate specified.
|
abstract T |
StrBase.remove(Lang.Function<? super Character,Boolean> predicate)
Returns a str that with all characters in this str instance except those matches the test of predicate function specified
|
FastStr |
FastStr.remove(Lang.Function<? super Character,Boolean> predicate) |
Str |
Str.remove(Lang.Function<? super Character,Boolean> predicate) |
C.List<T> |
ListBase.remove(Lang.Function<? super T,Boolean> predicate) |
C.List<T> |
C.List.remove(Lang.Function<? super T,Boolean> predicate)
For mutable list, remove all element that matches the predicate specified from this List and return this list once done.
|
void |
PropertyHandler.setObjectFactory(Lang.Function<Class<?>,Object> factory) |
Lang.T2<C.List<T>,C.List<T>> |
ListBase.split(Lang.Function<? super T,Boolean> predicate) |
Lang.T2<C.List<T>,C.List<T>> |
C.List.split(Lang.Function<? super T,Boolean> predicate)
Split this list into two list based on the predicate specified.
|
abstract T |
StrBase.takeWhile(Lang.Function<? super Character,Boolean> predicate)
Return a str that contains the first N characters in this string, the characters in the new str must matches the test specified by the predicate function.
|
FastStr |
FastStr.takeWhile(Lang.Function<? super Character,Boolean> predicate) |
Str |
Str.takeWhile(Lang.Function<? super Character,Boolean> predicate) |
C.Sequence<T> |
SequenceBase.takeWhile(Lang.Function<? super T,Boolean> predicate) |
C.List<T> |
ListBase.takeWhile(Lang.Function<? super T,Boolean> predicate) |
C.Sequence<T> |
C.Sequence.takeWhile(Lang.Function<? super T,Boolean> predicate)
Returns an new
Sequence that takes the head of this Sequence until the predicate evaluate to false: |
C.ReversibleSequence<T> |
C.ReversibleSequence.takeWhile(Lang.Function<? super T,Boolean> predicate)
Returns an new
Sequence that takes the head of this Sequence until the predicate evaluate to false: |
C.List<T> |
C.List.takeWhile(Lang.Function<? super T,Boolean> predicate)
Returns an new
Sequence that takes the head of this Sequence until the predicate evaluate to false: |
<K,V> C.Map<K,V> |
ListBase.toMap(Lang.Function<? super T,? extends K> keyExtractor,
Lang.Function<? super T,? extends V> valExtractor) |
<K,V> C.Map<K,V> |
ListBase.toMap(Lang.Function<? super T,? extends K> keyExtractor,
Lang.Function<? super T,? extends V> valExtractor) |
<K,V> C.Map<K,V> |
C.List.toMap(Lang.Function<? super T,? extends K> keyExtractor,
Lang.Function<? super T,? extends V> valExtractor)
Create a
Map from this list using a key extract function and a value extract function |
<K,V> C.Map<K,V> |
C.List.toMap(Lang.Function<? super T,? extends K> keyExtractor,
Lang.Function<? super T,? extends V> valExtractor)
Create a
Map from this list using a key extract function and a value extract function |
<V> C.Map<T,V> |
ListBase.toMapByKey(Lang.Function<? super T,? extends V> valExtractor) |
<V> C.Map<T,V> |
C.List.toMapByKey(Lang.Function<? super T,? extends V> valExtractor)
Create a
Map from this list using a value extract function. |
<K> C.Map<K,T> |
ListBase.toMapByVal(Lang.Function<? super T,? extends K> keyExtractor) |
<K> C.Map<K,T> |
C.List.toMapByVal(Lang.Function<? super T,? extends K> keyExtractor)
Create a
Map from this list using a key extract function. |
<NK,NV> C.Map<NK,NV> |
C.Map.transform(Lang.Function<K,NK> keyTransformer,
Lang.Function<V,NV> valueTransformer) |
<NK,NV> C.Map<NK,NV> |
C.Map.transform(Lang.Function<K,NK> keyTransformer,
Lang.Function<V,NV> valueTransformer) |
<NK> C.Map<NK,V> |
C.Map.transformKeys(Lang.Function<K,NK> keyTransformer) |
<NV> C.Map<K,NV> |
C.Map.transformValues(Lang.Function<V,NV> valueTransformer) |
C.Map<K,V> |
C.Map.valueFilter(Lang.Function<V,Boolean> predicate) |
<R> C.Sequence<R> |
C._MapStage.with(Lang.Function<? super T,? extends R> mapper) |
String |
S._Replace.with(Lang.Function<String,String> replacement) |
String |
S._WrapReplace.with(Lang.Function<String,String> replacement) |
static <T> StringValueResolver<T> |
StringValueResolver.wrap(Lang.Function<String,T> func,
Class<T> targetType) |
| Constructor and Description |
|---|
DataMapper(Object source,
Object target,
ParameterizedType targetGenericType,
DataMapper.MappingRule rule,
DataMapper.Semantic semantic,
String filterSpec,
boolean ignoreError,
boolean ignoreGlobalFilter,
Lang.Function keyTransformer,
Map<Class,Object> conversionHints,
Lang.Function<Class,?> instanceFactory,
TypeConverterRegistry typeConverterRegistry,
Class<?> rootClass,
Map<String,String> specialMapping) |
DataMapper(Object source,
Object target,
ParameterizedType targetGenericType,
DataMapper.MappingRule rule,
DataMapper.Semantic semantic,
String filterSpec,
boolean ignoreError,
boolean ignoreGlobalFilter,
Lang.Function keyTransformer,
Map<Class,Object> conversionHints,
Lang.Function<Class,?> instanceFactory,
TypeConverterRegistry typeConverterRegistry,
Class<?> rootClass,
Map<String,String> specialMapping) |
ListPropertyGetter(Lang.Function<Class<?>,Object> objectFactory,
Lang.Func2<String,Class<?>,?> stringValueResolver,
Class<?> itemType) |
ListPropertyGetter(Lang.Function<Class<?>,Object> objectFactory,
Lang.Func2<String,Class<?>,?> stringValueResolver,
PropertyGetter.NullValuePolicy nullValuePolicy,
Class<?> itemType) |
ListPropertySetter(Lang.Function<Class<?>,Object> objectFactory,
Lang.Func2<String,Class<?>,?> stringValueResolver,
Class<?> itemType) |
MapPropertyGetter(Lang.Function<Class<?>,Object> objectFactory,
Lang.Func2<String,Class<?>,?> stringValueResolver,
Class<?> keyType,
Class<?> valType) |
MapPropertyGetter(Lang.Function<Class<?>,Object> objectFactory,
Lang.Func2<String,Class<?>,?> stringValueResolver,
PropertyGetter.NullValuePolicy nullValuePolicy,
Class<?> keyType,
Class<?> valType) |
ReflectionPropertyGetter(Lang.Function<Class<?>,Object> objectFactory,
Lang.Func2<String,Class<?>,?> stringValueResolver,
Class entityClass,
Method m,
Field f,
ReflectionPropertyHandlerFactory factory) |
ReflectionPropertyGetter(Lang.Function<Class<?>,Object> objectFactory,
Lang.Func2<String,Class<?>,?> stringValueResolver,
PropertyGetter.NullValuePolicy nullValuePolicy,
Class entityClass,
Method m,
Field f,
ReflectionPropertyHandlerFactory factory) |
ReflectionPropertySetter(Lang.Function<Class<?>,Object> objectFactory,
Lang.Func2<String,Class<?>,?> stringValueResolver,
Class entityClass,
Method m,
Field f) |
| Modifier and Type | Class and Description |
|---|---|
class |
PreprocessedStringSearch
Encapsulate a preprocessed String search which contains 1.
|
| Modifier and Type | Class and Description |
|---|---|
class |
JsonArrayToXmlDocument |
class |
JsonObjectToXmlDocument |
class |
XmlDocumentToJsonArray |
class |
XmlDocumentToJsonObject |
Copyright © 2014–2019 OSGL (Open Source General Library). All rights reserved.