T
- the binary function arguments and return types.public final class Min<T> extends Object implements BinaryFunction<T,T,T>
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(Object obj) |
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 Function.
|
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 static <T extends Comparable<?>> Min<T> instance()
T
- the binary function arguments and return types.public static <T extends Comparable<?>> Function<T,T> instance(T right)
T
- the binary function arguments and return types.right
- the right side argument of the Min functionCopyright © 2003–2014 The Apache Software Foundation. All rights reserved.