Class AsnPrimitive

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

public class AsnPrimitive extends AsnObject
This class represents the Exception values for SNMP v2c, v3: SNMP_VAR_NOSUCHOBJECT, SNMP_VAR_NOSUCHINSTANCE, SNMP_VAR_ENDOFMIBVIEW
Version:
$Revision: 3.10 $ $Date: 2006/01/17 17:43:54 $
Author:
Birgit Arkesteijn
See Also:
  • Constructor Details

  • Method Details

    • toString

      public String toString()
      Returns the string representation of the AsnPrimitive.
      Specified by:
      toString in class AsnObject
      Returns:
      The string of the AsnPrimitive
    • 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 AsnPrimitive object that contains the same type 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 AsnPrimitive.
      Overrides:
      hashCode in class Object
      Returns:
      a hash code value for this object, equal to the type represented by this AsnPrimitive object.