@GwtCompatible
public class BooleanExtensions
extends java.lang.Object
booleans.| Constructor and Description |
|---|
BooleanExtensions() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
operator_and(boolean a,
boolean b)
The logical
and (conjunction). |
static boolean |
operator_equals(boolean a,
boolean b)
The binary
equals operator. |
static boolean |
operator_greaterEqualsThan(boolean a,
boolean b)
The binary
greaterEqualsThan operator for boolean values. |
static boolean |
operator_greaterThan(boolean a,
boolean b)
The binary
greaterThan operator for boolean values. |
static boolean |
operator_lessEqualsThan(boolean a,
boolean b)
The binary
lessEqualsThan operator for boolean values. |
static boolean |
operator_lessThan(boolean a,
boolean b)
The binary
lessThan operator for boolean values. |
static boolean |
operator_not(boolean b)
The logical
not (negation). |
static boolean |
operator_notEquals(boolean a,
boolean b)
The binary
not equals operator. |
static boolean |
operator_or(boolean a,
boolean b)
A logical
or (disjunction). |
static boolean |
xor(boolean a,
boolean b)
A logical
xor. |
@Pure public static boolean operator_and(boolean a, boolean b)
and (conjunction). This is the equivalent to the java && operator.a - a boolean value.b - another boolean value.a && b@Pure public static boolean operator_or(boolean a, boolean b)
or (disjunction). This is the equivalent to the java || operator.a - a boolean value.b - another boolean value.a || b@Pure public static boolean operator_not(boolean b)
not (negation). This is the equivalent to the java ! operator.b - a boolean value.!b@Pure public static boolean operator_equals(boolean a, boolean b)
equals operator. This is the equivalent to the java == operator.a - an boolean.b - an boolean.a==b@Pure public static boolean operator_notEquals(boolean a, boolean b)
not equals operator. This is the equivalent to the java != operator.a - an boolean.b - an boolean.a!=b@Pure public static boolean xor(boolean a, boolean b)
xor. This is the equivalent to the java ^ operator.a - a boolean value.b - another boolean value.a ^ b@Pure public static boolean operator_lessThan(boolean a, boolean b)
lessThan operator for boolean values.
false is considered less than true.a - a boolean.b - another boolean.Booleans.compare(a, b)<0Boolean.compareTo(Boolean),
Booleans.compare(boolean, boolean)@Pure public static boolean operator_lessEqualsThan(boolean a, boolean b)
lessEqualsThan operator for boolean values.
false is considered less than true.a - a boolean.b - another boolean.Booleans.compare(a, b)<=0Boolean.compareTo(Boolean),
Booleans.compare(boolean, boolean)@Pure public static boolean operator_greaterThan(boolean a, boolean b)
greaterThan operator for boolean values.
false is considered less than true.a - a boolean.b - another boolean.Booleans.compare(a, b)>0Boolean.compareTo(Boolean),
Booleans.compare(boolean, boolean)@Pure public static boolean operator_greaterEqualsThan(boolean a, boolean b)
greaterEqualsThan operator for boolean values.
false is considered less than true.a - a boolean.b - another boolean.Booleans.compare(a, b)>=0Boolean.compareTo(Boolean),
Booleans.compare(boolean, boolean)