Package | Description |
---|---|
org.cactoos |
Cactoos.
|
org.cactoos.bytes |
Bytes.
|
org.cactoos.func |
Functions.
|
org.cactoos.io |
Input/Output.
|
org.cactoos.iterable |
Iterables.
|
org.cactoos.iterator |
Iterators.
|
org.cactoos.map |
Maps.
|
org.cactoos.proc |
Procedures.
|
org.cactoos.scalar |
Scalars.
|
org.cactoos.text |
Text.
|
Modifier and Type | Interface and Description |
---|---|
interface |
Fallback<X>
Fallback from a
Throwable . |
Modifier and Type | Class and Description |
---|---|
static class |
Fallback.From<T>
Fallback from exception.
|
static class |
Fallback.None<X>
No fallback.
|
Constructor and Description |
---|
From(Class<? extends Throwable> exp,
Func<Throwable,T> func)
Ctor.
|
From(Iterable<Class<? extends Throwable>> exps,
Func<Throwable,T> func)
Ctor.
|
Constructor and Description |
---|
CheckedBytes(Bytes orig,
Func<? super Exception,? extends E> fnc)
Ctor.
|
Modifier and Type | Class and Description |
---|---|
class |
Async<X,Y>
Func that runs in the background.
|
class |
Chained<X,Y,Z>
Composed function.
|
class |
CheckedFunc<X,Y,E extends Exception>
Func that throws exception of specified type.
|
class |
Flattened<X,Y>
|
class |
FuncEnvelope<X,Y>
Envelope for Func.
|
class |
FuncNoNulls<X,Y>
Func check for no nulls.
|
class |
FuncOf<X,Y>
Represents many possible inputs as
Func . |
class |
FuncWithFallback<X,Y>
Func with fallbacks that enable it to recover from errors.
|
class |
IoCheckedFunc<X,Y>
Func that doesn't throw checked
Exception , but throws
IOException instead. |
class |
Repeated<X,Y>
Func that repeats its calculation a few times before
returning the last result.
|
class |
Retry<X,Y>
Func that will try a few times before throwing an exception.
|
class |
SolidFunc<X,Y>
Func that is thread-safe and sticky.
|
class |
StickyFunc<X,Y>
Func that caches previously calculated values and doesn't
recalculate again.
|
class |
SyncFunc<X,Y>
Func that is thread-safe.
|
class |
Timed<X,Y>
Function that gets interrupted after a certain time has passed.
|
class |
UncheckedFunc<X,Y>
Func that doesn't throw checked
Exception . |
Constructor and Description |
---|
Async(Func<X,Y> fnc)
Ctor.
|
Async(Func<X,Y> fnc,
ExecutorService exec)
Ctor.
|
Async(Func<X,Y> fnc,
ThreadFactory fct)
Ctor.
|
BiFuncOf(Func<X,Z> fnc)
Ctor.
|
Chained(Func<X,Y> bfr,
Func<Y,Z> atr)
Ctor.
|
Chained(Func<X,Y> bfr,
Func<Y,Z> atr)
Ctor.
|
Chained(Func<X,Y> bfr,
Iterable<Func<Y,Y>> list,
Func<Y,Z> atr)
Ctor.
|
Chained(Func<X,Y> bfr,
Iterable<Func<Y,Y>> list,
Func<Y,Z> atr)
Ctor.
|
CheckedBiFunc(BiFunc<X,Y,Z> original,
Func<Exception,E> fnc)
Ctor.
|
CheckedFunc(Func<X,Y> original,
Func<Exception,E> fnc)
Ctor.
|
CheckedFunc(Func<X,Y> original,
Func<Exception,E> fnc)
Ctor.
|
Flattened(Func<X,Scalar<Y>> sclr)
Ctor.
|
FuncEnvelope(Func<X,Y> func)
Ctor.
|
FuncNoNulls(Func<X,Y> fnc)
Ctor.
|
FuncOf(Func<? super X,? extends Y> fnc)
Ctor.
|
FuncWithFallback(Func<? super X,? extends Y> fnc,
Fallback<? extends Y>... fbks)
Ctor.
|
FuncWithFallback(Func<? super X,? extends Y> fnc,
Iterable<? extends Fallback<? extends Y>> fbks)
Ctor.
|
IoCheckedFunc(Func<X,Y> fnc)
Ctor.
|
Repeated(Func<? super X,? extends Y> fnc,
int max)
Ctor.
|
Retry(Func<X,Y> fnc)
Ctor.
|
Retry(Func<X,Y> fnc,
Func<Integer,Boolean> ext)
Ctor.
|
Retry(Func<X,Y> fnc,
Func<Integer,Boolean> ext)
Ctor.
|
Retry(Func<X,Y> fnc,
Func<Integer,Boolean> ext,
Duration wait)
Ctor.
|
Retry(Func<X,Y> fnc,
Func<Integer,Boolean> ext,
Duration wait)
Ctor.
|
Retry(Func<X,Y> fnc,
int attempts)
Ctor.
|
Retry(Func<X,Y> fnc,
int attempts,
Duration wait)
Ctor.
|
SolidFunc(Func<X,Y> fnc)
Ctor.
|
SolidFunc(Func<X,Y> fnc,
int max)
Ctor.
|
StickyFunc(Func<X,Y> fnc)
Ctor.
|
StickyFunc(Func<X,Y> fnc,
int max)
Ctor.
|
SyncFunc(Func<X,Y> fnc)
Ctor.
|
SyncFunc(Func<X,Y> fnc,
Object lck)
Ctor.
|
Timed(Func<X,Y> function,
long milliseconds)
Ctor.
|
Timed(long milliseconds,
Func<X,Future<Y>> async)
Ctor.
|
UncheckedFunc(Func<X,Y> fnc)
Ctor.
|
Constructor and Description |
---|
Chained(Func<X,Y> bfr,
Iterable<Func<Y,Y>> list,
Func<Y,Z> atr)
Ctor.
|
Constructor and Description |
---|
CheckedInput(Input orig,
Func<Exception,E> fnc)
Ctor.
|
CheckedOutput(Output orig,
Func<Exception,E> fnc)
Ctor.
|
InputWithFallback(Input input,
Func<IOException,Input> alt)
Ctor.
|
ResourceOf(CharSequence res,
Func<CharSequence,Input> fbk)
New resource input with current context
ClassLoader . |
ResourceOf(CharSequence res,
Func<CharSequence,Input> fbk,
Class<?> cls)
New resource input with
ClassLoader from the specified Class . |
ResourceOf(CharSequence res,
Func<CharSequence,Input> fbk,
ClassLoader ldr)
New resource input with specified
ClassLoader . |
ResourceOf(Text res,
Func<Text,Input> fbk)
New resource input with current context
ClassLoader . |
ResourceOf(Text res,
Func<Text,Input> fbk,
ClassLoader ldr)
New resource input with specified
ClassLoader . |
Constructor and Description |
---|
Filtered(Func<? super X,Boolean> fnc,
Iterable<? extends X> src)
Ctor.
|
Filtered(Func<? super X,Boolean> fnc,
X... src)
Ctor.
|
Filtered(Iterable<? extends X> src,
Func<? super X,Scalar<Boolean>> fnc)
Ctor.
|
Mapped(Func<? super X,? extends Y> fnc,
Iterable<? extends X> src)
Ctor.
|
Mapped(Func<? super X,? extends Y> fnc,
X... src)
Ctor.
|
Paged(Iterable<? extends X> first,
Func<? super Iterable<? extends X>,? extends Iterable<? extends X>> next)
Ctor.
|
RangeOf(T min,
T max,
Func<? super T,? extends T> incrementor)
Ctor.
|
Constructor and Description |
---|
Filtered(Func<? super X,Boolean> fnc,
Iterator<? extends X> src)
Ctor.
|
Filtered(Iterator<? extends X> src,
Func<? super X,Scalar<Boolean>> fnc)
Ctor.
|
Mapped(Func<? super X,? extends Y> func,
Iterator<? extends X> iterator)
Ctor.
|
Paged(Iterator<? extends X> first,
Func<? super Iterator<? extends X>,? extends Iterator<? extends X>> next)
Ctor.
|
RangeOf(T min,
T max,
Func<? super T,? extends T> incrementor)
Ctor.
|
Constructor and Description |
---|
MapOf(Func<? super Z,? extends X> key,
Func<? super Z,? extends Y> value,
Iterable<? extends Z> list)
Ctor.
|
MapOf(Func<? super Z,? extends X> key,
Func<? super Z,? extends Y> value,
Iterable<? extends Z> list)
Ctor.
|
MapOf(Func<? super Z,? extends X> key,
Func<? super Z,? extends Y> value,
Map<? extends X,? extends Y> src,
Iterable<Z> list)
Ctor.
|
MapOf(Func<? super Z,? extends X> key,
Func<? super Z,? extends Y> value,
Map<? extends X,? extends Y> src,
Iterable<Z> list)
Ctor.
|
MapOf(Func<? super Z,Map.Entry<? extends X,? extends Y>> entry,
Iterable<? extends Z> list)
Ctor.
|
MapOf(Func<? super Z,Map.Entry<? extends X,? extends Y>> entry,
Map<? extends X,? extends Y> src,
Iterable<? extends Z> list)
Ctor.
|
Synced(Func<? super Z,? extends Map.Entry<? extends X,? extends Y>> entry,
Map<? extends X,? extends Y> map,
Iterable<? extends Z> list)
Ctor.
|
Synced(Func<? super Z,? extends X> key,
Func<? super Z,? extends Y> value,
Map<? extends X,? extends Y> map,
Iterable<? extends Z> list)
Ctor.
|
Synced(Func<? super Z,? extends X> key,
Func<? super Z,? extends Y> value,
Map<? extends X,? extends Y> map,
Iterable<? extends Z> list)
Ctor.
|
Synced(Func<? super Z,Map.Entry<? extends X,? extends Y>> entry,
Z... list)
Ctor.
|
Synced(Func<Z,Map.Entry<? extends X,? extends Y>> entry,
Iterable<Z> list)
Ctor.
|
Synced(Iterable<? extends Z> list,
Func<? super Z,? extends X> key,
Func<? super Z,? extends Y> value)
Ctor.
|
Synced(Iterable<? extends Z> list,
Func<? super Z,? extends X> key,
Func<? super Z,? extends Y> value)
Ctor.
|
Constructor and Description |
---|
BiProcOf(Func<? super X,?> func)
Ctor.
|
CheckedBiProc(BiProc<X,Y> original,
Func<Exception,E> fnc)
Ctor.
|
CheckedProc(Proc<X> original,
Func<Exception,E> fnc)
Ctor.
|
ProcOf(Func<? super X,?> fnc)
Ctor.
|
Constructor and Description |
---|
And(Func<? super X,Boolean> func,
Iterable<? extends X> src)
Ctor.
|
And(Func<? super X,Boolean> func,
X... src)
Ctor.
|
And(X subject,
Func<? super X,Boolean>... conditions)
Ctor.
|
AndInThreads(ExecutorService svc,
Func<? super X,Boolean> func,
Iterable<? extends X> src)
Ctor.
|
AndInThreads(ExecutorService svc,
Func<? super X,Boolean> func,
X... src)
Ctor.
|
AndInThreads(Func<? super X,Boolean> func,
Iterable<? extends X> src)
Ctor.
|
AndInThreads(Func<? super X,Boolean> func,
X... src)
Ctor.
|
AndWithIndex(Func<Integer,Boolean>... src)
Ctor.
|
Checked(Scalar<? extends T> scalar,
Func<? super Exception,? extends E> fnc)
Ctor.
|
FirstOf(Func<? super T,Boolean> cond,
Iterable<? extends T> src,
Scalar<? extends T> fbck)
Constructor.
|
ItemAt(int position,
Func<? super Iterable<? extends T>,? extends T> fallback,
Iterable<? extends T> iterable)
Ctor.
|
Mapped(Func<? super T,? extends U> func,
Scalar<? extends T> scalar)
Ctor.
|
Or(Func<? super X,Boolean> func,
Iterable<? extends X> src)
Ctor.
|
Or(Func<? super X,Boolean> func,
X... src)
Ctor.
|
Or(X subject,
Func<? super X,Boolean>... conditions)
Ctor.
|
Retry(Scalar<? extends T> scalar,
Func<Integer,Boolean> exit)
Ctor.
|
Retry(Scalar<? extends T> scalar,
Func<Integer,Boolean> exit,
Duration wait)
Ctor.
|
ScalarOf(Func<? super X,? extends T> fnc,
X ipt)
Ctor.
|
Ternary(Scalar<? extends X> input,
Func<? super X,Boolean> cnd,
Func<? super X,? extends T> cons,
Func<? super X,? extends T> alter)
Ctor.
|
Ternary(Scalar<? extends X> input,
Func<? super X,Boolean> cnd,
Func<? super X,? extends T> cons,
Func<? super X,? extends T> alter)
Ctor.
|
Ternary(Scalar<? extends X> input,
Func<? super X,Boolean> cnd,
Func<? super X,? extends T> cons,
Func<? super X,? extends T> alter)
Ctor.
|
Ternary(X input,
Func<? super X,Boolean> cnd,
Func<? super X,? extends T> cons,
Func<? super X,? extends T> alter)
Ctor.
|
Ternary(X input,
Func<? super X,Boolean> cnd,
Func<? super X,? extends T> cons,
Func<? super X,? extends T> alter)
Ctor.
|
Ternary(X input,
Func<? super X,Boolean> cnd,
Func<? super X,? extends T> cons,
Func<? super X,? extends T> alter)
Ctor.
|
Constructor and Description |
---|
And(X subject,
Iterable<? extends Func<? super X,Boolean>> conditions)
Ctor.
|
AndWithIndex(Iterable<? extends Func<Integer,Boolean>> src)
Ctor.
|
Constructor and Description |
---|
IoCheckedText(Text txt,
Func<Exception,String> fbk)
Ctor.
|
Mapped(Func<? super String,? extends CharSequence> fnc,
Text txt)
Ctor.
|
Replaced(Text text,
Scalar<Pattern> regex,
Func<? super Matcher,? extends CharSequence> func)
Ctor.
|
Strict(Func<? super String,Boolean> predicate,
Text origin)
Ctor.
|
Sub(Text text,
Func<? super String,Integer> strt)
Ctor.
|
Sub(Text text,
Func<? super String,Integer> start,
Func<? super String,Integer> end)
Ctor.
|
Sub(Text text,
Func<? super String,Integer> start,
Func<? super String,Integer> end)
Ctor.
|
Sub(Text text,
int strt,
Func<? super String,Integer> finish)
Ctor.
|
Sub(Text text,
Scalar<Integer> strt,
Func<? super String,Integer> finish)
Ctor.
|
UncheckedText(Text txt,
Func<Exception,String> fbk)
Ctor.
|
Copyright © 2017–2022 Cactoos. All rights reserved.