public class Serial extends Object
Modifier and Type | Field and Description |
---|---|
static Comparator<Integer> |
COMPARATOR |
Modifier and Type | Method and Description |
---|---|
static int |
compare(int s1,
int s2)
Compares two numbers using serial arithmetic.
|
static boolean |
eq(int s1,
int s2) |
static boolean |
ge(int s1,
int s2) |
static boolean |
gt(int s1,
int s2) |
static boolean |
le(int s1,
int s2) |
static boolean |
lt(int s1,
int s2) |
static int |
max(int s1,
int s2) |
static int |
min(int s1,
int s2) |
public static final Comparator<Integer> COMPARATOR
public static final int compare(int s1, int s2)
s1
- the first serial numbers2
- the second serial numberpublic static final boolean lt(int s1, int s2)
public static final boolean le(int s1, int s2)
public static final boolean gt(int s1, int s2)
public static final boolean ge(int s1, int s2)
public static final boolean eq(int s1, int s2)
public static final int min(int s1, int s2)
public static final int max(int s1, int s2)
Copyright © 2006–2016 The Apache Software Foundation. All rights reserved.