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 TypeMethodDescriptionbooleanIndicates whether some other object is "equal to" this functor.inthashCode()Returns a hash code for this functor adhering to the generalObject.hashCodecontract.toString()Returns a human readable description of this functor.
-
Method Details
-
toString
-
hashCode
int hashCode()Returns a hash code for this functor adhering to the generalObject.hashCodecontract. Implementators are strongly encouraged but not strictly required to override the defaultObjectimplementation of this method. -
equals
Indicates whether some other object is "equal to" this functor. This method must adhere to generalObject.equalscontract. 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
equalscontract.
-