Skip navigation links
A B C D E F G H I J K L M N O P R S T U V W 

A

absent() - Static method in class net.ninjacat.smooth.utils.Option
Creates a new option that does not hold any value.
all(Predicate<E>) - Method in class net.ninjacat.smooth.iterators.Iter
Checks if all elements of iterator match supplied predicate
all(Predicate<E>) - Method in class net.ninjacat.smooth.iterators.LazyIter
Checks if all elements of collection match supplied predicate
any(Predicate<E>) - Method in class net.ninjacat.smooth.iterators.Iter
Checks if any of the elements of iterator match supplied predicate
any(Predicate<E>) - Method in class net.ninjacat.smooth.iterators.LazyIter
Checks if any of the elements of collection match supplied predicate
append(Iterable<T>) - Method in class net.ninjacat.smooth.iterators.MultiIterable
 
appendIterableTo(A, Iterable<?>) - Method in class net.ninjacat.smooth.utils.Joiner
Appends parts of Iterable to a given Appendable
appendTo(A, Object...) - Method in class net.ninjacat.smooth.utils.Joiner
Appends parts to a given Appendable.
apply(P) - Method in interface net.ninjacat.smooth.functions.Func
 
apply(P1, P2) - Method in interface net.ninjacat.smooth.functions.Func2
 
apply(P1, P2) - Method in class net.ninjacat.smooth.functions.Function2
 
apply(T) - Method in class net.ninjacat.smooth.functions.Procedure
 
ArrayIterable<T> - Class in net.ninjacat.smooth.iterators
Iterable wrapper around array.
ArrayIterable(T[]) - Constructor for class net.ninjacat.smooth.iterators.ArrayIterable
Creates a new wrapper for an array
ArrayIterator<T> - Class in net.ninjacat.smooth.iterators
Array iterator.
ArrayIterator(T[]) - Constructor for class net.ninjacat.smooth.iterators.ArrayIterator
Creates a new wrapper for an array
arrayList() - Static method in class net.ninjacat.smooth.iterators.Collectors
Creates a collector which reads Iterable into an ArrayList
Arrays - Class in net.ninjacat.smooth.collections
Array manipulation utilities.
asCallable(T) - Method in class net.ninjacat.smooth.functions.Procedure
Converts Procedure to a Callable.
assignableFrom(Class) - Static method in class net.ninjacat.smooth.functions.Predicates
Predicate that evaluates to true if the class being tested is assignable from the given class.

B

boxDoubleArray(double[]) - Static method in class net.ninjacat.smooth.collections.Arrays
Converts array of primitive doubles into array of object Doubles
boxIntArray(int[]) - Static method in class net.ninjacat.smooth.collections.Arrays
Converts array of primitive ints into array of object Integers
build() - Method in class net.ninjacat.smooth.strings.ImmutableTrie.Builder
 
Builder() - Constructor for class net.ninjacat.smooth.strings.ImmutableTrie.Builder
 

C

call(T) - Method in class net.ninjacat.smooth.functions.Procedure
Override this method to implement procedure.
Collect - Class in net.ninjacat.smooth.collections
Utility functions for collections
collect(Iterable<T>) - Method in interface net.ninjacat.smooth.iterators.Collector
Collects elements from Iterable into a Collection.
Collector<T> - Interface in net.ninjacat.smooth.iterators
Allows to collect values from Iterable to a Collection.
Collectors - Class in net.ninjacat.smooth.iterators
Set of utility methods which return some often-used Collectors
collectWith(Collector<E>) - Method in class net.ninjacat.smooth.iterators.Iter
Collect this iterable into collection
contains(String) - Method in class net.ninjacat.smooth.strings.ImmutableTrie
 
contains(String) - Method in class net.ninjacat.smooth.strings.MutableTrie
 
contains(String) - Method in interface net.ninjacat.smooth.strings.Trie
 

D

doIt(Callable<E>) - Method in class net.ninjacat.smooth.concurrent.Future
Executes block of code in the future.

