Package | Description |
---|---|
org.cactoos |
Cactoos.
|
org.cactoos.collection |
Collections, tests.
|
org.cactoos.func |
Functions and procedures.
|
org.cactoos.io |
Input/Output.
|
org.cactoos.iterable |
Iterables.
|
org.cactoos.iterator |
Iterators.
|
org.cactoos.list |
Lists, tests.
|
org.cactoos.map |
Maps.
|
org.cactoos.scalar |
Scalars.
|
org.cactoos.text |
Text.
|
Modifier and Type | Class and Description |
---|---|
static class |
Func.NoNulls<X,Y>
Func check for no nulls.
|
Modifier and Type | Method and Description |
---|---|
boolean |
FuncApplies.matchesSafely(Func<X,Y> func) |
Constructor and Description |
---|
NoNulls(Func<X,Y> fnc)
Ctor.
|
Constructor and Description |
---|
Filtered(Collection<X> src,
Func<X,Boolean> func)
Ctor.
|
Filtered(Iterable<X> src,
Func<X,Boolean> func)
Ctor.
|
Mapped(Collection<X> src,
Func<X,Y> fnc)
Ctor.
|
Mapped(Iterable<X> src,
Func<X,Y> fnc)
Ctor.
|
Modifier and Type | Class and Description |
---|---|
class |
AsyncFunc<X,Y>
Func that runs in the background.
|
class |
ChainedFunc<X,Y,Z>
Composed function.
|
class |
FuncOf<X,Y>
Represents many possible inputs as
Func . |
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 |
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 |
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 |
---|
ChainedFunc(Func<X,Y> bfr,
Iterable<Func<Y,Y>> list,
Func<Y,Z> atr)
Ctor.
|
Constructor and Description |
---|
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,
ClassLoader ldr)
New resource input with specified
ClassLoader . |
UncheckedBytes(Bytes bts,
Func<IOException,byte[]> fbk)
Ctor.
|
Constructor and Description |
---|
Filtered(Iterable<X> src,
Func<X,Boolean> fnc)
Ctor.
|
ItemAt(Iterable<T> source,
Func<Iterable<T>,T> fallback)
Ctor.
|
ItemAt(Iterable<T> source,
int position,
Func<Iterable<T>,T> fallback)
Ctor.
|
Mapped(Iterable<X> src,
Func<X,Y> fnc)
Ctor.
|
Constructor and Description |
---|
Filtered(Iterator<X> src,
Func<X,Boolean> fnc)
Ctor.
|
ItemAt(Iterator<T> iterator,
Func<Iterable<T>,T> fallback)
Ctor.
|
ItemAt(Iterator<T> iterator,
int position,
Func<Iterable<T>,T> fallback)
Ctor.
|
Mapped(Iterator<X> iterator,
Func<X,Y> func)
Ctor.
|
Constructor and Description |
---|
Mapped(Collection<X> src,
Func<X,Y> fnc)
Ctor.
|
Mapped(Iterable<X> src,
Func<X,Y> fnc)
Ctor.
|
Mapped(List<X> src,
Func<X,Y> fnc)
Ctor.
|
Constructor and Description |
---|
MapOf(Iterable<Z> list,
Func<Z,Map.Entry<X,Y>> entry)
Ctor.
|
MapOf(Iterable<Z> list,
Func<Z,X> key,
Func<Z,Y> value)
Ctor.
|
MapOf(Iterable<Z> list,
Func<Z,X> key,
Func<Z,Y> value)
Ctor.
|
MapOf(Map<X,Y> map,
Iterable<Z> list,
Func<Z,Map.Entry<X,Y>> entry)
Ctor.
|
MapOf(Map<X,Y> map,
Iterable<Z> list,
Func<Z,X> key,
Func<Z,Y> value)
Ctor.
|
MapOf(Map<X,Y> map,
Iterable<Z> list,
Func<Z,X> key,
Func<Z,Y> value)
Ctor.
|
StickyMap(Iterable<Z> list,
Func<Z,Map.Entry<X,Y>> entry)
Ctor.
|
StickyMap(Iterable<Z> list,
Func<Z,X> key,
Func<Z,Y> value)
Ctor.
|
StickyMap(Iterable<Z> list,
Func<Z,X> key,
Func<Z,Y> value)
Ctor.
|
StickyMap(Map<X,Y> map,
Iterable<Z> list,
Func<Z,Map.Entry<X,Y>> entry)
Ctor.
|
StickyMap(Map<X,Y> map,
Iterable<Z> list,
Func<Z,X> key,
Func<Z,Y> value)
Ctor.
|
StickyMap(Map<X,Y> map,
Iterable<Z> list,
Func<Z,X> key,
Func<Z,Y> value)
Ctor.
|
Constructor and Description |
---|
And(Func<X,Boolean> func,
X... src)
Ctor.
|
And(Iterable<X> src,
Func<X,Boolean> func)
Ctor.
|
RetryScalar(Scalar<T> scalar,
Func<Integer,Boolean> exit)
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.
|
Constructor and Description |
---|
UncheckedText(Text txt,
Func<IOException,String> fbk)
Ctor.
|
Copyright © 2017 Cactoos. All rights reserved.