Interface Functor

All Known Subinterfaces:
BinaryFunction<L,R,T>, BinaryFunctor<L,R>, BinaryPredicate<L,R>, BinaryProcedure<L,R>, Function<T>, NullaryFunctor, Predicate, Procedure, UnaryFunction<A,T>, UnaryFunctor<A>, UnaryPredicate<A>, UnaryProcedure<A>
All Known Implementing Classes:
AbstractLoopProcedure, And, BaseBinaryPredicateList, BasePredicateList, BaseUnaryPredicateList, BinaryAnd, BinaryCompositeBinaryFunction, BinaryCompositeBinaryFunction.Helper, BinaryFunctionBinaryPredicate, BinaryFunctionBinaryProcedure, BinaryFunctionUnaryFunction, BinaryNot, BinaryOr, BinaryPredicateBinaryFunction, BinaryPredicateUnaryPredicate, BinaryProcedureBinaryFunction, BinaryProcedureUnaryProcedure, BinarySequence, BoundFunction, BoundPredicate, BoundProcedure, CollectionTransformer, ComparatorFunction, CompositeUnaryFunction, CompositeUnaryFunction.Helper, CompositeUnaryPredicate, CompositeUnaryProcedure, ConditionalBinaryFunction, ConditionalBinaryPredicate, ConditionalBinaryProcedure, ConditionalFunction, ConditionalPredicate, ConditionalProcedure, ConditionalUnaryFunction, ConditionalUnaryPredicate, ConditionalUnaryProcedure, Constant, DoUntil, DoWhile, DoWhileProcedure, FindWithinGenerator, FindWithinGenerator.FindProcedure, FoldLeft, FoldLeft.FoldLeftHelper, FoldRight, FoldRight.FoldRightHelper, FullyBoundFunction, FullyBoundPredicate, FullyBoundProcedure, FunctionPredicate, FunctionProcedure, FunctionUnaryFunction, GeneratorContains, GeneratorContains.ContainsProcedure, Identity, IgnoreLeftFunction, IgnoreLeftPredicate, IgnoreLeftProcedure, IgnoreRightFunction, IgnoreRightPredicate, IgnoreRightProcedure, IndexOfInGenerator, IndexOfInGenerator.IndexProcedure, InPlaceTransform, IsElementOf, IsEmpty, IsEqual, IsEquivalent, IsGreaterThan, IsGreaterThanOrEqual, IsInstance, IsLessThan, IsLessThanOrEqual, IsNotEqual, IsNotEquivalent, IsNotNull, IsNotSame, IsNull, IsSame, IsWithinRange, LeftBoundFunction, LeftBoundPredicate, LeftBoundProcedure, Limit, Max, Min, NoOp, Not, Offset, Or, PredicatedLoop, PredicateFunction, PredicateUnaryPredicate, ProcedureFunction, ProcedureUnaryProcedure, RecursiveEvaluation, RemoveMatching, RetainMatching, RightBoundFunction, RightBoundPredicate, RightBoundProcedure, Sequence, Size, TransformedBinaryFunction, TransformedBinaryFunction.Helper, TransformedBinaryProcedure, TransformedBinaryProcedure.Helper, TransformedFunction, TransformedFunction.Helper, TransformedProcedure, TransformedProcedure.Helper, TransposedFunction, TransposedPredicate, TransposedProcedure, UnaryAnd, UnaryCompositeBinaryFunction, UnaryCompositeBinaryFunction.Helper, UnaryCompositeBinaryPredicate, UnaryCompositeBinaryPredicate.Helper, UnaryFunctionUnaryPredicate, UnaryFunctionUnaryProcedure, UnaryNot, UnaryOr, UnaryPredicateUnaryFunction, UnaryProcedureUnaryFunction, UnarySequence, UntilDo, WhileDo, WhileDoProcedure

public interface Functor
Functor marker interface. All provided functor interfaces extend this interface.

Implementors are encouraged but not required to make their functors Serializable.

Since:
1.0
Version:
$Revision$ $Date$
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    equals(Object that)
    Indicates whether some other object is "equal to" this functor.
    int
    Returns a hash code for this functor adhering to the general Object.hashCode contract.
    Returns a human readable description of this functor.
  • Method Details

    • toString

      String toString()
      Returns a human readable description of this functor. Implementators are strongly encouraged but not strictly required to override the default Object implementation of this method.
      Overrides:
      toString in class Object
      Returns:
      a human readable description of this functor
    • hashCode

      int hashCode()
      Returns a hash code for this functor adhering to the general Object.hashCode contract. Implementators are strongly encouraged but not strictly required to override the default Object implementation of this method.
      Overrides:
      hashCode in class Object
      Returns:
      a hash code for this functor
      See Also:
    • equals

      boolean equals(Object that)
      Indicates whether some other object is "equal to" this functor. This method must adhere to general Object.equals contract. Additionally, this method can return true only if the specified Object implements the same functor interface and is known to produce the same results and/or side-effects for the same arguments (if any).

      While implementators are strongly encouraged to override the default Object implementation of this method, note that the default Object implementation does in fact adhere to the functor equals contract.

      Overrides:
      equals in class Object
      Parameters:
      that - the object to compare this functor to
      Returns:
      true iff the given object implements this functor interface, and is known to produce the same results and/or side-effects for the same arguments (if any).
      See Also: