A
- the value typepublic final class Min<A extends Comparable<A>> extends Object implements Semigroup<A>
Semigroup
over A
that chooses between two values x
and y
via the
following rules:
x
is strictly greater than y
, return y
x
Modifier and Type | Method and Description |
---|---|
A |
checkedApply(A x,
A y) |
static <A extends Comparable<A>> |
min() |
static <A extends Comparable<A>> |
min(A x) |
static <A extends Comparable<A>> |
min(A x,
A y) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
flip, foldLeft, foldRight
apply, apply, checkedApply, compose, contraMap, curried, curry, diMapL, discardR, fn2, fromBiFunction, toBiFunction, uncurry, widen
public A checkedApply(A x, A y)
checkedApply
in interface Fn2<A extends Comparable<A>,A extends Comparable<A>,A extends Comparable<A>>
public static <A extends Comparable<A>> Min<A> min()
public static <A extends Comparable<A>> Fn1<A,A> min(A x)
public static <A extends Comparable<A>> A min(A x, A y)