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 Y 

$

$(String) - Method in class no.motif.Enums.FromName
 
$(T) - Method in class no.motif.f.base.FalseIfNull
 
$(I1, I2) - Method in class no.motif.f.base.NullIfEitherArgIsNull
 
$(T) - Method in class no.motif.f.combine.Conjunction
 
$() - Method in class no.motif.f.combine.ConjunctionPremise
 
$(T) - Method in class no.motif.f.combine.Disjunction
 
$() - Method in class no.motif.f.combine.DisjunctionPremise
 
$(I1, I2) - Method in class no.motif.f.combine.Fn2Chain
 
$(I) - Method in class no.motif.f.combine.When
 
$(T) - Method in class no.motif.f.combine.Where
 
$(I) - Method in interface no.motif.f.Fn
Applies the function.
$() - Method in interface no.motif.f.Fn0
Applies the function.
$(I1, I2) - Method in interface no.motif.f.Fn2
Applies the function.
$() - Method in class no.motif.f.impl.Constant
 
$(Object) - Method in class no.motif.f.impl.Constant
 
$(Object, Object) - Method in class no.motif.f.impl.Constant
 
$(I1, I2) - Method in class no.motif.f.impl.Throw
 
$() - Method in class no.motif.f.impl.Throw
 
$(I1) - Method in class no.motif.f.impl.Throw
 
$(V) - Method in class no.motif.f.PartialApplication
 
$(T) - Method in interface no.motif.f.Predicate
 
$(T) - Method in class no.motif.f.Predicate.Always
 

A

A<V> - Interface in no.motif.single
This is a V, i.e.
add(int) - Static method in class no.motif.Ints
 
add(long) - Static method in class no.motif.Longs
 
after(String) - Static method in class no.motif.Strings
Inside strings, searches for the first occurence of a substring, and yields the rest of the string after the substring occurence, not including the substring itself.
afterLast(String) - Static method in class no.motif.Strings
Inside strings, searches for the last occurence of a substring, and yields the rest of the string after the substring occurence, not including the substring itself.
all(Predicate<? super E>) - Static method in class no.motif.Base
Evaluate if all elements satisfies a predicate, i.e.
allBetween(String, String) - Static method in class no.motif.Strings
Yield all strings occurring _between_ two substrings.
allChars(Predicate<Character>) - Static method in class no.motif.Strings
Predicate verifying that all characters in a string satifies a given predicate.
allOf(Predicate<? super T>...) - Static method in class no.motif.Base
Compose an AND-expression of several predicates.
allOf(Fn0<Boolean>...) - Static method in class no.motif.Base
Compose an AND-expression of several Fn0<Boolean>s.
alphabetic - Static variable in class no.motif.Strings
Alphabetic strings are at least one character, and all letters.
alphanumeric - Static variable in class no.motif.Strings
Alphanumeric strings are at least one character, and all digits and/or letters.
always(V) - Static method in class no.motif.Base
Create a function which always yields the given value.
always(boolean) - Static method in class no.motif.Base
Create a predicate which always yields the given boolean value.
alwaysThrow(Exception) - Static method in class no.motif.Base
Create a function which always throw the given exception.
and(Predicate<? super T>) - Method in class no.motif.f.combine.Conjunction
 
and(Fn0<Boolean>) - Method in class no.motif.f.combine.ConjunctionPremise
 
annotatedWith(Class<? extends Annotation>) - Static method in class no.motif.Reflect
Check if an element (class, method, field, etc) is annotated with a given annotation.
anyOf(T...) - Static method in class no.motif.Base
anyOf(Predicate<? super T>...) - Static method in class no.motif.Base
Compose an OR-expression of several predicates.
anyOf(Fn0<Boolean>...) - Static method in class no.motif.Base
Compose an OR-expression of several Fn0<Boolean>s.
append(T) - Method in class no.motif.iter.PreparedIterable
 
append(Iterable<? extends T>) - Method in class no.motif.iter.PreparedIterable
 
append(Iterable<? extends V>) - Method in class no.motif.single.Optional
 
append(V) - Method in class no.motif.single.Optional
 
append(String) - Static method in class no.motif.Strings
Create a new strings by appending a suffix.
append(T) - Method in interface no.motif.types.Appendable
Append one element.
append(Iterable<? extends T>) - Method in interface no.motif.types.Appendable
Append several elements.
Appendable<T> - Interface in no.motif.types
A container which can have additional elements appended.
Apply - Class in no.motif.f
Utilities to adapt how functions are invoked.
argsReversed(Fn2<I1, I2, O>) - Static method in class no.motif.f.Apply
Transform a function taking 2 arguments to another function where the argument order is reversed.
asDo - Variable in class no.motif.f.combine.FnChain
This chain, typed as a Do (sideeffect).
asFn(Map<I, O>) - Static method in class no.motif.Maps
Uses a Map as the basis for a Fn.
asMap(Fn<K, V>) - Static method in class no.motif.Maps
Use a given Fn as a Map.
asOptional() - Method in interface no.motif.single.A
 
asOptional() - Method in class no.motif.single.Optional.Some
 
asRuntimeException(Exception) - Static method in class no.motif.Exceptions
If you need to rethrow checked exceptions as RuntimeException, this method will ensure a sensible RuntimeException being acquired.

B

Base - Class in no.motif
Basic functions.
before(String) - Static method in class no.motif.Strings
Inside strings, searches for the first occurence of a substring, and yields the the string before the substring occurence, not including the substring itself.
before(int) - Static method in class no.motif.Strings
Yields substrings before a position index.
before(Fn<? super String, Integer>) - Static method in class no.motif.Strings
Yields substrings before a position index.
beforeLast(String) - Static method in class no.motif.Strings
Inside strings, searches for the last occurence of a substring, and yields the the string before the substring occurence, not including the substring itself.
between(String, String) - Static method in class no.motif.Strings
Yield the string _between_ two substrings.
betweenOuter(String, String) - Static method in class no.motif.Strings
Yield the string _between_ two outermost substrings.
blank - Static variable in class no.motif.Strings
A blank string is either null, empty, or all characters are whitespace.
both(Predicate<T>) - Static method in class no.motif.Base
Create a AND-expression of several predicates, starting with the one given to this method.
both(Fn0<Boolean>) - Static method in class no.motif.Base
Create a AND-expression of several Fn0<Boolean>s, starting with the one given to this method.
by(Fn<T, P>) - Static method in class no.motif.Iterate
Create a Comparator from an Fn, typically to sort using a Comparable property of a type.
byOrderingOf(Class<T>) - Static method in class no.motif.Iterate
Convert a type with natural ordering, i.e.
ByPropertyComparator<T,C extends Comparable<C>> - Class in no.motif.iter.ordering
 