E

Either<F,S> - Class in net.ninjacat.smooth.utils
Selection of two values.
Either.First<F,S> - Class in net.ninjacat.smooth.utils
Container that only has the first value.
Either.Second<F,S> - Class in net.ninjacat.smooth.utils
Container that only has the second value.
enumerationToIterator(Enumeration<E>) - Static method in class net.ninjacat.smooth.collections.Collect
Wraps Enumeration in the Iterator.
equals(Object) - Method in class net.ninjacat.smooth.utils.Option
 
execute(Callable<T>) - Static method in class net.ninjacat.smooth.utils.Try
Executes code supplied as Callable.
execute(Func<T, P>) - Static method in class net.ninjacat.smooth.utils.Try
Executes unary function

F

failure(Throwable) - Static method in class net.ninjacat.smooth.utils.Try
Creates a failed Try instance.
filter(List<E>, Predicate<E>) - Static method in class net.ninjacat.smooth.collections.Lists
 
filter(Predicate<E>) - Method in class net.ninjacat.smooth.iterators.Iter
Filters out elements of iterable iterator based on predicate.
filter(Predicate<E>) - Method in class net.ninjacat.smooth.iterators.LazyIter
Filters out elements of iterable collection based on predicate.
find(Predicate<E>, E) - Method in class net.ninjacat.smooth.iterators.Iter
Finds first element in iterator that matches supplied Predicate
find(Predicate<E>, E) - Method in class net.ninjacat.smooth.iterators.LazyIter
Finds element in collection that matches supplied Predicate
first(F) - Static method in class net.ninjacat.smooth.utils.Either
Creates an new Either instance with the first value.
forEach(Procedure<E>) - Method in class net.ninjacat.smooth.iterators.Iter
Calls specified Procedure for each element
fromArray(T[]) - Static method in class net.ninjacat.smooth.iterators.ArrayIterable
Creates a new ArrayIterable for an array
fromArray(T[]) - Static method in class net.ninjacat.smooth.iterators.ArrayIterator
Creates a new ArrayIterator for an array
fromArray(E[]) - Static method in class net.ninjacat.smooth.iterators.Iter
Creates rich iterator wrapper around array of elements
Func<R,P> - Interface in net.ninjacat.smooth.functions
Interface for a function with a single parameter
Func2<R,P1,P2> - Interface in net.ninjacat.smooth.functions
Interface for a function with two parameters
Function2<R,P1,P2> - Class in net.ninjacat.smooth.functions
Simple implementation of two-argument function with an implementation of partial application
Function2() - Constructor for class net.ninjacat.smooth.functions.Function2
 
Future<E> - Class in net.ninjacat.smooth.concurrent
Represents long-running operation that should be executed asynchronously.
Future() - Constructor for class net.ninjacat.smooth.concurrent.Future
Creates a future with a default executor
Future(ExecutorService) - Constructor for class net.ninjacat.smooth.concurrent.Future
Creates a future with supplied executor service

G

get() - Method in interface net.ninjacat.smooth.functions.Promise
Call this method to evaluate promise and get promised result
get() - Method in interface net.ninjacat.smooth.functions.Provider
Call this method to get provided value
get(String) - Method in class net.ninjacat.smooth.strings.ImmutableTrie
 
get(String) - Method in class net.ninjacat.smooth.strings.MutableTrie
 
get(String) - Method in interface net.ninjacat.smooth.strings.Trie
 
get() - Method in class net.ninjacat.smooth.utils.Option
Retrieves wrapped value.
get() - Method in class net.ninjacat.smooth.utils.Try
Retrieves result of computation from Try wrapped in Option.
getFailure() - Method in class net.ninjacat.smooth.utils.Try
 
getFirst() - Method in class net.ninjacat.smooth.utils.Either.First
 
getFirst() - Method in class net.ninjacat.smooth.utils.Either
Retrieve the first value.
getFirst() - Method in class net.ninjacat.smooth.utils.Either.Second
 
