A B C E F G I L M N O P R S T U X Z

A

Adapt - Class in uk.co.jezuk.mango
The Mango Library Object Adaptors

Provides methods to adapt instance and static methods into Functions.
Algorithms - Class in uk.co.jezuk.mango
The Mango Library Algorithms

All(Object...) - Static method in class uk.co.jezuk.mango.Predicates
A Predicate which returns true if all of the supplied Predicates are true.
All(Collection<Predicate<T>>) - Static method in class uk.co.jezuk.mango.Predicates
 
All(Iterator<Predicate<T>>) - Static method in class uk.co.jezuk.mango.Predicates
 
And(BinaryPredicate<T1, T2>, BinaryPredicate<T1, T2>) - Static method in class uk.co.jezuk.mango.BinaryPredicates
A BinaryPredicate which returns the logical AND of two other BinaryPredicate.
And(Predicate<T>, Predicate<T>) - Static method in class uk.co.jezuk.mango.Predicates
A Predicate which returns the logical AND of two other Predicate.
Any(Object...) - Static method in class uk.co.jezuk.mango.Predicates
A Predicate which returns true if any one of the supplied Predicates are true.
Any(Collection<Predicate<T>>) - Static method in class uk.co.jezuk.mango.Predicates
 
Any(Iterator<Predicate<T>>) - Static method in class uk.co.jezuk.mango.Predicates
 
ArgumentMethod(String) - Static method in class uk.co.jezuk.mango.Adapt
Creates a Function which will call a method on the object passed as the argument to Function.fn method.
ArgumentMethod(String, Class<T>) - Static method in class uk.co.jezuk.mango.Adapt
 
ArgumentMethod(String, Class<T>, Class<R>) - Static method in class uk.co.jezuk.mango.Adapt
 
ArrayIterator(T[]) - Static method in class uk.co.jezuk.mango.Iterators
Iterates over an array of objects.

B

BinaryFunction<T1,T2,R> - Interface in uk.co.jezuk.mango
A BinaryFunction is some function taking two arguments - fn(T1 x, T2 y).
BinaryFunctions - Class in uk.co.jezuk.mango
The Mango Library Binary Functions

A BinaryFunction is some function taking two arguments - fn(T1 x, T2 y).
BinaryPredicate<T1,T2> - Interface in uk.co.jezuk.mango
A BinaryPredicate is some function taking two arguments - fn(x, y) and returning the result of some test.
BinaryPredicates - Class in uk.co.jezuk.mango
The Mango Library Binary Predicates

A BinaryPredicate is some function taking two arguments - fn(x, y) and returning the result of some test.
Bind - Class in uk.co.jezuk.mango
The Mango Library Function Binders

Function and Predicate binding adaptors.
BoundedIterator(Iterator<? extends T>, int, int) - Static method in class uk.co.jezuk.mango.Iterators
A BoundedIterator enumerates of a subset of a collection, in the range [start, end).
BoundedIterator(List<? extends T>, int, int) - Static method in class uk.co.jezuk.mango.Iterators
 

C

ChainIterator(Object...) - Static method in class uk.co.jezuk.mango.Iterators
ChainIterator creates an iterator which will traverse each of the iterables in turn.
Collections - Class in uk.co.jezuk.mango
The Mango Library Collection Utilities
Collections.MapBuilder<K,V> - Interface in uk.co.jezuk.mango
 
Compose(BinaryFunction<R1, R2, R>, Function<T1, R1>, Function<T2, R2>) - Static method in class uk.co.jezuk.mango.BinaryFunctions
Compose is a function adaptor.
Compose(Function<T2, R>, Function<T, T2>) - Static method in class uk.co.jezuk.mango.Functions
Compose is a unary function adaptor.
Constant(boolean) - Static method in class uk.co.jezuk.mango.BinaryPredicates
A BinaryPredicate which returns a precomputed constant value
Constant(R) - Static method in class uk.co.jezuk.mango.Functions
Returns the initial value, regardless of the argument passed to the function
Constant(boolean) - Static method in class uk.co.jezuk.mango.Predicates
A Predicate which returns a precomputed constant value
ConstantSequence(T) - Static method in class uk.co.jezuk.mango.Generators
Returns seed, seed, ...
count(Collection<? extends T>, T) - Static method in class uk.co.jezuk.mango.Algorithms
Count computes the number of elements in the sequence that are equal to value.
count(Collection<? extends T>, int, int, T) - Static method in class uk.co.jezuk.mango.Algorithms
 
