public class Compare
extends java.lang.Object
Constructor | Description |
---|---|
Compare() |
Modifier and Type | Method | 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)