getLeft() - Method in class net.ninjacat.smooth.utils.Pair
 
getResult() - Method in class net.ninjacat.smooth.concurrent.Future
Returns the result of the Future.
getRight() - Method in class net.ninjacat.smooth.utils.Pair
 
getSecond() - Method in class net.ninjacat.smooth.utils.Either.First
 
getSecond() - Method in class net.ninjacat.smooth.utils.Either
Retrieve the second value.
getSecond() - Method in class net.ninjacat.smooth.utils.Either.Second
 
getValue() - Method in class net.ninjacat.smooth.utils.Try
 

H

hasFirst() - Method in class net.ninjacat.smooth.utils.Either.First
 
hasFirst() - Method in class net.ninjacat.smooth.utils.Either
Checks if this container has the first value.
hasFirst() - Method in class net.ninjacat.smooth.utils.Either.Second
 
hashCode() - Method in class net.ninjacat.smooth.utils.Option
 
hashSet() - Static method in class net.ninjacat.smooth.iterators.Collectors
Creates a collector which reads Iterable into an HashSet
hasNext() - Method in class net.ninjacat.smooth.iterators.ArrayIterator
 
hasSecond() - Method in class net.ninjacat.smooth.utils.Either.First
 
hasSecond() - Method in class net.ninjacat.smooth.utils.Either
Checks if this container has the second value.
hasSecond() - Method in class net.ninjacat.smooth.utils.Either.Second
 
head() - Method in class net.ninjacat.smooth.iterators.LazyIter
This method is not lazy

I

ifPresent(Procedure<T>) - Method in class net.ninjacat.smooth.utils.Option
Executes Procedure if this option has value.
ImmutableTrie<T> - Class in net.ninjacat.smooth.strings
String to any map implemented as trie.
ImmutableTrie() - Constructor for class net.ninjacat.smooth.strings.ImmutableTrie
Creates new instance of the Trie
ImmutableTrie.Builder<T> - Class in net.ninjacat.smooth.strings
 
instanceOf(Class) - Static method in class net.ninjacat.smooth.functions.Predicates
Predicate that evaluates to true if the class being tested is assignable to the given class.
isCompleted() - Method in class net.ninjacat.smooth.concurrent.Future
Checks if execution is complete
isNotNull() - Static method in class net.ninjacat.smooth.functions.Predicates
Predicate that checks value for null.
isNull() - Static method in class net.ninjacat.smooth.functions.Predicates
Predicate that checks value for null.
isPresent() - Method in class net.ninjacat.smooth.utils.Option
 
isSuccessful() - Method in class net.ninjacat.smooth.utils.Try
 
Iter<E> - Class in net.ninjacat.smooth.iterators
Functional style immutable rich iterator
iterator() - Method in class net.ninjacat.smooth.iterators.ArrayIterable
 
iterator() - Method in class net.ninjacat.smooth.iterators.Iter
 
iterator() - Method in class net.ninjacat.smooth.iterators.LazyIter
Returns Iterator for the elements in this Iterable
iterator() - Method in class net.ninjacat.smooth.iterators.MultiIterable
 
iteratorToList(Iterator<E>) - Static method in class net.ninjacat.smooth.collections.Collect
Converts Iterator to list
iteratorToSet(Iterator<E>) - Static method in class net.ninjacat.smooth.collections.Collect
Converts Iterator to a set
Iters - Class in net.ninjacat.smooth.iterators
Iterable utility methods.

J

join(Object...) - Method in class net.ninjacat.smooth.utils.Joiner
Joins parts and returns them as a string.
Joiner - Class in net.ninjacat.smooth.utils
Object that joins parts of text specified as iterable, varargs or array.
joinIterable(Iterable<?>) - Method in class net.ninjacat.smooth.utils.Joiner
Joins parts and returns them as a string.

K

keySet() - Method in class net.ninjacat.smooth.strings.ImmutableTrie
 
keySet() - Method in class net.ninjacat.smooth.strings.MutableTrie
 