count(List<? extends T>, int, int, T) - Static method in class uk.co.jezuk.mango.Algorithms
 
count(Iterator<? extends T>, T) - Static method in class uk.co.jezuk.mango.Algorithms
 
countIf(Collection<T>, Predicate<? super T>) - Static method in class uk.co.jezuk.mango.Algorithms
CountIf is similar to Count, but more general.
countIf(Collection<T>, int, int, Predicate<? super T>) - Static method in class uk.co.jezuk.mango.Algorithms
 
countIf(List<T>, int, int, Predicate<? super T>) - Static method in class uk.co.jezuk.mango.Algorithms
 
countIf(Iterator<T>, Predicate<? super T>) - Static method in class uk.co.jezuk.mango.Algorithms
 
countIfNot(Collection<T>, Predicate<? super T>) - Static method in class uk.co.jezuk.mango.Algorithms
CountIfNot is the complement of CountIf.
countIfNot(Collection<T>, int, int, Predicate<? super T>) - Static method in class uk.co.jezuk.mango.Algorithms
 
countIfNot(List<T>, int, int, Predicate<? super T>) - Static method in class uk.co.jezuk.mango.Algorithms
 
countIfNot(Iterator<T>, Predicate<? super T>) - Static method in class uk.co.jezuk.mango.Algorithms
 

E

EqualTo() - Static method in class uk.co.jezuk.mango.BinaryPredicates
BinaryPredicate testing for equality.

F

False() - Static method in class uk.co.jezuk.mango.BinaryPredicates
BinaryPredicates that always returns false
False() - Static method in class uk.co.jezuk.mango.Predicates
A Predicate which always returns false
find(Collection<? extends T>, T) - Static method in class uk.co.jezuk.mango.Algorithms
Searchs the sequence travesed by the Iterator for the given value.
find(Collection<? extends T>, int, int, T) - Static method in class uk.co.jezuk.mango.Algorithms
 
find(List<? extends T>, int, int, T) - Static method in class uk.co.jezuk.mango.Algorithms
 
find(Iterator<? extends T>, T) - Static method in class uk.co.jezuk.mango.Algorithms
 
findIf(Collection<T>, Predicate<? super T>) - Static method in class uk.co.jezuk.mango.Algorithms
Searchs the sequence traversed by the Iterator and returns the first object encountered for which the Predicate returns true.
findIf(Collection<T>, int, int, Predicate<? super T>) - Static method in class uk.co.jezuk.mango.Algorithms
 
findIf(List<T>, int, int, Predicate<? super T>) - Static method in class uk.co.jezuk.mango.Algorithms
 
findIf(Iterator<T>, Predicate<? super T>) - Static method in class uk.co.jezuk.mango.Algorithms
 
findIfNot(Collection<T>, Predicate<? super T>) - Static method in class uk.co.jezuk.mango.Algorithms
Searchs the sequence traversed by the Iterator and returns the first object encountered for which the Predicate returns false.
findIfNot(Collection<T>, int, int, Predicate<? super T>) - Static method in class uk.co.jezuk.mango.Algorithms
 
findIfNot(List<T>, int, int, Predicate<? super T>) - Static method in class uk.co.jezuk.mango.Algorithms
 
findIfNot(Iterator<T>, Predicate<? super T>) - Static method in class uk.co.jezuk.mango.Algorithms
 
findPosition(Collection<? extends T>, T) - Static method in class uk.co.jezuk.mango.Algorithms
Searchs the sequence travesed by the Iterator for the given value.
findPosition(Collection<? extends T>, int, int, T) - Static method in class uk.co.jezuk.mango.Algorithms
 
