Package autumn.util.functors
Class Ordering
- All Implemented Interfaces:
DefinedFunctor,Functor,TypedFunctor,Comparator<Object>
- Author:
- mackenzie
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintThis method invokes the inner functor.This method retrieves the types of the functor's formal-parameters.This method retrieves the type of the value that is returned by this functor.Methods inherited from class autumn.lang.internals.AbstractDefinedFunctor
apply, inner, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Comparator
equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
Constructor Details
-
Ordering
Sole Constructor.- Parameters:
inner- is the functor that provides the actual functionality.
-
-
Method Details
-
invoke
This method invokes the inner functor. -
parameterTypes
This method retrieves the types of the functor's formal-parameters.- Specified by:
parameterTypesin interfaceDefinedFunctor- Specified by:
parameterTypesin interfaceTypedFunctor- Overrides:
parameterTypesin classFunction2- Returns:
- an immutable list of the formal-parameter's types.
-
returnType
This method retrieves the type of the value that is returned by this functor.- Specified by:
returnTypein interfaceDefinedFunctor- Specified by:
returnTypein interfaceTypedFunctor- Overrides:
returnTypein classFunction2- Returns:
- the return-type of this functor.
-
compare
- Specified by:
comparein interfaceComparator<Object>
-