public class Ordering extends Function2 implements java.util.Comparator<java.lang.Object>
| Constructor and Description |
|---|
Ordering(TypedFunctor inner)
Sole Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
int |
compare(java.lang.Object arg1,
java.lang.Object arg2) |
java.lang.Integer |
invoke(java.lang.Object arg1,
java.lang.Object arg2)
This method invokes the inner functor.
|
java.util.List<java.lang.Class> |
parameterTypes()
This method retrieves the types of the functor's formal-parameters.
|
java.lang.Class |
returnType()
This method retrieves the type of the value that is returned by this functor.
|
apply, inner, toStringpublic Ordering(TypedFunctor inner)
inner - is the functor that provides the actual functionality.public java.lang.Integer invoke(java.lang.Object arg1,
java.lang.Object arg2)
throws java.lang.Throwable
public java.util.List<java.lang.Class> parameterTypes()
parameterTypes in interface DefinedFunctorparameterTypes in interface TypedFunctorparameterTypes in class Function2public java.lang.Class returnType()
returnType in interface DefinedFunctorreturnType in interface TypedFunctorreturnType in class Function2public int compare(java.lang.Object arg1,
java.lang.Object arg2)
compare in interface java.util.Comparator<java.lang.Object>