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 Link icon

    • RealValue Link icon

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

    • create Link icon

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

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

      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 Link icon

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

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

      public String toString()
      Overrides:
      toString in class Object