keySet() - Method in interface net.ninjacat.smooth.strings.Trie
 

L

lazyFind(Predicate<E>, E) - Method in class net.ninjacat.smooth.iterators.Iter
LazyIter<E> - Class in net.ninjacat.smooth.iterators
Functional style lazy immutable rich iterator
lazyReduce(R, Function2<R, R, E>) - Method in class net.ninjacat.smooth.iterators.Iter
Lazily folds iterable iterator left
linkedList() - Static method in class net.ninjacat.smooth.iterators.Collectors
Creates a collector which reads Iterable into an LinkedList
listOf(E...) - Static method in class net.ninjacat.smooth.collections.Collect
Create list of elements
Lists - Class in net.ninjacat.smooth.collections
 

M

map(List<E>, Func<R, E>) - Static method in class net.ninjacat.smooth.collections.Lists
 
map(Func<R, E>) - Method in class net.ninjacat.smooth.iterators.Iter
Maps all the values in the iterator to other values using supplied function.
map(Func<R, E>) - Method in class net.ninjacat.smooth.iterators.LazyIter
Maps all the values in the collection to other values using supplied function.
map(Func<K, T>) - Method in class net.ninjacat.smooth.utils.Option
If this option is not empty, its value is transformed with the given Function; otherwise, absent() is returned.
Maps - Class in net.ninjacat.smooth.collections
 
matches(T) - Method in interface net.ninjacat.smooth.functions.Predicate
 
mkStr(String) - Method in class net.ninjacat.smooth.iterators.Iter
Joins all the elements in the collection into string with supplied separator
MultiIterable<T> - Class in net.ninjacat.smooth.iterators
Iterable that can host multiple Iterables and provide an Iterator to walk them all.
MultiIterable(Iterable<T>...) - Constructor for class net.ninjacat.smooth.iterators.MultiIterable
 
MultiIterable() - Constructor for class net.ninjacat.smooth.iterators.MultiIterable
 
MutableTrie<T> - Class in net.ninjacat.smooth.strings
String to any map implemented as trie.
MutableTrie() - Constructor for class net.ninjacat.smooth.strings.MutableTrie
Creates new instance of the Trie

N

net.ninjacat.smooth.collections - package net.ninjacat.smooth.collections
 
net.ninjacat.smooth.concurrent - package net.ninjacat.smooth.concurrent
 
net.ninjacat.smooth.functions - package net.ninjacat.smooth.functions
 
net.ninjacat.smooth.iterators - package net.ninjacat.smooth.iterators
 
net.ninjacat.smooth.strings - package net.ninjacat.smooth.strings
 
net.ninjacat.smooth.utils - package net.ninjacat.smooth.utils
 
net.ninjacat.smooth.validator - package net.ninjacat.smooth.validator
 
next() - Method in class net.ninjacat.smooth.iterators.ArrayIterator
 
noDuplicateSeparators() - Method in class net.ninjacat.smooth.utils.Joiner
Configures Joiner to prevent duplicate separators.
not(Predicate<T>) - Static method in class net.ninjacat.smooth.functions.Predicates
Inverts result of predicate.

O

of(T...) - Static method in class net.ninjacat.smooth.collections.Lists
 
of(Object...) - Static method in class net.ninjacat.smooth.collections.Maps
Will create map, give list of key, value pairs.
of(Pair<K, V>...) - Static method in class net.ninjacat.smooth.collections.Maps
Will create map, give list of key-value pairs.
of(Enumeration<E>) - Static method in class net.ninjacat.smooth.iterators.Iter
 
of(Collection<E>) - Static method in class net.ninjacat.smooth.iterators.Iter
Creates iterator over collection.
of(Iterator<E>) - Static method in class net.ninjacat.smooth.iterators.Iter
Creates rich iterator wrapper around Java Iterator.
of(E...) - Static method in class net.ninjacat.smooth.iterators.Iter
Creates rich iterator wrapper around array of elements
of(Collection<E>) - Static method in class net.ninjacat.smooth.iterators.LazyIter
Constructs new lazy iterable from collection.
of(E, Collection<E>) - Static method in class net.ninjacat.smooth.iterators.LazyIter
 
