net.sf.jga.fn.comparison
public class Max<T extends Comparable> extends AbstractBinaryFunctor<T,T,T> implements Serializable
Copyright © 2003 David A. Hall
Nested Class Summary | |
---|---|
interface | Max.Visitor
Interface for classes that may interpret a Max predicate. |
Method Summary | |
---|---|
void | accept(Visitor v)
Calls the Visitor's visit(Max) method, if it
implements the nested Visitor interface. |
T | fn(T x, T y)
Returns the greater of two arguments, or the first if they are equal. |
String | toString() |
visit(Max)
method, if it
implements the nested Visitor interface.Returns: the greater of two arguments, or the first if they are equal.