findPosition(List<? extends T>, int, int, T) - Static method in class uk.co.jezuk.mango.Algorithms
 
findPosition(Iterator<? extends T>, T) - Static method in class uk.co.jezuk.mango.Algorithms
 
findPositionIf(Collection<T>, Predicate<? super T>) - Static method in class uk.co.jezuk.mango.Algorithms
 
findPositionIf(Collection<T>, int, int, Predicate<? super T>) - Static method in class uk.co.jezuk.mango.Algorithms
 
findPositionIf(List<T>, int, int, Predicate<? super T>) - Static method in class uk.co.jezuk.mango.Algorithms
 
findPositionIf(Iterator<T>, Predicate<? super T>) - Static method in class uk.co.jezuk.mango.Algorithms
 
First(BinaryFunction<T1, T2, R>, T1) - Static method in class uk.co.jezuk.mango.Bind
Adapts a BinaryFunction into a Function.
First(BinaryPredicate<T1, T2>, T1) - Static method in class uk.co.jezuk.mango.Bind
Special case which adapts a BinaryPredicate to a Predicate.
fn(T1, T2) - Method in interface uk.co.jezuk.mango.BinaryFunction
 
fn(T) - Method in interface uk.co.jezuk.mango.Function
 
fn() - Method in interface uk.co.jezuk.mango.Generator
 
forEach(Collection<T>, Function<? super T, R>) - Static method in class uk.co.jezuk.mango.Algorithms
The algorithm ForEach applies the function fn to each element in the iterator sequence.
forEach(Collection<T>, int, int, Function<? super T, R>) - Static method in class uk.co.jezuk.mango.Algorithms
 
forEach(List<T>, int, int, Function<? super T, R>) - Static method in class uk.co.jezuk.mango.Algorithms
 
forEach(Iterator<T>, Function<? super T, R>) - Static method in class uk.co.jezuk.mango.Algorithms
 
Function<T,R> - Interface in uk.co.jezuk.mango
A Function describes a function which takes one argument - fn(x).
Functions - Class in uk.co.jezuk.mango
The Mango Library Unary Functions

A Function describes a function which takes one argument - fn(x).
Functions() - Constructor for class uk.co.jezuk.mango.Functions
 

G

Generator<R> - Interface in uk.co.jezuk.mango
A Generator describes a function which takes no arguments fn().
GeneratorIterator(Generator<? extends T>) - Static method in class uk.co.jezuk.mango.Iterators
GeneratorIterator puts an iterator face onto a Generator object.
Generators - Class in uk.co.jezuk.mango
The Mango Library Generators

A Generator describes a function which takes no arguments fn().
Generators() - Constructor for class uk.co.jezuk.mango.Generators
 
GreaterThan() - Static method in class uk.co.jezuk.mango.BinaryPredicates
BinaryPredicate that returns true if x is greater than y.
GreaterThanEquals() - Static method in class uk.co.jezuk.mango.BinaryPredicates
BinaryPredicate that returns true if x is greater than or equal to y.

I

Identity() - Static method in class uk.co.jezuk.mango.Functions
The identity function.
IntegerSequence() - Static method in class uk.co.jezuk.mango.Generators
Returns Integer(seed), Integer(seed+1), Integer(seed+2) ...
IntegerSequence(int) - Static method in class uk.co.jezuk.mango.Generators
 
IntegerSequence(Integer) - Static method in class uk.co.jezuk.mango.Generators
 
intersection(Collection<? extends T>, Collection<? extends T>) - Static method in class uk.co.jezuk.mango.Algorithms
Algorithm intersection finds the common elements in both collections See http://en.wikipedia.org/wiki/Intersection_(set_theory)
intersection(Collection<? extends T>, Collection<? extends T>, C) - Static method in class uk.co.jezuk.mango.Algorithms
 
intersection(Iterator<? extends T>, Collection<? extends T>) - Static method in class uk.co.jezuk.mango.Algorithms
 
