public abstract class CharOperator
extends java.lang.Object
Basic operators for type char
.
Constructor and Description |
---|
CharOperator() |
Modifier and Type | Method and Description |
---|---|
static int |
compare(char left,
char right)
Compare
left operand with right operand. |
static boolean |
equal(char left,
char right)
Compare
left operand with right operand. |
static boolean |
greaterEqual(char left,
char right)
Compare
left operand with right operand. |
static boolean |
greaterThan(char left,
char right)
Compare
left operand with right operand. |
static boolean |
lessEqual(char left,
char right)
Compare
left operand with right operand. |
static boolean |
lessThan(char left,
char right)
Compare
left operand with right operand. |
static boolean |
notEqual(char left,
char right)
Compare
left operand with right operand. |
public static int compare(char left, char right)
Compare left
operand with right
operand.
left
- Left operand.right
- Right operand.left < right
, zero result if left == right
, positive result if left > right
.public static boolean equal(char left, char right)
Compare left
operand with right
operand.
left
- Left operand.right
- Right operand.true
if left == right
, false
if left != right
.public static boolean greaterEqual(char left, char right)
Compare left
operand with right
operand.
left
- Left operand.right
- Right operand.true
if left >= right
, false
otherwise.public static boolean greaterThan(char left, char right)
Compare left
operand with right
operand.
left
- Left operand.right
- Right operand.true
if left > right
, false
otherwise.public static boolean lessEqual(char left, char right)
Compare left
operand with right
operand.
left
- Left operand.right
- Right operand.true
if left <= right
, false
otherwise.public static boolean lessThan(char left, char right)
Compare left
operand with right
operand.
left
- Left operand.right
- Right operand.true
if left < right
, false
otherwise.public static boolean notEqual(char left, char right)
Compare left
operand with right
operand.
left
- Left operand.right
- Right operand.true
if left != right
, false
if left == right
.