Class RealValue

java.lang.Object
net.aifusion.asn.AsnValue
net.aifusion.asn.RealValue

public class RealValue extends AsnValue
Wrapper class for ASN.1 real values
Author:
Sharad Singhal
  • Constructor Details

    • RealValue

      public RealValue(double value)
      Create a real value
      Parameters:
      value - - value to use
  • Method Details

    • create

      public static RealValue create(byte[] buffer, int blen, int cursor)
    • getValue

      public double getValue()
      Get the value for this real value
      Returns:
      - value of this real value
    • getEncodedValue

      public byte[] getEncodedValue()
      Description copied from class: AsnValue
      Get the encoded value for this ASN.1 value. This method should be implemented by subclasses to provide the encoded ASN.1 value
      Specified by:
      getEncodedValue in class AsnValue
      Returns:
      byte [] containing encoded value for this ASN.1 value (including tag, length, content)
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

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

      public String toString()
      Overrides:
      toString in class Object