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 HugeInteger type.
Since:
ASN.1/Java 1.0-beta A
See Also:
  • Constructor Details

    • HugeInteger

      public HugeInteger()
      The default constructor.
    • HugeInteger

      public HugeInteger(BigInteger value)
      Construct 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 Object clone()
      Clone 'this' object.
      Overrides:
      clone in class AbstractData
      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