public final class Comparator
extends java.lang.Object
Constructor and Description |
---|
Comparator() |
Modifier and Type | Method and Description |
---|---|
static boolean |
getBoolean(java.lang.String string)
Converts the string representation of a boolean into a boolean.
|
static boolean |
isLess(java.lang.Object o1,
java.lang.Object o2)
Determines whether the first object is smaller than the second object
passed to the method.
|
static boolean |
isLessOrEqual(java.lang.Object o1,
java.lang.Object o2)
Determines whether the first object is smaller or equal than the second
object passed to the method.
|
static boolean |
isMore(java.lang.Object o1,
java.lang.Object o2)
Determines whether the first object is larger than the second object
passed to the method.
|
static boolean |
isMoreOrEqual(java.lang.Object o1,
java.lang.Object o2)
Determines whether the first object is larger than the second object
passed to the method.
|
public static boolean isLess(java.lang.Object o1, java.lang.Object o2) throws java.lang.IllegalArgumentException
o1
- The first object to compare.o2
- The second object to compare.java.lang.IllegalArgumentException
- Thrown if one of the objects is
illegal.public static boolean isLessOrEqual(java.lang.Object o1, java.lang.Object o2) throws java.lang.IllegalArgumentException
o1
- The first object to compare.o2
- The second object to compare.java.lang.IllegalArgumentException
- Thrown if one of the objects is
illegal.public static boolean isMore(java.lang.Object o1, java.lang.Object o2) throws java.lang.IllegalArgumentException
o1
- The first object to compare.o2
- The second object to compare.java.lang.IllegalArgumentException
- Thrown if one of the objects is
illegal.public static boolean isMoreOrEqual(java.lang.Object o1, java.lang.Object o2) throws java.lang.IllegalArgumentException
o1
- The first object to compare.o2
- The second object to compare.java.lang.IllegalArgumentException
- Thrown if one of the objects is
illegal.public static boolean getBoolean(java.lang.String string) throws java.lang.IllegalArgumentException
string
- The string representation of the boolean.java.lang.IllegalArgumentException
- Thrown if the string does not specify
a valid boolean representation.