public class Compare
extends java.lang.Object
Constructor and Description |
---|
Compare() |
Modifier and Type | Method and Description |
---|---|
static int |
compare(boolean x,
boolean y) |
static int |
compare(int x,
int y) |
public static int compare(int x, int y)
x
- left sidey
- right sideInteger.compare(int, int)
public static int compare(boolean x, boolean y)
x
- left sidey
- right sideBoolean.compare(boolean, boolean)