ByPropertyComparator(Fn<T, C>) - Constructor for class no.motif.iter.ordering.ByPropertyComparator
 
bytes - Static variable in class no.motif.Strings
Yields the bytes of a String.
BytesIterable - Class in no.motif.iter.boxing
 
BytesIterable(byte[]) - Constructor for class no.motif.iter.boxing.BytesIterable
 

C

cause - Static variable in class no.motif.Exceptions
Get the cause of a Throwable.
chain(Fn<I, O>) - Static method in class no.motif.f.combine.FnChain
 
Chars - Class in no.motif
Functions operating on single characters.
CharsInStringIterator - Class in no.motif.iter
 
CharsInStringIterator(CharSequence) - Constructor for class no.motif.iter.CharsInStringIterator
 
CharsIterable - Class in no.motif.iter.boxing
 
CharsIterable(char[]) - Constructor for class no.motif.iter.boxing.CharsIterable
 
className - Static variable in class no.motif.Reflect
Get the name of a Class.
clear() - Method in class no.motif.maps.CombinedMapsView
 
clear() - Method in class no.motif.maps.MapViewOfFn
 
collect() - Method in interface no.motif.types.YieldsJavaCollection
Get the elements as an immutable List.
collectIn(C) - Method in interface no.motif.types.YieldsJavaCollection
Collects the elements in this iterable in the given collection.
combine(Map<K, I>, Map<I, V>) - Static method in class no.motif.Maps
Creates a combined view of two maps, where the values of the first map corresponds to keys of the second map.
combine(Map<K1, V1>, Fn<? super V1, ? extends K2>, Map<K2, V2>) - Static method in class no.motif.Maps
Creates a combined view of two maps, where the values of the first map will be mapped (no pun intended) to keys of the second map.
CombinedMapsView<K1,V1,K2,V2> - Class in no.motif.maps
Documentation in Maps.combine(..)
CombinedMapsView(Map<K1, V1>, Fn<? super V1, ? extends K2>, Map<K2, V2>) - Constructor for class no.motif.maps.CombinedMapsView
 
compare(T, T) - Method in class no.motif.iter.ordering.ByPropertyComparator
 
compare(T, T) - Method in class no.motif.iter.ordering.EnhancedComparatorImpl
 
concat - Static variable in class no.motif.Strings
Concatenate a string with the string representation of an arbitrary object, i.e.
Conjunction<T> - Class in no.motif.f.combine
A conjunction is a composition of several predicates which must all evaluate to true for the conjunction to be true, otherwise it is false.
Conjunction(Predicate<? super T>...) - Constructor for class no.motif.f.combine.Conjunction
 
Conjunction(Iterable<Predicate<? super T>>) - Constructor for class no.motif.f.combine.Conjunction
 
ConjunctionPremise - Class in no.motif.f.combine
A composition of several Fn0<Boolean>s which must all evaluate to true for the conjunction to yield true, otherwise it yields false.
ConjunctionPremise(Fn0<Boolean>...) - Constructor for class no.motif.f.combine.ConjunctionPremise
 
ConjunctionPremise(Iterable<Fn0<Boolean>>) - Constructor for class no.motif.f.combine.ConjunctionPremise
 
Constant<I1,I2,V> - Class in no.motif.f.impl
 
Constant(V) - Constructor for class no.motif.f.impl.Constant
 
containedIn(Iterable<? extends T>) - Static method in class no.motif.Base
Evaluates if objects are contained in the given Iterable.
contains(CharSequence) - Static method in class no.motif.Strings
Determines if a substring is present in a string.
containsKey(Object) - Method in class no.motif.maps.CombinedMapsView
 
containsKey(Object) - Method in class no.motif.maps.MapViewOfFn
 
containsValue(Object) - Method in class no.motif.maps.CombinedMapsView
 
containsValue(Object) - Method in class no.motif.maps.MapViewOfFn
 
CyclingIterable<T> - Class in no.motif.iter
 
CyclingIterable(int, Iterable<T>) - Constructor for class no.motif.iter.CyclingIterable
 

D

Decimals - Class in no.motif
 
digit - Static variable in class no.motif.Chars
Determines if a character is a digit.
Disjunction<T> - Class in no.motif.f.combine
A disjunction is a composition of several predicates which evaluates to true when at least one of the predicates yields true.
Disjunction(Predicate<? super T>...) - Constructor for class no.motif.f.combine.Disjunction
 
Disjunction(Iterable<Predicate<? super T>>) - Constructor for class no.motif.f.combine.Disjunction
 
DisjunctionPremise - Class in no.motif.f.combine
A disjunction is a composition of several Fn0<Boolean>s which evaluates to true only when at least one of the premises yields true.
DisjunctionPremise(Fn0<Boolean>...) - Constructor for class no.motif.f.combine.DisjunctionPremise
 
DisjunctionPremise(Iterable<Fn0<Boolean>>) - Constructor for class no.motif.f.combine.DisjunctionPremise
 
divide - Static variable in class no.motif.Ints
 
divide - Static variable in class no.motif.Longs
 
dividedBy(int) - Static method in class no.motif.Ints
 
dividedBy(long) - Static method in class no.motif.Longs
 
Do<T> - Interface in no.motif.f
This is the equivalent of a method with return type void.
DoChain<T> - Class in no.motif.f.combine
 
