Class Booleans

java.lang.Object
org.keycloak.util.Booleans

public class Booleans extends Object
  • Constructor Details

    • Booleans

      public Booleans()
  • Method Details

    • isTrue

      public static Boolean isTrue(Boolean b)
      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

      public static Boolean isFalse(Boolean b)
      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

      public static Boolean equals(Boolean a, Boolean b)
      Compares two boolean, including support for null values where null is considered false
      Parameters:
      a - the first boolean to compare
      b - the second boolean to compare
      Returns:
      true if both values have resolves to the same value