T - the binary function arguments and return types.public final class Min<T> extends Object implements BinaryFunction<T,T,T>, Serializable
Comparator to the
BinaryFunction interface.| Modifier and Type | Field and Description |
|---|---|
static Min<Comparable<?>> |
INSTANCE
Basic Min instance.
|
| Constructor and Description |
|---|
Min()
Create a new Min.
|
Min(Comparator<T> comparator)
Create a new Min.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Min<?> that)
Learn whether another Min is equal to this.
|
boolean |
equals(Object that) |
T |
evaluate(T left,
T right)
Evaluate this function.
|
int |
hashCode() |
static <T extends Comparable<?>> |
instance()
Get a basic Min instance.
|
static <T extends Comparable<?>> |
instance(T right)
Get a Min UnaryFunction.
|
String |
toString() |
public static final Min<Comparable<?>> INSTANCE
public Min()
public Min(Comparator<T> comparator)
comparator - to usepublic T evaluate(T left, T right)
evaluate in interface BinaryFunction<T,T,T>left - the L element of the ordered pair of argumentsright - the R element of the ordered pair of argumentspublic boolean equals(Min<?> that)
that - Min to testpublic static <T extends Comparable<?>> Min<T> instance()
T - the binary function arguments and return types.public static <T extends Comparable<?>> UnaryFunction<T,T> instance(T right)
T - the binary function arguments and return types.right - the right side argument of the Min functionCopyright © 2003-2013 The Apache Software Foundation. All Rights Reserved.