DoChain(Do<T>, Do<? super T>) - Constructor for class no.motif.f.combine.DoChain
 
doNothing - Static variable in class no.motif.NOP
The NOP for Do does nothing.
doubled - Static variable in class no.motif.Ints
 
doubled - Static variable in class no.motif.Longs
 

E

each(Do<? super T>) - Method in interface no.motif.types.SideEffectable
Execute a side effect operation for each containing element.
either(T) - Static method in class no.motif.Base
Shorthand for either(equalTo(o)).
either(Predicate<T>) - Static method in class no.motif.Base
Create a OR-expression of several predicates, starting with the one given to this method.
either(Fn0<Boolean>) - Static method in class no.motif.Base
Create a OR-expression of several Fn0<Boolean>s, starting with the one given to this method.
Elem<T> - Class in no.motif.single
A simple container for a value coupled with an index.
elementAt(int) - Method in class no.motif.iter.CharsInStringIterator
 
elementAt(int) - Method in class no.motif.iter.PreIndexedContentIterator
 
Elements<T> - Interface in no.motif.types
This is the main type of Motif's collection API and encompasses all the operations available to manipulate and query the the contained elements, as well as converting back to Java Collection Framework collections.
empty - Static variable in class no.motif.Iterate
Evaluates if an Iterable is empty.
EmptyIterator<T> - Class in no.motif.iter
An iterator which is empty, i.e.
endsWith(String) - Static method in class no.motif.Strings
Determines if a string ends with a given suffix string.
EnhancedComparator<T> - Interface in no.motif.iter.ordering
A Comparator augmented with various methods to refine its functionality.
EnhancedComparatorImpl<T> - Class in no.motif.iter.ordering
 
EnhancedComparatorImpl(Comparator<T>) - Constructor for class no.motif.iter.ordering.EnhancedComparatorImpl
 
entrySet() - Method in class no.motif.maps.CombinedMapsView
 
entrySet() - Method in class no.motif.maps.MapViewOfFn
 
Enums - Class in no.motif
 
Enums.FromName<E extends Enum<E>> - Class in no.motif
Fn which resolves enum constants from names (String).
equalOrGreaterThan(T) - Static method in class no.motif.Base
Predicate evaluating if values are equal to or greater than a given value.
equalOrLessThan(T) - Static method in class no.motif.Base
Predicate evaluating if values are equal to or less than a given value.
equals(Object) - Method in class no.motif.single.Elem
 
equals(Object) - Method in class no.motif.single.Optional.None
 
equals(Object) - Method in class no.motif.single.Optional.Some
 
equalTo(T) - Static method in class no.motif.Base
Equality predicate, checks if values are equal to the given value.
equalTo(Fn0<? super T>) - Static method in class no.motif.Base
Equality predicate, checks if values are equal to the value computed from the given Fn0.
eval() - Method in class no.motif.iter.PreparedIterable
 
eval() - Method in interface no.motif.types.Elements
Force-evaluate the current elements, applying all composed functions on each element.
even - Static variable in class no.motif.Ints
 
even - Static variable in class no.motif.Longs
 
Exceptions - Class in no.motif
Utilities for dealing with exceptions.
Existance<T> - Interface in no.motif.types
A container type which can evaluate for existance of its element(s), as well as evaluate if it is empty.
exists(E) - Static method in class no.motif.Base
exists(Predicate<? super E>) - Static method in class no.motif.Base
Evaluate if an element exists, i.e.
exists(Predicate<? super T>) - Method in interface no.motif.types.Existance
Decide if an element exist.
extract(Fn<? super T, ? extends E>...) - Static method in class no.motif.Base
A function to extract/derive several values from one object.
ExtractingIterable<T,E> - Class in no.motif.iter
An iterable which will derive its elements from one object, by using a set of Fns which each will be given said object to obtain the elements.
ExtractingIterable(T, Iterable<? extends Fn<? super T, ? extends E>>) - Constructor for class no.motif.iter.ExtractingIterable
 

F

FalseIfNull<T> - Class in no.motif.f.base
A base implementation for predicates where the case of null values is evaluated as false.
FalseIfNull() - Constructor for class no.motif.f.base.FalseIfNull
 
filter(Predicate<? super T>) - Method in class no.motif.iter.PreparedIterable
 
filter(Predicate<? super V>) - Method in interface no.motif.single.A
 
filter(Predicate<? super V>) - Method in class no.motif.single.Optional
 
filter(Predicate<? super V>) - Method in class no.motif.single.Optional.None
 
filter(Predicate<? super V>) - Method in class no.motif.single.Optional.Some
 
filter(Predicate<? super T>) - Method in interface no.motif.types.Elements
 
filter(Predicate<? super T>) - Method in interface no.motif.types.Filterable
Provide a predicate that evaluates which element(s) to be included.
Filterable<T> - Interface in no.motif.types
 
first(Fn<I, O>) - Static method in class no.motif.Base
Compose a chain of several functions into one Fn, where the result of each function is passed to its successor, and the last will yield the actual result of the chain.
first(Fn2<I1, I2, O>) - Static method in class no.motif.Base
Compose a chain of several functions into one Fn2, where the result of each function is passed to its successor, and the last will yield the actual result of the chain.
first(Runnable) - Static method in class no.motif.Base
Compose several Runnables as a single Runnable which will execute the given Runnables in sequence.
first(Do<V>) - Static method in class no.motif.Base
Chain several Dos to be executed in sequence.
first(Predicate<? super T>) - Method in interface no.motif.iter.ordering.EnhancedComparator
 
first(Predicate<? super T>) - Method in class no.motif.iter.ordering.EnhancedComparatorImpl
 
first(int) - Static method in class no.motif.Strings
Get at most a given amount of the first characters of strings.
flatMap(Fn<? super T, ? extends Iterable<O>>) - Method in class no.motif.iter.PreparedIterable
 
flatMap(Fn<? super V, Optional<O>>) - Method in class no.motif.single.Optional
 
flatMap(Fn<? super V, Optional<O>>) - Method in class no.motif.single.Optional.None
 
