| Package | Description |
|---|---|
| net.ninjacat.smooth.collections | |
| net.ninjacat.smooth.concurrent | |
| net.ninjacat.smooth.functions | |
| net.ninjacat.smooth.iterators | |
| net.ninjacat.smooth.utils |
| Modifier and Type | Method and Description |
|---|---|
static <E,R> List<R> |
Lists.map(List<E> list,
Func<R,E> mapFunc) |
static <K,V> Map<K,V> |
Maps.toMap(Iterable<V> list,
Func<K,V> keyGenerator)
Converts iterable to map using provided Key generator function.
|
static <K,V> Map<K,V> |
Maps.toUnmodifiableMap(Iterable<V> list,
Func<K,V> keyGenerator)
Converts iterable to map using provided Key generator function.
|
| Modifier and Type | Method and Description |
|---|---|
<T> Future<T> |
Future.then(Func<T,E> transform)
Allows chaining asynchronous operations.
|
| Modifier and Type | Class and Description |
|---|---|
class |
Procedure<T>
Function of one parameter without result.
|
| Modifier and Type | Method and Description |
|---|---|
Func<R,P2> |
Function2.partialApply(P1 p1) |
| Modifier and Type | Method and Description |
|---|---|
<R> Iter<R> |
Iter.map(Func<R,E> func)
Maps all the values in the iterator to other values using supplied function.
|
<R> LazyIter<R> |
LazyIter.map(Func<R,E> func)
Maps all the values in the collection to other values using supplied function.
|
<K> Map<K,E> |
Iter.toMap(Func<K,E> keyGenerator)
Converts this iterable into map using provided key generator function.
|
| Modifier and Type | Method and Description |
|---|---|
static <P,T> Try.FunctionExecutor<T,P> |
Try.execute(Func<T,P> func)
Executes unary function
|
<K> Option<K> |
Option.map(Func<K,T> transform)
If this option is not empty, its value is transformed with the given Function; otherwise, absent() is returned.
|
<S> Try<S> |
Try.then(Func<S,T> mapper)
Allows chaining of several operations depending on result of the previous one.
|
Copyright © 2018. All rights reserved.