intersection(Iterator<? extends T>, Collection<? extends T>, C) - Static method in class uk.co.jezuk.mango.Algorithms
 
intersection(Iterator<? extends T>, Iterator<? extends T>) - Static method in class uk.co.jezuk.mango.Algorithms
 
intersection(Iterator<? extends T>, Iterator<? extends T>, C) - Static method in class uk.co.jezuk.mango.Algorithms
 
IsNull() - Static method in class uk.co.jezuk.mango.Predicates
A Predicate which checks whether the passed object reference is null.
Iterators - Class in uk.co.jezuk.mango
The Mango Library Iterators


L

LessThan() - Static method in class uk.co.jezuk.mango.BinaryPredicates
BinaryPredicate that returns true if x is less than y.
LessThanEquals() - Static method in class uk.co.jezuk.mango.BinaryPredicates
BinaryPredicate that returns true if x is less than or equal to y.
list(T...) - Static method in class uk.co.jezuk.mango.Collections
Method to directly initialise lists
List<String> list = Collections.list("fish", "prod", "nose");
is equivalent to
List<String> list = new ArrayList<String>();
list.add("fish");
list.add("prod");
list.add("nose");
list(Iterator<T>) - Static method in class uk.co.jezuk.mango.Collections
 
list(Collection<T>) - Static method in class uk.co.jezuk.mango.Collections
 

M

map(K, V) - Static method in class uk.co.jezuk.mango.Collections
MapBuilder provides a way to initialise maps directly.
map(K, V) - Method in interface uk.co.jezuk.mango.Collections.MapBuilder
 
Method(Object, String) - Static method in class uk.co.jezuk.mango.Adapt
Adapts member functions as Function objects, allowing them to be passed to algorithms.
Method(Object, String, Class<T>) - Static method in class uk.co.jezuk.mango.Adapt
 
Method(Object, String, Class<T>, Class<R>) - Static method in class uk.co.jezuk.mango.Adapt
 
Method(Class, String) - Static method in class uk.co.jezuk.mango.Adapt
Adapts static member functions as Function objects, allowing them to be passed to algorithms.
Method(Class, String, Class<T>) - Static method in class uk.co.jezuk.mango.Adapt
 
Method(Class, String, Class<T>, Class<R>) - Static method in class uk.co.jezuk.mango.Adapt
 

N

Nand(Predicate<T>, Predicate<T>) - Static method in class uk.co.jezuk.mango.Predicates
A Predicate which returns the logical NAND of two other Predicate.
Nor(Predicate<T>, Predicate<T>) - Static method in class uk.co.jezuk.mango.Predicates
A Predicate which returns the logical NOR of two other Predicate.
Not(BinaryPredicate<T1, T2>) - Static method in class uk.co.jezuk.mango.BinaryPredicates
A BinaryPredicate which is the logical negation of some other BinaryPredicate.
Not(Predicate<T>) - Static method in class uk.co.jezuk.mango.Predicates
A Predicate which is the logical negation of some other Predicate.
NotEqualTo() - Static method in class uk.co.jezuk.mango.BinaryPredicates
true if not(x.equals(y)), (x == null) && not(y == null) or not(x == null) && (y == null)
NotNull() - Static method in class uk.co.jezuk.mango.Predicates
A Predicate which checks whether the passed object reference is not null.
NullIterator() - Static method in class uk.co.jezuk.mango.Iterators
A NullIterator iterates over nothing.
NullSequence() - Static method in class uk.co.jezuk.mango.Generators
Always returns null

O

OneOf(Object...) - Static method in class uk.co.jezuk.mango.Predicates
A Predicate which returns true if only one of the supplied Predicates is true.
OneOf(Collection<Predicate<T>>) - Static method in class uk.co.jezuk.mango.Predicates
 
OneOf(Iterator<Predicate<T>>) - Static method in class uk.co.jezuk.mango.Predicates
 