flatMap(Fn<? super V, Optional<O>>) - Method in class no.motif.single.Optional.Some
 
flatMap(Fn<? super T, ? extends Iterable<O>>) - Method in interface no.motif.types.Elements
 
Fn<I,O> - Interface in no.motif.f
Function taking a value of type I and returning a value of type O.
fn() - Static method in class no.motif.NOP
The NOP for Fn simply yields any given argument as its result.
Fn0<V> - Interface in no.motif.f
A function which provides a value, without taking any arguments.
Fn2<I1,I2,O> - Interface in no.motif.f
Function taking two values of type I1 and I2, and returning a value of type O.
Fn2Chain<I1,I2,T,O> - Class in no.motif.f.combine
 
Fn2Chain(Fn2<I1, I2, T>, Fn<? super T, O>) - Constructor for class no.motif.f.combine.Fn2Chain
 
FnChain<I,O> - Class in no.motif.f.combine
Composition of multiple Fns, where the result of the first is passed as argument to the second.
from(int) - Static method in class no.motif.Strings
Yields substrings from a position index.
from(Fn<? super String, Integer>) - Static method in class no.motif.Strings
Yields substrings from a position index.

G

get(Object) - Method in class no.motif.maps.CombinedMapsView
 
get(Object) - Method in class no.motif.maps.MapViewOfFn
 
get() - Method in interface no.motif.single.A
 
get() - Method in class no.motif.single.Optional
Obtain the value contained in the Optional.
get() - Method in class no.motif.single.Optional.None
 
get() - Method in class no.motif.single.Optional.Some
 
getClass - Static variable in class no.motif.Reflect
Gets the class of an object.
getEncoding - Static variable in class no.motif.Implicits
 
getEncoding() - Static method in class no.motif.Implicits
 
getInstance() - Static method in class no.motif.single.Optional.None
 
getLocale - Static variable in class no.motif.Implicits
 
getLocale() - Static method in class no.motif.Implicits
 
getPackage - Static variable in class no.motif.Reflect
Get the package of a Class.
getTimeMillis - Static variable in class no.motif.Implicits
 
getTimeMillis() - Static method in class no.motif.Implicits
 
getTimeZone - Static variable in class no.motif.Implicits
 
getTimeZone() - Static method in class no.motif.Implicits
 
greaterThan(T) - Static method in class no.motif.Base
Predicate evaluating if values are greater than a given value.
groupBy(Fn<? super T, P>) - Method in interface no.motif.types.YieldsJavaCollection
Get a Map where the keys are derived by applying the given Fn on all elements.

H

hashCode - Static variable in class no.motif.Base
Yields the hashCode for objects, or 0 if null.
hashCode() - Method in class no.motif.single.Elem
 
hashCode() - Method in class no.motif.single.Optional.None
 
hashCode() - Method in class no.motif.single.Optional.Some
 
hasLength(int) - Static method in class no.motif.Strings
Evaluate if strings are of a exact length.
hasLength(Predicate<? super Integer>) - Static method in class no.motif.Strings
Evaluate if strings have accepted lengths.
hasNext() - Method in class no.motif.iter.EmptyIterator
 
hasNext() - Method in class no.motif.iter.PreIndexedContentIterator
 
hasNext() - Method in class no.motif.iter.SimpleIterator
 
hasNext() - Method in class no.motif.iter.SingularIterator
 
hasNext - Static variable in class no.motif.Iterate
The Iterator.hasNext() method as a function.
head() - Method in interface no.motif.types.Elements
 
head() - Method in interface no.motif.types.HeadAndTail
Gets the head, or first element, if it exists.
HeadAndTail<E> - Interface in no.motif.types
A recursive type which can be splitted into a head element, and the remaining tail, which may be splitted further into head and tail.

I

Implicits - Class in no.motif
This class is used to set certain implicit values, which are usually global for larger scopes, e.g.
inBetween(String, String) - Static method in class no.motif.Strings
Insert strings in between a prefix and a suffix.
increment - Static variable in class no.motif.Ints
 
increment - Static variable in class no.motif.Longs
 
index - Variable in class no.motif.single.Elem
 
indexed() - Method in class no.motif.iter.PreparedIterable
 
indexed() - Method in interface no.motif.types.Elements
Couple each element with its positional index.
indexedFrom(int) - Method in class no.motif.iter.PreparedIterable
 
indexedFrom(int) - Method in interface no.motif.types.Elements
Couple each element with its positional index, starting from a given index.
indexOf(char) - Static method in class no.motif.Strings
Yields index position of first occurence of a char, or null if the char cannot be found.
indexOf(String) - Static method in class no.motif.Strings
Yields index position of first occurence of a substring, or null if the substring cannot be found.
instance() - Static method in class no.motif.iter.EmptyIterator
 
Ints - Class in no.motif
Integer operations.
IntsIterable - Class in no.motif.iter.boxing
 
IntsIterable(int[]) - Constructor for class no.motif.iter.boxing.IntsIterable
 
intValue - Static variable in class no.motif.Ints
Yields the integer value of any number.
IO - Class in no.motif
IO-operations.
is(T) - Static method in class no.motif.Base
A synonym for Base.equalTo(Object).
isA(Class<?>) - Static method in class no.motif.Reflect
Evaluates if objects are of a certain type (class or interface).
isEmpty() - Method in class no.motif.maps.CombinedMapsView
 
isEmpty() - Method in class no.motif.maps.MapViewOfFn
 
isEmpty() - Method in interface no.motif.types.Existance
 
isNull - Static variable in class no.motif.Base
Yields true for null values.
isSome() - Method in class no.motif.single.Optional
 
isSome() - Method in class no.motif.single.Optional.None
 
isSome() - Method in class no.motif.single.Optional.Some
 
Iterate - Class in no.motif
Operations for containers, e.g.
iterator() - Method in class no.motif.iter.boxing.BytesIterable
 
iterator() - Method in class no.motif.iter.boxing.CharsIterable
 
iterator() - Method in class no.motif.iter.boxing.IntsIterable
 
iterator() - Method in class no.motif.iter.CyclingIterable
 
