Package com.oss.asn1

Class HugeInteger

All Implemented Interfaces:
com.oss.asn1.Comparable, Serializable, Cloneable

public class HugeInteger extends AbstractData implements com.oss.asn1.Comparable
The HugeInteger class represents the ASN.1 INTEGER type with the HUGE compiler directive applied.
Since:
ASN.1/Java 6.0
See Also:
  • Constructor Details

    • HugeInteger

      public HugeInteger()
      The default constructor.
    • HugeInteger

      public HugeInteger(BigInteger value)
      Constructs from java.math.BigInteger value.
      Parameters:
      value - the java.math.BigInteger to set 'this' object to.
  • Method Details

    • setValue

      public final void setValue(BigInteger value)
      Set the value of 'this' object to a java.math.BigInteger.
      Parameters:
      value - the java.math.BigInteger to set 'this' object to.
    • bigIntegerValue

      public final BigInteger bigIntegerValue()
      Get the value of 'this' object as a java.math.BigInteger.
      Returns:
      java.math.BigInteger value of this object.
    • equalTo

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

      public final int compareTo(HugeInteger that)
      Compare 'this' object to another HugeInteger object to determine whether the contents of 'this' object is less than, equal to, or greater than the contents of another object.
      Parameters:
      that - HugeInteger object that is compared with 'this' object
      Returns:
      LESS_THAN, EQUALS, GREATER_THAN values as the results of comparison.
    • clone

      public HugeInteger clone()
      Clone 'this' object.
      Returns:
      deep copy of 'this' object.
    • delete

      public void delete()
      Destroy the instance of the AbstractData. The contract of this method is to facilitate garbage collection by explicit destruction of the data that is no longer needed.
      Overrides:
      delete in class AbstractData
    • 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.