Class PrimLong

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

public final class PrimLong extends Value
Represents the primitive Cedar integer type.
  • Constructor Details

    • PrimLong

      public PrimLong(long i)
      Build PrimLong.
      Parameters:
      i - Long.
  • Method Details

    • getValue

      public long getValue()
      Get the PrimLong as a long.
    • 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.