iterator() - Method in class no.motif.iter.ExtractingIterable
 
iterator() - Method in class no.motif.iter.PreparedIterable
 
iterator() - Method in class no.motif.iter.SplitOnCharacter
 
iterator() - Method in class no.motif.iter.SplitOnSubstring
 
iterator() - Method in class no.motif.single.Optional.None
 
iterator() - Method in class no.motif.single.Optional.Some
 

J

join() - Method in interface no.motif.types.Elements
Join all elements to one String.
join(String) - Method in interface no.motif.types.Elements
Join all elements to one String with all elements joined with the given separator.
justSideEffectOf(Fn<I, ?>) - Static method in class no.motif.f.Apply
Convert an Fn to a Do.

K

key() - Static method in class no.motif.Maps
Gets the key of a map entry.
keyIn(Map<K, ?>) - Static method in class no.motif.Maps
Evaluate if objects are a key contained in the given Map.
keySet() - Method in class no.motif.maps.CombinedMapsView
 
keySet() - Method in class no.motif.maps.MapViewOfFn
 

L

last(Predicate<? super T>) - Method in interface no.motif.iter.ordering.EnhancedComparator
 
last(Predicate<? super T>) - Method in class no.motif.iter.ordering.EnhancedComparatorImpl
 
last(Fn<? super T, ? extends T>) - Static method in class no.motif.Iterate
Using a function which takes an object and returns another object of the same type, recursively call this function until it yields null, and ultimately yield the last object.
last(int) - Static method in class no.motif.Strings
Get at most a given amount of the last characters of strings.
last() - Method in interface no.motif.types.Elements
Gets the last element.
lastIndexOf(char) - Static method in class no.motif.Strings
Yields index position of last occurence of a char, or null if the char cannot be found.
lastIndexOf(String) - Static method in class no.motif.Strings
Yields index position of last occurence of a substring, or null if the substring cannot be found.
LazyVal<V> - Interface in no.motif.f.alias
A LazyVal can be implemented in place of an Fn0 to communicate that the value yielded from the function is a lazily calculated.
length - Static variable in class no.motif.Strings
Gives the length of a string, i.e.
lessThan(T) - Static method in class no.motif.Base
Predicate evaluating if values are less than a given value.
letter - Static variable in class no.motif.Chars
Determines if a character is a letter.
letterOrDigit - Static variable in class no.motif.Chars
Determines if a character is a letter or a digit.
Longs - Class in no.motif
 
longValue - Static variable in class no.motif.Longs
Yields the long value of any number.
lowerCased - Static variable in class no.motif.Strings
Convert a string to lower case.

M

map(Fn<? super T, O>) - Method in class no.motif.iter.PreparedIterable
 
map(Fn<? super V, O>) - Method in interface no.motif.single.A
Map the contained to another value.
map(Predicate<? super O>, Fn<? super V, O>) - Method in interface no.motif.single.A
Map the value to another value.
map(Fn<? super V, O>) - Method in class no.motif.single.Optional
Map this Optional to another type of Optional.
map(Predicate<? super O>, Fn<? super V, O>) - Method in class no.motif.single.Optional
Map this Optional to another type of Optional.
map(Fn<? super V, O>) - Method in class no.motif.single.Optional.None
 
map(Predicate<? super O>, Fn<? super V, O>) - Method in class no.motif.single.Optional.None
 
map(Fn<? super V, O>) - Method in class no.motif.single.Optional.Some
 
map(Predicate<? super O>, Fn<? super V, O>) - Method in class no.motif.single.Optional.Some
 
map(Fn<? super T, O>) - Method in interface no.motif.types.Elements
 
map(Fn<? super T, O>) - Method in interface no.motif.types.Mappable
Apply a function on any contained element(s), returning the result in a new mappable container.
mapBy(Fn<? super T, P>) - Method in interface no.motif.types.YieldsJavaCollection
Get a Map where all keys are derived by applying the given Fn on all elements.
Mappable<T> - Interface in no.motif.types
A type able to map itself to another Mappable
Mapper<I,O> - Interface in no.motif.f.alias
A Mapper can be implemented in place of an Fn to communicate that the functions maps values 1:1 to other values.
Maps - Class in no.motif
Operations on maps and map entries.
MapViewOfFn<K,V> - Class in no.motif.maps
A Map view of an Fn.
MapViewOfFn(Fn<K, V>) - Constructor for class no.motif.maps.MapViewOfFn
 
matches(String) - Static method in class no.motif.Strings
Does a regular expression match on strings.
message - Static variable in class no.motif.Exceptions
Get the message of a Throwable.
multipliedBy(int) - Static method in class no.motif.Ints
 
multipliedBy(long) - Static method in class no.motif.Longs
 
multiply - Static variable in class no.motif.Ints
 
multiply - Static variable in class no.motif.Longs
 

N

name - Static variable in class no.motif.Enums
Gets the name of enum constants.
name - Static variable in class no.motif.Reflect
Get the name of a Member, e.g.
newInstance() - Static method in class no.motif.Reflect
Create instances of classes using the no-arg constructor.
next() - Method in class no.motif.iter.EmptyIterator
 
next() - Method in class no.motif.iter.PreIndexedContentIterator
 
next() - Method in class no.motif.iter.SimpleIterator
 
next() - Method in class no.motif.iter.SingularIterator
 
next() - Static method in class no.motif.Iterate
 
nextIfAvailable() - Method in class no.motif.iter.SimpleIterator
 
no() - Static method in class no.motif.f.Predicate.Always
 
no.motif - package no.motif
 
no.motif.f - package no.motif.f
 
no.motif.f.alias - package no.motif.f.alias
 
no.motif.f.base - package no.motif.f.base
 
no.motif.f.combine - package no.motif.f.combine
 
no.motif.f.impl - package no.motif.f.impl
 
no.motif.iter - package no.motif.iter
 
no.motif.iter.boxing - package no.motif.iter.boxing
 
no.motif.iter.ordering - package no.motif.iter.ordering
 
no.motif.maps - package no.motif.maps
 
