public class Comparables extends Object
Modifier and Type | Method and Description |
---|---|
static <T extends Comparable<? super T>> |
isEqual(T c1,
T c2) |
static <T> boolean |
isEqual(T o1,
T o2,
Comparator<? super T> comparator) |
static <T extends Comparable<? super T>> |
isGreater(T c1,
T c2) |
static <T> boolean |
isGreater(T o1,
T o2,
Comparator<? super T> comparator) |
static <T extends Comparable<? super T>> |
isGreaterEqual(T c1,
T c2) |
static <T> boolean |
isGreaterEqual(T o1,
T o2,
Comparator<? super T> comparator) |
static <T extends Comparable<? super T>> |
isInRange(T value,
T min,
T max) |
static <T> boolean |
isInRange(T value,
T min,
T max,
Comparator<? super T> comparator) |
static <T extends Comparable<? super T>> |
isLess(T c1,
T c2) |
static <T> boolean |
isLess(T o1,
T o2,
Comparator<? super T> comparator) |
static <T extends Comparable<? super T>> |
isLessEqual(T c1,
T c2) |
static <T> boolean |
isLessEqual(T o1,
T o2,
Comparator<? super T> comparator) |
static <T extends Comparable<? super T>> |
max(T c1,
T c2) |
static <T> T |
max(T o1,
T o2,
Comparator<? super T> comparator) |
static <T extends Comparable<? super T>> |
min(T c1,
T c2) |
static <T> T |
min(T o1,
T o2,
Comparator<? super T> comparator) |
static <T extends Comparable<? super T>> |
toRange(T value,
T min,
T max) |
static <T> T |
toRange(T value,
T min,
T max,
Comparator<? super T> comparator) |
public static <T extends Comparable<? super T>> boolean isGreater(T c1, T c2)
public static <T> boolean isGreater(T o1, T o2, Comparator<? super T> comparator)
public static <T extends Comparable<? super T>> boolean isGreaterEqual(T c1, T c2)
public static <T> boolean isGreaterEqual(T o1, T o2, Comparator<? super T> comparator)
public static <T extends Comparable<? super T>> boolean isLess(T c1, T c2)
public static <T> boolean isLess(T o1, T o2, Comparator<? super T> comparator)
public static <T extends Comparable<? super T>> boolean isLessEqual(T c1, T c2)
public static <T> boolean isLessEqual(T o1, T o2, Comparator<? super T> comparator)
public static <T extends Comparable<? super T>> boolean isEqual(T c1, T c2)
public static <T> boolean isEqual(T o1, T o2, Comparator<? super T> comparator)
public static <T extends Comparable<? super T>> T min(T c1, T c2)
public static <T> T min(T o1, T o2, Comparator<? super T> comparator)
public static <T extends Comparable<? super T>> T max(T c1, T c2)
public static <T> T max(T o1, T o2, Comparator<? super T> comparator)
public static <T extends Comparable<? super T>> T toRange(T value, T min, T max)
public static <T> T toRange(T value, T min, T max, Comparator<? super T> comparator)
public static <T extends Comparable<? super T>> boolean isInRange(T value, T min, T max)
public static <T> boolean isInRange(T value, T min, T max, Comparator<? super T> comparator)
Copyright © 2002–2015 SoftSmithy. All rights reserved.