Class PrimBool

java.lang.Object
com.cedarpolicy.value.Value
com.cedarpolicy.value.PrimBool

public final class PrimBool extends Value
Represents a primitive Cedar boolean value.
  • Constructor Details

    • PrimBool

      public PrimBool(boolean b)
      Build PrimBool.
      Parameters:
      b - Boolean.
  • Method Details

    • getValue

      public boolean getValue()
      Get the PrimBool as a boolean.
    • equals

      public boolean equals(Object o)
      Equals.
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Hash.
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      toString.
      Overrides:
      toString in class Object
    • toCedarExpr

      public String toCedarExpr()
      To Cedar expr that can be used in a Cedar policy.
      Specified by:
      toCedarExpr in class Value
      Returns:
      Cedar source code for the value.