no.motif.single - package no.motif.single
 
no.motif.types - package no.motif.types
 
nonblank - Static variable in class no.motif.Strings
A nonblank string has at least one character, and must contain at least one character which is not whitespace.
nonblankAllChars(Predicate<Character>) - Static method in class no.motif.Strings
Predicate verifying that strings are not blank and each char satisfies a given predicate.
none() - Static method in class no.motif.Iterate
 
none() - Static method in class no.motif.Singular
 
NOP - Class in no.motif
A few no-operation implementations.
not(T) - Static method in class no.motif.Base
Shorthand for not(equalTo(o)).
not(Predicate<T>) - Static method in class no.motif.Base
Negates a predicate.
notNull - Static variable in class no.motif.Base
Yields true for all non-null values.
NotPossibleOnMapViewOfFn - Exception in no.motif.maps
 
NullIfEitherArgIsNull<I1,I2,O> - Class in no.motif.f.base
A convenient base implementation of Fn2 which yields null if one or both arguments is null.
NullIfEitherArgIsNull() - Constructor for class no.motif.f.base.NullIfEitherArgIsNull
 
nullsFirst() - Method in interface no.motif.iter.ordering.EnhancedComparator
 
nullsFirst() - Method in class no.motif.iter.ordering.EnhancedComparatorImpl
 
nullsLast() - Method in interface no.motif.iter.ordering.EnhancedComparator
 
nullsLast() - Method in class no.motif.iter.ordering.EnhancedComparatorImpl
 
numeric - Static variable in class no.motif.Strings
A numeric string must have at least one character, and all of them must be digits.

O

odd - Static variable in class no.motif.Ints
 
odd - Static variable in class no.motif.Longs
 
of(V) - Method in class no.motif.f.PartialApplication
 
of(Fn0<V>) - Method in class no.motif.f.PartialApplication
 
of(int, T) - Static method in class no.motif.single.Elem
 
on(CharSequence) - Static method in class no.motif.Iterate
Manipulate CharSequences/Strings as if they were iterables of Characters.
on(T...) - Static method in class no.motif.Iterate
Work with multiple elements.
on(byte[]) - Static method in class no.motif.Iterate
Work with multiple bytes.
on(Map<K, V>) - Static method in class no.motif.Iterate
 
on(Iterable<T>) - Static method in class no.motif.Iterate
Work with multiple elements.
Optional<V> - Class in no.motif.single
An Optional wraps a value that is either defined or undefined.
optional(V) - Static method in class no.motif.Singular
Wrap an object or null in an Optional.
optional(Predicate<? super V>, V) - Static method in class no.motif.Singular
Wrap an object in an Optional, using a predicate to determine if the value should be treated as defined.
Optional.None<V> - Class in no.motif.single
Wrapper for an 'undefined' value.
Optional.Some<V> - Class in no.motif.single
Wrapper for a 'defined' value.
or(E) - Method in class no.motif.Enums.FromName
 
or(T) - Method in class no.motif.f.combine.Disjunction
 
or(Predicate<? super T>) - Method in class no.motif.f.combine.Disjunction
 
or(Fn0<Boolean>) - Method in class no.motif.f.combine.DisjunctionPremise
 
or(Optional<V>) - Method in class no.motif.single.Optional.None
 
or(Iterable<V>) - Method in class no.motif.single.Optional.None
 
or(Optional<V>) - Method in class no.motif.single.Optional
 
or(Iterable<V>) - Method in class no.motif.single.Optional
 
or(Optional<V>) - Method in class no.motif.single.Optional.Some
 
or(Iterable<V>) - Method in class no.motif.single.Optional.Some
 
orElse(T) - Method in class no.motif.f.base.FalseIfNull
 
orElse(I1, I2) - Method in class no.motif.f.base.NullIfEitherArgIsNull
The function implementation.
orElse(O) - Method in class no.motif.f.combine.When
 
orElse(Fn<? super I, ? extends O>) - Method in class no.motif.f.combine.When
 
orElse(V) - Method in class no.motif.single.Optional.None
 
orElse(V) - Method in class no.motif.single.Optional
 
orElse(V) - Method in class no.motif.single.Optional.Some
 
orElseThrow(Fn0<? extends X>) - Method in class no.motif.single.Optional.None
 
orElseThrow(Fn0<? extends X>) - Method in class no.motif.single.Optional
 
orElseThrow(Fn0<? extends X>) - Method in class no.motif.single.Optional.Some
 
orNull() - Method in class no.motif.single.Optional.None
 
orNull() - Method in class no.motif.single.Optional
Shortcut for .orElse(null)
orNull() - Method in class no.motif.single.Optional.Some
 

P

packageName - Static variable in class no.motif.Reflect
Get the package name of a Class.
PartialApplication<FN extends no.motif.f.FnType,V,PARTIALFN extends no.motif.f.FnType> - Class in no.motif.f
A PartialApplication is used to build more specialized functions from another function.
partially(Fn2<I1, I2, O>) - Static method in class no.motif.f.Apply
partially(Fn<I, O>) - Static method in class no.motif.f.Apply
partiallyApply(FN, Fn0<V>) - Method in class no.motif.f.PartialApplication
Do the partial application, i.e.
pow - Static variable in class no.motif.Decimals
 
Predicate<T> - Interface in no.motif.f
A predicate is a function taking a value of type T, and evaluates it as either true or false.
Predicate.Always<T> - Class in no.motif.f
 
PreIndexedContentIterator<T> - Class in no.motif.iter
Base implementation for iterating over elements retrieved using an incrementing index, where the start and end indexes are known beforehand.
PreIndexedContentIterator(int) - Constructor for class no.motif.iter.PreIndexedContentIterator
 
PreIndexedContentIterator(int, int) - Constructor for class no.motif.iter.PreIndexedContentIterator
 
Premise - Interface in no.motif.f.alias
A Premise is the same as a Fn0<Boolean>, e.g.
PreparedIterable<T> - Class in no.motif.iter
This class wraps an arbitrary Iterable and provides access to various operations to view and/or transform the wrapped iterable.
PreparedIterable(Iterable<T>) - Constructor for class no.motif.iter.PreparedIterable
 
