Package org.keycloak.util
Class Booleans
java.lang.Object
org.keycloak.util.Booleans
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic BooleanCompares two boolean, including support for null values where null is considered falsestatic BooleanChecks if a boolean is false, including support for null values where null is considered falsestatic BooleanChecks if a boolean is true, including support for null values where null is considered false
-
Constructor Details
-
Booleans
public Booleans()
-
-
Method Details
-
isTrue
Checks if a boolean is true, including support for null values where null is considered false- Parameters:
b- the boolean to check- Returns:
- true if non-null and true
-
isFalse
Checks if a boolean is false, including support for null values where null is considered false- Parameters:
b- the boolean to check- Returns:
- true if null and false
-
equals
Compares two boolean, including support for null values where null is considered false- Parameters:
a- the first boolean to compareb- the second boolean to compare- Returns:
- true if both values have resolves to the same value
-