Package org.apache.commons.functor
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 FunctorFunctor 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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanequals(java.lang.Object that)Indicates whether some other object is "equal to" this functor.inthashCode()Returns a hash code for this functor adhering to the generalObject.hashCodecontract.java.lang.StringtoString()Returns a human readable description of this functor.
-
-
-
Method Detail
-
toString
java.lang.String toString()
Returns a human readable description of this functor. Implementators are strongly encouraged but not strictly required to override the defaultObjectimplementation of this method.- Overrides:
toStringin classjava.lang.Object- Returns:
- a human readable description of this functor
-
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.- Overrides:
hashCodein classjava.lang.Object- Returns:
- a hash code for this functor
- See Also:
equals(java.lang.Object)
-
equals
boolean equals(java.lang.Object that)
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.- Overrides:
equalsin classjava.lang.Object- Parameters:
that- the object to compare this functor to- Returns:
trueiff 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:
hashCode()
-
-