prepend(T) - Method in class no.motif.iter.PreparedIterable
 
prepend(Iterable<? extends T>) - Method in class no.motif.iter.PreparedIterable
 
prepend(Iterable<? extends V>) - Method in class no.motif.single.Optional
 
prepend(V) - Method in class no.motif.single.Optional
 
prepend(String) - Static method in class no.motif.Strings
Create a new strings by prepending a prefix.
prepend(T) - Method in interface no.motif.types.Prependable
Prepend one element.
prepend(Iterable<? extends T>) - Method in interface no.motif.types.Prependable
Prepend several elements.
Prependable<T> - Interface in no.motif.types
A container which can have additional elements prepended.
print(PrintStream) - Static method in class no.motif.IO
Print to a PrintStream.
println(PrintStream) - Static method in class no.motif.IO
Print to a PrintStream, each call adding a line feed at the end.
put(K1, V2) - Method in class no.motif.maps.CombinedMapsView
 
put(K, V) - Method in class no.motif.maps.MapViewOfFn
 
putAll(Map<? extends K1, ? extends V2>) - Method in class no.motif.maps.CombinedMapsView
 
putAll(Map<? extends K, ? extends V>) - Method in class no.motif.maps.MapViewOfFn
 

R

ReadOnlyIterator<T> - Class in no.motif.iter
Convenient base class for Iterators not meant to remove objects while iterating.
ReadOnlyIterator() - Constructor for class no.motif.iter.ReadOnlyIterator
 
reduce(V, Fn2<? super V, ? super T, ? extends V>) - Method in interface no.motif.types.Reducible
Reduce the element(s) into one value.
Reducer<I1,I2,O> - Interface in no.motif.f.alias
A Reducer can be implemented in place of an Fn2 to communicate that the functions reduces two values to one.
Reducible<T> - Interface in no.motif.types
A type, usually a container of multiple values, which is reducible to some single value.
Reflect - Class in no.motif
Operations for doing reflection.
remove() - Method in class no.motif.iter.ReadOnlyIterator
Method is not supported and throws UnsupportedOperationException if called.
remove(Object) - Method in class no.motif.maps.CombinedMapsView
 
remove(Object) - Method in class no.motif.maps.MapViewOfFn
 
repeat(int) - Method in class no.motif.iter.PreparedIterable
 
repeat(int) - Static method in class no.motif.Strings
Repeats a string a given amount of times.
repeat(int, String) - Static method in class no.motif.Strings
Repeats a string, insterting given separator, a given amount of times.
repeat(int) - Method in interface no.motif.types.Elements
 
repeat(int) - Method in interface no.motif.types.Repeatable
Repeat the contained elements a given amount of times.
Repeatable<T> - Interface in no.motif.types
 
resolve(Predicate<? super V>, V) - Static method in class no.motif.single.Optional
*** Not part of the public API! ***
reversed() - Method in interface no.motif.iter.ordering.EnhancedComparator
 
reversed() - Method in class no.motif.iter.ordering.EnhancedComparatorImpl
 
reversed - Static variable in class no.motif.Strings
Yields the given string with its characters in reversed order.
rounded - Static variable in class no.motif.Ints
 
rounded - Static variable in class no.motif.Longs
 
run() - Method in class no.motif.f.combine.RunnableChain
 
runnable - Static variable in class no.motif.NOP
A Runnable which does nothing and its run-method immediately returns.
RunnableChain - Class in no.motif.f.combine
 
RunnableChain(Runnable, Runnable) - Constructor for class no.motif.f.combine.RunnableChain
 

S

setDefaultEncoding() - Static method in class no.motif.Implicits
 
setDefaultLocale() - Static method in class no.motif.Implicits
 
setDefaultTimeZone() - Static method in class no.motif.Implicits
 
setEncoding(Fn0<String>) - Static method in class no.motif.Implicits
 
setLocale(Fn0<Locale>) - Static method in class no.motif.Implicits
 
setTimeMillis(Fn0<Long>) - Static method in class no.motif.Implicits
 
setTimeZone(Fn0<TimeZone>) - Static method in class no.motif.Implicits
 
SideEffectable<T> - Interface in no.motif.types
A container which can pass its element(s) to a Dos, in order to compute side effects.
SimpleIterator<T> - Class in no.motif.iter
SimpleIterator offers an easier way to implement the Iterator interface, by requiring only one method, SimpleIterator.nextIfAvailable(), to be implemented instead of both hasNext() and next().
SimpleIterator() - Constructor for class no.motif.iter.SimpleIterator
 
simpleName - Static variable in class no.motif.Reflect
Get the simple name of a Class.
Singular - Class in no.motif
Operations for working with single values.
SingularIterator<V> - Class in no.motif.iter
Wraps a single object in an iterator.
SingularIterator(V) - Constructor for class no.motif.iter.SingularIterator
 
size - Static variable in class no.motif.Iterate
Yields the size of collections, or 0 if the collection is null.
size() - Method in class no.motif.maps.CombinedMapsView
 
size() - Method in class no.motif.maps.MapViewOfFn
 
some(V) - Static method in class no.motif.single.Optional
*** Not part of the public API! ***
sorted(Comparator<? super T>) - Method in interface no.motif.types.YieldsJavaCollection
Get a sorted immutable List of the contents of this iterable.
sortedBy(Fn<? super T, P>) - Method in interface no.motif.types.YieldsJavaCollection
Get a sorted immutable List of the contents of this iterable.
split(Fn<? super V, ? extends Iterable<O>>) - Method in interface no.motif.single.A
Split the value into multiple values.
split(Fn<? super V, ? extends Iterable<O>>) - Method in class no.motif.single.Optional.None
 
split(Fn<? super V, ? extends Iterable<O>>) - Method in class no.motif.single.Optional.Some
 
split(Fn<? super V, ? extends Iterable<O>>) - Method in class no.motif.single.Optional
Split an optional value, if defined, into multiple values.
SplitOnCharacter - Class in no.motif.iter
 