Or(BinaryPredicate<T1, T2>, BinaryPredicate<T1, T2>) - Static method in class uk.co.jezuk.mango.BinaryPredicates
A BinaryPredicate which returns the logical OR of two other BinaryPredicate.
Or(Predicate<T>, Predicate<T>) - Static method in class uk.co.jezuk.mango.Predicates
A Predicate which returns the logical OR of two other Predicate.

P

partition(Collection<T>, Predicate<? super T>) - Static method in class uk.co.jezuk.mango.Algorithms
Partitions the supplied collections into two.
partition(Collection<T>, Predicate<? super T>, C) - Static method in class uk.co.jezuk.mango.Algorithms
 
partition(Collection<T>, int, int, Predicate<? super T>) - Static method in class uk.co.jezuk.mango.Algorithms
 
partition(Collection<T>, int, int, Predicate<? super T>, C) - Static method in class uk.co.jezuk.mango.Algorithms
 
partition(List<T>, int, int, Predicate<? super T>) - Static method in class uk.co.jezuk.mango.Algorithms
 
partition(List<T>, int, int, Predicate<? super T>, C) - Static method in class uk.co.jezuk.mango.Algorithms
 
partition(Iterator<T>, Predicate<? super T>) - Static method in class uk.co.jezuk.mango.Algorithms
 
partition(Iterator<T>, Predicate<? super T>, C) - Static method in class uk.co.jezuk.mango.Algorithms
 
Predicate<T> - Interface in uk.co.jezuk.mango
A Predicate is a special form of a Function, whose result represents the truth or otherwise of some condition.
Predicates - Class in uk.co.jezuk.mango
The Mango Library Unary Predicates

A Predicate is a special form of a Function, whose result represents the truth or otherwise of some condition.

R

remove(Collection<? extends T>, T) - Static method in class uk.co.jezuk.mango.Algorithms
Removes objects equal to value from the sequence.
remove(Collection<? extends T>, int, int, T) - Static method in class uk.co.jezuk.mango.Algorithms
 
remove(List<? extends T>, int, int, T) - Static method in class uk.co.jezuk.mango.Algorithms
 
remove(Iterator<? extends T>, T) - Static method in class uk.co.jezuk.mango.Algorithms
 
removeIf(Collection<T>, Predicate<? super T>) - Static method in class uk.co.jezuk.mango.Algorithms
Removes objects which match test from the sequence.
removeIf(Collection<T>, int, int, Predicate<? super T>) - Static method in class uk.co.jezuk.mango.Algorithms
 
removeIf(List<T>, int, int, Predicate<? super T>) - Static method in class uk.co.jezuk.mango.Algorithms
 
removeIf(Iterator<T>, Predicate<? super T>) - Static method in class uk.co.jezuk.mango.Algorithms
 
ReverseIterator(List<? extends T>) - Static method in class uk.co.jezuk.mango.Iterators
A ReverseIterator traverses a list from the end to the beginning, rather than the conventional beginning to end traversal your normal every day iterator performs.

S

Second(BinaryFunction<T1, T2, R>, T2) - Static method in class uk.co.jezuk.mango.Bind
Adapts a BinaryFunction into a Function.
Second(BinaryPredicate<T1, T2>, T2) - Static method in class uk.co.jezuk.mango.Bind
Special case which adapts a BinaryPredicate to a Predicate.
SelectingIterator(Iterator<T>, Predicate<? super T>) - Static method in class uk.co.jezuk.mango.Iterators
A SelectingIterator enumerates only those elements of a collection that match the supplied Predicate.
SingletonIterator(T) - Static method in class uk.co.jezuk.mango.Iterators
Iterates over a single object.
SkippingIterator(Iterator<T>, Predicate<? super T>) - Static method in class uk.co.jezuk.mango.Iterators
A SkippingIterator enumerates a sequence, stepping over the elements that match the supplied Predicate.
StringIterator(String) - Static method in class uk.co.jezuk.mango.Iterators
A StringIterator iterators over a String, returning each character in turn as a String of length 1.
symmetricDifference(Collection<? extends T>, Collection<? extends T>) - Static method in class uk.co.jezuk.mango.Algorithms
Algorithm symmetricDifference returns the elements that are on coll1 and not in coll2, and those elements in coll2 that are not in coll1.
symmetricDifference(Collection<? extends T>, Collection<? extends T>, C) - Static method in class uk.co.jezuk.mango.Algorithms
 
