|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.mtu.eggplant.util.ComparisonUtils
public final class ComparisonUtils
Handy comparision routines.
Method Summary | |
---|---|
static int |
compareBooleans(boolean one,
boolean two)
true is always greater than false. |
static int |
compareDoubles(double one,
double two)
Compare two doubles. |
static int |
compareFloats(float one,
float two)
Compare two floats. |
static int |
compareIntegers(long one,
long two)
Compare two non-floating point numbers. |
static int |
compareStrings(String one,
String two)
Compare two Strings, null is allowed and is greater than every non-null String. |
static boolean |
safeEquals(Object o1,
Object o2)
Equals call that handles null without a NullPointerException. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static int compareBooleans(boolean one, boolean two)
public static int compareIntegers(long one, long two)
public static int compareDoubles(double one, double two)
public static int compareFloats(float one, float two)
public static int compareStrings(String one, String two)
public static boolean safeEquals(Object o1, Object o2)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |