public final class Comparables extends Object
| Constructor and Description |
|---|
Comparables() |
| Modifier and Type | Method and Description |
|---|---|
static Comparable |
max(Comparable a,
Comparable b)
Given two comparables, return the maximum of the two.
|
static Comparable |
min(Comparable a,
Comparable b)
Given two comparables, return the minimum of the two.
|
public static final Comparable min(Comparable a, Comparable b)
public static final Comparable max(Comparable a, Comparable b)
Copyright © 2018. All rights reserved.