symmetricDifference(Iterator<? extends T>, Collection<? extends T>) - Static method in class uk.co.jezuk.mango.Algorithms
 
symmetricDifference(Iterator<? extends T>, Collection<? extends T>, C) - Static method in class uk.co.jezuk.mango.Algorithms
 
symmetricDifference(Iterator<? extends T>, Iterator<? extends T>) - Static method in class uk.co.jezuk.mango.Algorithms
 

T

TeeIterator(Iterator<T>, int) - Static method in class uk.co.jezuk.mango.Iterators
TeeIterator creates any number of copies of an iterator, each of which can be iterated seperately.
test(T1, T2) - Method in interface uk.co.jezuk.mango.BinaryPredicate
 
test(T) - Method in interface uk.co.jezuk.mango.Predicate
 
transform(Collection<T>, Function<? super T, R>) - Static method in class uk.co.jezuk.mango.Algorithms
The algorithm Transform applies the function fn to each element in the iterator sequence.
transform(Collection<T>, Function<? super T, R>, C) - Static method in class uk.co.jezuk.mango.Algorithms
 
transform(Collection<T>, int, int, Function<? super T, R>) - Static method in class uk.co.jezuk.mango.Algorithms
 
transform(Collection<T>, int, int, Function<? super T, R>, C) - Static method in class uk.co.jezuk.mango.Algorithms
 
transform(List<T>, int, int, Function<? super T, R>) - Static method in class uk.co.jezuk.mango.Algorithms
 
transform(List<T>, int, int, Function<? super T, R>, C) - Static method in class uk.co.jezuk.mango.Algorithms
 
transform(Iterator<T>, Function<? super T, R>) - Static method in class uk.co.jezuk.mango.Algorithms
 
transform(Iterator<T>, Function<? super T, R>, C) - Static method in class uk.co.jezuk.mango.Algorithms
 
TransformIterator(Iterator<T>, Function<? super T, R>) - Static method in class uk.co.jezuk.mango.Iterators
A TransfromIterator applies a Function to each element in the sequence, returning the the function result at each step.
True() - Static method in class uk.co.jezuk.mango.BinaryPredicates
BinaryPredicates that always returns true
True() - Static method in class uk.co.jezuk.mango.Predicates
A Predicate which always returns true

U

uk.co.jezuk.mango - package uk.co.jezuk.mango
 
unique(Collection<T>) - Static method in class uk.co.jezuk.mango.Algorithms
Removes duplicate elements.
unique(Collection<T>, int, int) - Static method in class uk.co.jezuk.mango.Algorithms
 
unique(List<T>, int, int) - Static method in class uk.co.jezuk.mango.Algorithms
 
unique(Iterator<T>) - Static method in class uk.co.jezuk.mango.Algorithms
 
unique(Collection<T>, Comparator<? super T>) - Static method in class uk.co.jezuk.mango.Algorithms
 
unique(Collection<T>, int, int, Comparator<? super T>) - Static method in class uk.co.jezuk.mango.Algorithms
 
unique(List<T>, int, int, Comparator<? super T>) - Static method in class uk.co.jezuk.mango.Algorithms
 
unique(Iterator<T>, Comparator<? super T>) - Static method in class uk.co.jezuk.mango.Algorithms
 

X

Xnor(Predicate<T>, Predicate<T>) - Static method in class uk.co.jezuk.mango.Predicates
A Predicate which returns the logical XNOR of two other Predicate.
Xor(Predicate<T>, Predicate<T>) - Static method in class uk.co.jezuk.mango.Predicates
A Predicate which returns the logical XOR of two other Predicate.

Z

ZipIterator(Object...) - Static method in class uk.co.jezuk.mango.Iterators
 

A B C E F G I L M N O P R S T U X Z

Copyright 2002-2010 JezUK Ltd.