SplitOnCharacter(String, Predicate<? super Character>) - Constructor for class no.motif.iter.SplitOnCharacter
 
SplitOnSubstring - Class in no.motif.iter
 
SplitOnSubstring(String, String) - Constructor for class no.motif.iter.SplitOnSubstring
 
splittingOn(String) - Static method in class no.motif.Strings
Split a string on each occurence of a substring.
splittingOn(char) - Static method in class no.motif.Strings
Split a string on each occurence of a char delimiter.
splittingOn(Predicate<? super Character>) - Static method in class no.motif.Strings
Split a string into several on any character passing the given Character predicate.
startsWith(String) - Static method in class no.motif.Strings
Determines if a string starts with a given prefix string.
Strings - Class in no.motif
Functions operating on strings.
substring(int, int) - Static method in class no.motif.Strings
Extract substring from strings.
substring(Fn<? super String, Integer>, Fn<? super String, Integer>) - Static method in class no.motif.Strings
 
subtract(int) - Static method in class no.motif.Ints
 
subtract(long) - Static method in class no.motif.Longs
 
sum - Static variable in class no.motif.Ints
 
sum - Static variable in class no.motif.Longs
 

T

tail() - Method in class no.motif.iter.PreparedIterable
 
tail() - Method in interface no.motif.types.Elements
 
tail() - Method in interface no.motif.types.HeadAndTail
Gets the tail, i.e.
take(int) - Method in class no.motif.iter.PreparedIterable
 
take(int) - Method in interface no.motif.types.Elements
Take only a maximum amount of elements.
takeUntil(Predicate<? super T>) - Method in class no.motif.iter.PreparedIterable
 
takeUntil(Predicate<? super T>) - Method in interface no.motif.types.Elements
Take elements until a given predicate evaluates to true.
takeWhile(Predicate<? super T>) - Method in class no.motif.iter.PreparedIterable
 
takeWhile(Predicate<? super T>) - Method in interface no.motif.types.Elements
Take elements as long as a given predicate evaluates to true.
the(V) - Static method in class no.motif.Singular
This will create A<V>, for a value which is not optional, but you want to access the API for doing operations as with an Optional.
then(Do<? super T>) - Method in class no.motif.f.combine.DoChain
Append another sideeffect action to the chain.
then(Fn<? super O, N>) - Method in class no.motif.f.combine.Fn2Chain
 
then(Fn<? super O, Y>) - Method in class no.motif.f.combine.FnChain
Append a function to the chain.
then(Do<? super O>) - Method in class no.motif.f.combine.FnChain
Append a Do (sideeffect) on the output from the last Fn in the chain.
then(Runnable) - Method in class no.motif.f.combine.RunnableChain
 
Throw<I1,I2,O> - Class in no.motif.f.impl
 
Throw(Exception) - Constructor for class no.motif.f.impl.Throw
 
to(Class<E>) - Static method in class no.motif.Enums
Resolve enums from constant names.
toChars - Static variable in class no.motif.Strings
Splits a string into characters.
toDouble - Static variable in class no.motif.Strings
Converts a string to a double value using Double.valueOf(String).
toInt - Static variable in class no.motif.Strings
Converts a string to a int value using Integer.valueOf(String).
toIterable(Fn<I, O[]>) - Static method in class no.motif.Iterate
A bridge from functions yielding arrays, to functions yielding iterables.
toLong - Static variable in class no.motif.Strings
Converts a string to a long value using Long.valueOf(String).
toSameName(Class<E>) - Static method in class no.motif.Enums
Convert from one enum to another by name.
toString - Static variable in class no.motif.Base
Yields the string representation of any object.
toString() - Method in class no.motif.single.Elem
 
toString() - Method in class no.motif.single.Optional.None
 
toString() - Method in class no.motif.single.Optional.Some
 
trimmed - Static variable in class no.motif.Strings
Trims a string, removing all leading and trailing whitespace.
type() - Static method in class no.motif.Reflect
This is the same as Reflect.getClass, with the additional possible typing of the yielded Classes.

U

upperCased - Static variable in class no.motif.Strings
Convert a string to upper case
useSystemClock() - Static method in class no.motif.Implicits
 

V

value() - Static method in class no.motif.Maps
Gets the value of a map entry.
value - Variable in class no.motif.single.Elem
 
valueIn(Map<?, ? extends V>) - Static method in class no.motif.Maps
Evaluate if objects are a value contained in the given Map.
values() - Method in class no.motif.maps.CombinedMapsView
 
values() - Method in class no.motif.maps.MapViewOfFn
 

W

when(Predicate<? super I>, Fn<? super I, ? extends O>) - Static method in class no.motif.Base
Creates a "guarded" Fn using a Predicate to evaluate if the argument should be passed to the wrapped Fn.
When<I,O> - Class in no.motif.f.combine
 
When(Predicate<? super I>, Fn<? super I, ? extends O>) - Constructor for class no.motif.f.combine.When
 
where(Fn<T, P>, Predicate<? super P>) - Static method in class no.motif.Base
Compose a predicate from taking the result of a function and apply it to another predicate.
Where<T,P> - Class in no.motif.f.combine
 
Where(Fn<T, P>, Predicate<? super P>) - Constructor for class no.motif.f.combine.Where
 
whitespace - Static variable in class no.motif.Chars
Determines if a character is whitespace.
with(T) - Method in class no.motif.f.combine.DoChain
 
with(T) - Method in interface no.motif.f.Do
 
with(I1) - Method in class no.motif.f.impl.Throw
 
withIndex(int) - Static method in class no.motif.single.Elem
 
writeTo(OutputStream) - Static method in class no.motif.IO
Write bytes to an OutputStream.

Y

yes() - Static method in class no.motif.f.Predicate.Always
 
YieldsJavaCollection<T> - Interface in no.motif.types
Defines the methods which bridges Motif back to the Java Collection Framework.
$ A B C D E F G H I J K L M N O P R S T U V W Y 
Skip navigation links

Copyright © 2016. All Rights Reserved.