Package autumn.util.functors
Class Ordering
- All Implemented Interfaces:
DefinedFunctor
,Functor
,TypedFunctor
,Comparator<Object>
- Author:
- mackenzie
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
This 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, toString
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods 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:
parameterTypes
in interfaceDefinedFunctor
- Specified by:
parameterTypes
in interfaceTypedFunctor
- Overrides:
parameterTypes
in 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:
returnType
in interfaceDefinedFunctor
- Specified by:
returnType
in interfaceTypedFunctor
- Overrides:
returnType
in classFunction2
- Returns:
- the return-type of this functor.
-
compare
- Specified by:
compare
in interfaceComparator<Object>
-