of(E...) - Static method in class net.ninjacat.smooth.iterators.LazyIter
Create new lazy iterable from array, sequence of parameters.
of(T) - Static method in class net.ninjacat.smooth.utils.Option
Creates a new option from supplied value.
of(L, R) - Static method in class net.ninjacat.smooth.utils.Pair
Creates new Pair of two elements.
on(String) - Static method in class net.ninjacat.smooth.utils.Joiner
Creates a new Joiner object with a specified separator.
onFailure(Procedure<Throwable>) - Method in class net.ninjacat.smooth.concurrent.Future
Sets failed execution handler.
onSuccess(Procedure<E>) - Method in class net.ninjacat.smooth.concurrent.Future
Sets successful execution handler.
Option<T> - Class in net.ninjacat.smooth.utils
An immutable object that contains either a non-null reference to another object or contains nothing, i.e.
or(T) - Method in class net.ninjacat.smooth.utils.Option
Returns wrapped value, if this Option is not absent or supplied alternative otherwise.
orGet(Provider<T>) - Method in class net.ninjacat.smooth.utils.Option
Returns wrapped value if this Option is not absent, otherwise calls supplied Provider to calculate a new value.
orNull() - Method in class net.ninjacat.smooth.utils.Option
 

P

Pair<L,R> - Class in net.ninjacat.smooth.utils
Simple two element tuple combining two elements.
partialApply(P1) - Method in class net.ninjacat.smooth.functions.Function2
 
PATH_JOINER - Static variable in class net.ninjacat.smooth.utils.Joiner
Ready to use Joiner for paths
Predicate<T> - Interface in net.ninjacat.smooth.functions
Predicate is a function of which can return either true or false
Predicates - Class in net.ninjacat.smooth.functions
Useful predicates
Procedure<T> - Class in net.ninjacat.smooth.functions
Function of one parameter without result.
Procedure() - Constructor for class net.ninjacat.smooth.functions.Procedure
 
Promise<R> - Interface in net.ninjacat.smooth.functions
Nullary function.
Provider<R> - Interface in net.ninjacat.smooth.functions
Nullary function.
put(String, T) - Method in class net.ninjacat.smooth.strings.ImmutableTrie.Builder
 
put(String, T) - Method in class net.ninjacat.smooth.strings.ImmutableTrie
 
put(String, T) - Method in class net.ninjacat.smooth.strings.MutableTrie
 
put(String, T) - Method in interface net.ninjacat.smooth.strings.Trie
 

R

range(int, int) - Static method in class net.ninjacat.smooth.iterators.Iters
Generate iterable which returns integers in range [from; to)
range(int) - Static method in class net.ninjacat.smooth.iterators.Iters
Generates an iterable for a range from zero to specified value, upper bound value is not included
recover(Callable<T>) - Method in class net.ninjacat.smooth.utils.Try
Tries to recover from failure with provided Callable.
reduce(R, Function2<R, R, E>) - Method in class net.ninjacat.smooth.iterators.Iter
Folds iterable iterator left
reduce(R, Function2<R, R, E>) - Method in class net.ninjacat.smooth.iterators.LazyIter
Folds iterable collection left
remove() - Method in class net.ninjacat.smooth.iterators.ArrayIterator
 
repeat(T, int) - Static method in class net.ninjacat.smooth.iterators.Iters
Returns iterable which generates the same value for specified number of iterations
run(Callable<E>) - Static method in class net.ninjacat.smooth.concurrent.Future
Shortcut for executing a Callable with default parameters.

S

