Package | Description |
---|---|
org.cactoos |
Cactoos.
|
org.cactoos.func |
Functions and procedures.
|
org.cactoos.io |
Input/Output.
|
org.cactoos.list |
Lists, collections, sets, iterables, iterators.
|
org.cactoos.text |
Text.
|
Modifier and Type | Method and Description |
---|---|
boolean |
FuncApplies.matchesSafely(Func<X,Y> func) |
Modifier and Type | Class and Description |
---|---|
class |
CallableAsFunc<X,Y>
Callable as Func.
|
class |
ConstFunc<X,Y>
Func that always returns the same result.
|
class |
FuncWithFallback<X,Y>
Func with a fallback plan.
|
class |
IoCheckedFunc<X,Y>
Func that doesn't throw checked
Exception , but throws
IOException instead. |
class |
ProcAsFunc<X,Y>
Proc as a Func.
|
class |
RepeatedFunc<X,Y>
Func that repeats its calculation a few times before
returning the last result.
|
class |
RetryFunc<X,Y>
Func that will try a few times before throwing an exception.
|
class |
RunnableAsFunc<X,Y>
Runnable as a Func.
|
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 |
UncheckedFunc<X,Y>
Func that doesn't throw checked
Exception . |
Constructor and Description |
---|
And(Func<X,Boolean> func,
X... src)
Ctor.
|
And(Iterable<X> src,
Func<X,Boolean> func)
Ctor.
|
FuncAsCallable(Func<?,T> fnc)
Ctor.
|
FuncAsMatcher(Func<T,Boolean> fnc)
Ctor.
|
FuncAsProc(Func<X,?> fnc)
Ctor.
|
FuncAsRunnable(Func<?,?> fnc)
Ctor.
|
FuncWithFallback(Func<X,Y> fnc,
Func<Throwable,Y> fbk)
Ctor.
|
FuncWithFallback(Func<X,Y> fnc,
Func<Throwable,Y> fbk)
Ctor.
|
FuncWithFallback(Func<X,Y> fnc,
Func<Throwable,Y> fbk,
Func<Y,Y> flw)
Ctor.
|
FuncWithFallback(Func<X,Y> fnc,
Func<Throwable,Y> fbk,
Func<Y,Y> flw)
Ctor.
|
FuncWithFallback(Func<X,Y> fnc,
Func<Throwable,Y> fbk,
Func<Y,Y> flw)
Ctor.
|
IoCheckedFunc(Func<X,Y> fnc)
Ctor.
|
RepeatedFunc(Func<X,Y> fnc,
int max)
Ctor.
|
RetryFunc(Func<X,Y> fnc)
Ctor.
|
RetryFunc(Func<X,Y> fnc,
Func<Integer,Boolean> ext)
Ctor.
|
RetryFunc(Func<X,Y> fnc,
Func<Integer,Boolean> ext)
Ctor.
|
RetryFunc(Func<X,Y> fnc,
int attempts)
Ctor.
|
RetryScalar(Scalar<T> slr,
Func<Integer,Boolean> ext)
Ctor.
|
StickyFunc(Func<X,Y> fnc)
Ctor.
|
SyncFunc(Func<X,Y> fnc)
Ctor.
|
Ternary(X input,
Func<X,Boolean> cnd,
Func<X,T> cons,
Func<X,T> alter)
Ctor.
|
Ternary(X input,
Func<X,Boolean> cnd,
Func<X,T> cons,
Func<X,T> alter)
Ctor.
|
Ternary(X input,
Func<X,Boolean> cnd,
Func<X,T> cons,
Func<X,T> alter)
Ctor.
|
UncheckedFunc(Func<X,Y> fnc)
Ctor.
|
Constructor and Description |
---|
InputWithFallback(Input input,
Func<IOException,Input> alt)
Ctor.
|
ResourceAsInput(String res,
Func<String,Input> fbk)
New resource input with current context
ClassLoader . |
ResourceAsInput(String res,
Func<String,Input> fbk,
ClassLoader ldr)
New resource input with specified
ClassLoader . |
UncheckedBytes(Bytes bts,
Func<IOException,byte[]> fbk)
Ctor.
|
Constructor and Description |
---|
FilteredIterable(Iterable<X> src,
Func<X,Boolean> fnc)
Ctor.
|
FilteredIterator(Iterator<X> src,
Func<X,Boolean> fnc)
Ctor.
|
ItemOfIterable(Iterable<T> src,
Func<Iterable<T>,T> fbk)
Ctor.
|
ItemOfIterable(Iterable<T> src,
int pos,
Func<Iterable<T>,T> fbk)
Ctor.
|
ItemOfIterator(Iterator<T> src,
Func<Iterable<T>,T> fbk)
Ctor.
|
ItemOfIterator(Iterator<T> src,
int pos,
Func<Iterable<T>,T> fbk)
Ctor.
|
MappedIterable(Iterable<X> src,
Func<X,Y> fnc)
Ctor.
|
MappedIterator(Iterator<X> src,
Func<X,Y> fnc)
Ctor.
|
Constructor and Description |
---|
UncheckedText(Text txt,
Func<IOException,String> fbk)
Ctor.
|
Copyright © 2017 Cactoos. All rights reserved.