net.sf.jga.fn.algorithm |
Provides utilities that apply Functors and Predicates to common situations.
|
Java Source File Name | Type | Comment |
Accumulate.java | Class | Applies a BinaryFunctor to each element in an iteration, and returns the
final result. |
Count.java | Class | Counts values in an iteration.
Copyright © 2003-2005 David A. |
ElementOf.java | Class | BinaryPredicate that returns true if a given value is an element of a
given collection.
Copyright © 2003-2005 David A. |
Find.java | Class | Locates values in an iteration.
Copyright © 2003-2005 David A. |
FindAdjacent.java | Class | Locates pairs of adjacent values in an iteration.
Copyright © 2003-2005 David A. |
FindElement.java | Class | Locates values from a given collection in an iteration.
To Serialize a FindElement, the generic parameter T must be serializable.
Copyright © 2003-2005 David A. |
FindIteratorFunctor.java | Class | Abstract base class for functors that take an input iterator and return a
FindIterator. |
FindMismatch.java | Class | Locates the next element in an iteration that is not equal to the
corresponding element in a given collection.
To Serialize a FindMismatch, the generic parameter T must be serializable.
Copyright © 2003-2005 David A. |
FindRepeated.java | Class | Locates runs of repeated values in an iteration.
Copyright © 2003-2005 David A. |
FindSequence.java | Class | Locates a sequence that matches the given pattern.
To Serialize a FindSequence, the generic parameter T must be serializable.
Copyright © 2003-2005 David A. |
ForEach.java | Class | Applies a UnaryFunctor to each element in an iteration, and returns the
final result. |
LookAheadFunctor.java | Class | Abstract base class for functors that take an input iterator and return a
LookAheadIterator. |
MaxValue.java | Class | Identifies the largest value in a collection.
To serialize a MaxValue, the comparator passed at construction must be
Serializable.
Copyright © 2003-2005 David A. |
Merge.java | Class | Returns an iterator based on the two input iterators that will merge their
contents. |
MinValue.java | Class | Identifies the smallest value in a collection.
To serialize a MinValue, the comparator passed at construction must be
Serializable.
Copyright © 2003-2005 David A. |
RemoveAll.java | Class | Removes instances from an iteration. |
ReplaceAll.java | Class | Replaces all instances in an iteration that pass the given test with the
given value.
To Serialize a ReplaceAll, the generic parameter T must be serializable.
Copyright © 2003-2005 David A. |
TransformAdjacent.java | Class | Applies a UnaryFunctor to every element in an iteration, and iterates
over the results.
Copyright © 2004-2005 David A. |
TransformBinary.java | Class | Applies a BinaryFunctor to corresponding elements in a pair of iterations,
and iterates over the results.
Copyright © 2003-2005 David A. |
TransformUnary.java | Class | Applies a UnaryFunctor to every element in an iteration, and iterates
over the results.
Copyright © 2003-2005 David A. |
Unique.java | Class | Returns an iterator based on the input iterator that will not yield the
same value twice in succession.
Copyright © 2003-2005 David A. |