| net.sf.jga.fn.comparison.Min
Min | public class Min extends BinaryFunctor (Code) | | Binary Functor that returns the lesser of two object arguments x
and y. The comparison is performed using a comparator supplied at
construction time, although a default comparator will be used if the nested
Comparable class' default constructor is used.
The behaviour of this class in the presence of null arguments is left to the
implementation of the specific Comparator, however it is generally safe to
assume that using null arguments will cause a NullPointerException to be
thrown.
To serialize a Min functor, the comparator passed at construction must be
Serializable.
Copyright © 2003-2005 David A. Hall
author: David A. Hall |
Inner Class :public static class Comparable extends Min | |
serialVersionUID | final static long serialVersionUID(Code) | | |
accept | public void accept(net.sf.jga.fn.Visitor v)(Code) | | Calls the Visitor's visit(Min) method, if it
implements the nested Visitor interface.
|
fn | public T fn(T x, T y)(Code) | | Returns the lesser of two arguments, or the first if they are equal.
the lesser of two arguments, or the first if they are equal. |
getComparator | public Comparator<? super T> getComparator()(Code) | | Returns the comparator in use by this functor
the comparator in use by this functor |
|
|