Package com.oss.asn1

Class BOOLEAN

All Implemented Interfaces:
Serializable, Cloneable

public class BOOLEAN extends AbstractData
The BOOLEAN class represents the ASN.1 BOOLEAN type.
Since:
ASN.1/Java 6.0
See Also:
  • Field Details

    • TRUE

      public static final BOOLEAN TRUE
      Constant used to specify the TRUE BOOLEAN value.
    • FALSE

      public static final BOOLEAN FALSE
      Constant used to specify the FALSE BOOLEAN value.
  • Constructor Details

    • BOOLEAN

      public BOOLEAN()
      The default constructor.
    • BOOLEAN

      public BOOLEAN(boolean value)
      Construct from a BOOLEAN type.
      Parameters:
      value - the BOOLEAN to set 'this' object to.
  • Method Details

    • clone

      public BOOLEAN clone()
      Clone 'this' object.
      Returns:
      deep copy of 'this' object.
    • setValue

      public final void setValue(boolean value)
      Set the value of 'this' object to a boolean.
      Parameters:
      value - the value to set 'this' object to.
    • booleanValue

      public final boolean booleanValue()
      Get the value of 'this' object as a boolean.
      Returns:
      boolean value of 'this' object.
    • equalTo

      public final boolean equalTo(BOOLEAN that)
      Compare 'this' object to another BOOLEAN object to see if their contents are the same.
      Parameters:
      that - the BOOLEAN object to compare 'this' object to.
      Returns:
      true if contents of both objects are the same.
    • hashCode

      public int hashCode()
      Returns a hash code for this object
      Overrides:
      hashCode in class AbstractData
      Returns:
      a hash code for this object
    • getTypeName

      public String getTypeName()
      Returns the name of ASN.1 type this java class represents.
      Overrides:
      getTypeName in class AbstractData
      Returns:
      the name of the ASN.1 type.