Class AsnUnsInteger64

java.lang.Object
uk.co.westhawk.snmp.stack.AsnObject
uk.co.westhawk.snmp.stack.AsnUnsInteger64
All Implemented Interfaces:
SnmpConstants

public class AsnUnsInteger64 extends AsnObject
This class represents ASN.1 64-bit unsigned integer. It is used for COUNTER64.
Version:
$Revision: 3.16 $ $Date: 2009/03/05 13:11:33 $
Author:
Tim Panton
See Also:
  • Constructor Details

    • AsnUnsInteger64

      public AsnUnsInteger64(long v)
      Constructor.
      Parameters:
      v - The value of the AsnUnsInteger64
    • AsnUnsInteger64

      public AsnUnsInteger64(InputStream in, int len) throws IOException
      Constructor.
      Parameters:
      in - The input stream from which the value should be read
      len - The length of the AsnUnsInteger64
      Throws:
      IOException
  • Method Details

    • getValue

      public long getValue()
      Returns the value representation of the AsnUnsInteger64.
      Returns:
      The value of the AsnUnsInteger64
    • toString

      public String toString()
      Returns the string representation of the AsnUnsInteger64.
      Specified by:
      toString in class AsnObject
      Returns:
      The string of the AsnUnsInteger64
    • equals

      public boolean equals(Object obj)
      Compares this object to the specified object. The result is true if and only if the argument is not null and is an AsnUnsInteger64 object that contains the same long value as this object.
      Overrides:
      equals in class Object
      Parameters:
      obj - the object to compare with.
      Returns:
      true if the objects are the same; false otherwise.
    • hashCode

      public int hashCode()
      Returns a hash code for this AsnUnsInteger64.
      Overrides:
      hashCode in class Object
      Returns:
      a hash code value for this object, equal to the hash of the primitive long value represented by this AsnUnsInteger64 object.