A
- the value typepublic final class Max<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 less than y
, return y
x
Modifier and Type | Method and Description |
---|---|
A |
checkedApply(A x,
A y) |
static <A extends Comparable<A>> |
max() |
static <A extends Comparable<A>> |
max(A x) |
static <A extends Comparable<A>> |
max(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>> Max<A> max()
public static <A extends Comparable<A>> Fn1<A,A> max(A x)
public static <A extends Comparable<A>> A max(A x, A y)