second(S) - Static method in class net.ninjacat.smooth.utils.Either
Creates an new Either instance with the second value.
setOf(E...) - Static method in class net.ninjacat.smooth.collections.Collect
Create a set of elements
skipNulls() - Method in class net.ninjacat.smooth.utils.Joiner
Configures Joiner to ignore null elements.
startingWith(String) - Method in class net.ninjacat.smooth.strings.ImmutableTrie
 
startingWith(String) - Method in class net.ninjacat.smooth.strings.MutableTrie
 
startingWith(String) - Method in interface net.ninjacat.smooth.strings.Trie
 
success(T) - Static method in class net.ninjacat.smooth.utils.Try
Creates a successful Try instance.

T

tail() - Method in class net.ninjacat.smooth.iterators.LazyIter
This method is not lazy
then(Func<T, E>) - Method in class net.ninjacat.smooth.concurrent.Future
Allows chaining asynchronous operations.
then(Func<S, T>) - Method in class net.ninjacat.smooth.utils.Try
Allows chaining of several operations depending on result of the previous one.
toArray(E[]) - Method in class net.ninjacat.smooth.iterators.Iter
Returns an array containing all of the elements in this iterable in proper sequence (from first to last element); the runtime type of the returned array is that of the specified array.
toArray(Class<E>) - Method in class net.ninjacat.smooth.iterators.Iter
Returns an array containing all of the elements in this iterable in proper sequence (from first to last element); the runtime type of the returned array is that of the specified array.
toArray(E[]) - Method in class net.ninjacat.smooth.iterators.LazyIter
Returns an array containing all elements contained in this Iterable.
toDoubleArray(Collection<Double>) - Static method in class net.ninjacat.smooth.collections.Arrays
Converts collection of Doubles to array of primitives
toIntArray(Collection<Integer>) - Static method in class net.ninjacat.smooth.collections.Arrays
Converts collection of Integers to array of primitives
toList() - Method in class net.ninjacat.smooth.iterators.Iter
 
toList() - Method in class net.ninjacat.smooth.iterators.LazyIter
This method is not lazy
toMap(Iterable<V>, Func<K, V>) - Static method in class net.ninjacat.smooth.collections.Maps
Converts iterable to map using provided Key generator function.
toMap(Func<K, E>) - Method in class net.ninjacat.smooth.iterators.Iter
Converts this iterable into map using provided key generator function.
toSet() - Method in class net.ninjacat.smooth.iterators.Iter
 
toSet() - Method in class net.ninjacat.smooth.iterators.LazyIter
This method is not lazy
toString() - Method in class net.ninjacat.smooth.utils.Option
 
toUnmodifiableMap(Iterable<V>, Func<K, V>) - Static method in class net.ninjacat.smooth.collections.Maps
Converts iterable to map using provided Key generator function.
treeSet() - Static method in class net.ninjacat.smooth.iterators.Collectors
Creates a collector which reads Iterable into an TreeSet
Trie<T> - Interface in net.ninjacat.smooth.strings
TODO: Write JavaDoc
Try<T> - Class in net.ninjacat.smooth.utils
Wrapper around potentially unsafe execution.
Try.FunctionExecutor<R,P> - Class in net.ninjacat.smooth.utils
Delayed function executor.

U

useForNulls(String) - Method in class net.ninjacat.smooth.utils.Joiner
Sets the string to use in place of null elements.

V

validateNotNull(T, E) - Static method in class net.ninjacat.smooth.validator.Validators
Validates supplied value.
validateNotNull(T) - Static method in class net.ninjacat.smooth.validator.Validators
Validates supplied value.
validateNull(T, E) - Static method in class net.ninjacat.smooth.validator.Validators
Validates supplied value.
validateNull(T) - Static method in class net.ninjacat.smooth.validator.Validators
Validates supplied value.
Validators - Class in net.ninjacat.smooth.validator
Collection of functions to perform various validations

W

with(P) - Method in class net.ninjacat.smooth.utils.Try.FunctionExecutor
Supplies a parameter to a function which will be executed within Try
A B C D E F G H I J K L M N O P R S T U V W 
Skip navigation links

Copyright © 2018. All rights reserved.