Package net.sf.jga.fn.algorithm

Provides utilities that apply Functors and Predicates to common situations.

See:
          Description

Interface Summary
Accumulate.Visitor Interface for classes that may interpret an Accumulate functor.
Count.Visitor Interface for classes that may interpret an Count functor.
ElementOf.Visitor Interface for classes that may interpret an ElementOf functor.
Find.Visitor Interface for classes that may interpret an Find functor.
FindAdjacent.Visitor Interface for classes that may interpret an FindAdjacent functor.
FindElement.Visitor Interface for classes that may interpret a FindElement functor
FindMismatch.Visitor Interface for classes that may interpret a FindMismatch functor
FindRepeated.Visitor Interface for classes that may interpret an FindRepeated functor.
FindSequence.Visitor Interface for classes that may interpret a FindSequence functor
ForEach.Visitor Interface for classes that may interpret an ForEach functor.
MaxValue.Visitor Interface for classes that may interpret an MaxValue functor.
Merge.Visitor Interface for classes that may interpret an Merge functor.
MinValue.Visitor Interface for classes that may interpret an MinValue functor.
RemoveAll.Visitor Interface for classes that may interpret an RemoveAll functor.
ReplaceAll.Visitor Interface for classes that may interpret an ReplaceAll functor.
TransformAdjacent.Visitor Interface for classes that may interpret an TransformAdjacent functor.
TransformBinary.Visitor Interface for classes that may interpret an Transform functor.
TransformUnary.Visitor Interface for classes that may interpret an TransformUnary functor.
Unique.Visitor Interface for classes that may interpret an Unique functor.
 

Class Summary
Accumulate<T> Applies a BinaryFunctor to each element in an iteration, and returns the final result.
Count<T> Counts values in an iteration.
ElementOf<T> BinaryPredicate that returns true if a given value is an element of a given collection.
Find<T> Locates values in an iteration.
FindAdjacent<T> Locates pairs of adjacent values in an iteration.
FindElement<T> Locates values from a given collection in an iteration.
FindIteratorFunctor<T> Abstract base class for functors that take an input iterator and return a FindIterator.
FindMismatch<T> Locates the next element in an iteration that is not equal to the corresponding element in a given collection.
FindRepeated<T> Locates runs of repeated values in an iteration.
FindSequence<T> Locates a sequence that matches the given pattern.
ForEach<T,R> Applies a UnaryFunctor to each element in an iteration, and returns the final result.
LookAheadFunctor<T> Abstract base class for functors that take an input iterator and return a LookAheadIterator.
MaxValue<T> Identifies the largest value in a collection.
Merge<T> Returns an iterator based on the two input iterators that will merge their contents.
MinValue<T> Identifies the smallest value in a collection.
RemoveAll<T> Removes instances from an iteration.
ReplaceAll<T> Replaces all instances in an iteration that pass the given test with the given value.
TransformAdjacent<T,R> Applies a UnaryFunctor to every element in an iteration, and iterates over the results.
TransformBinary<T1,T2,R> Applies a BinaryFunctor to corresponding elements in a pair of iterations, and iterates over the results.
TransformUnary<T,R> Applies a UnaryFunctor to every element in an iteration, and iterates over the results.
Unique<T> Returns an iterator based on the input iterator that will not yield the same value twice in succession.
 

Package net.sf.jga.fn.algorithm Description

Provides utilities that apply Functors and Predicates to common situations.



Copyright © 2002-2005 David A. Hall. All Rights Reserved.