public final class ComparisonUtils extends Object
Constructor and Description |
---|
ComparisonUtils() |
Modifier and Type | Method and Description |
---|---|
static int |
compareBooleans(boolean mine,
boolean other)
Compares the given booleans and returns a value consistent with the
requirement for
Comparable.compareTo(T) such that false
is sorted before true . |
public static int compareBooleans(boolean mine, boolean other)
Comparable.compareTo(T)
such that false
is sorted before true
.mine
- the boolean in my instanceother
- the boolean in the other instanceCopyright © 2015. All Rights Reserved.