HOME

com.ireasoning.protocol.snmp
Class SnmpNull

java.lang.Object
  |
  +--com.ireasoning.protocol.snmp.SnmpNull
All Implemented Interfaces:
Msg, Serializable, SnmpDataType

public class SnmpNull
extends Object
implements SnmpDataType

This class represents Snmp NULL object.

See Also:
Serialized Form

Fields inherited from interface com.ireasoning.protocol.snmp.SnmpDataType
BITS, BITSTRING, COUNTER32, COUNTER64, END_OF_MIB_VIEW, END_OF_MIB_VIEW_OBJECT, GAUGE32, INTEGER, IPADDRESS, NO_SUCH_INSTANCE, NO_SUCH_INSTANCE_OBJECT, NO_SUCH_OBJECT, NO_SUCH_OBJECT_OBJECT, NULL, OCTETSTRING, OID, OPAQUE, PDU, SEQUENCE, SEQUENCEOF, TIMETICKS, UNSIGNED32, VARBIND
 
Fields inherited from interface com.ireasoning.protocol.Msg
ERROR_TYPE
 
Constructor Summary
SnmpNull()
          Default constructor
SnmpNull(SnmpNull obj)
          Makes a copy of passed SnmpNull object
 
Method Summary
 SnmpDataType copy()
          Makes a copy of itself
 int encode(com.ireasoning.protocol.snmp.SnmpEncoder encoder)
          For internal use
 boolean equals(Object obj)
          Indicates whether some other object is "equal to" this one.
 int getType()
          Returns SnmpDataType.NULL
 String getTypeString()
          Returns "Null"
 int hashCode()
          Returns a hash code value for the object
 String toString()
          Returns null object
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SnmpNull

public SnmpNull()
Default constructor

SnmpNull

public SnmpNull(SnmpNull obj)
Makes a copy of passed SnmpNull object
Method Detail

getType

public int getType()
Returns SnmpDataType.NULL
Specified by:
getType in interface SnmpDataType
Following copied from interface: com.ireasoning.protocol.snmp.SnmpDataType
Returns:
the object data type

getTypeString

public String getTypeString()
Returns "Null"
Specified by:
getTypeString in interface SnmpDataType

toString

public String toString()
Returns null object
Overrides:
toString in class Object

copy

public SnmpDataType copy()
Description copied from interface: SnmpDataType
Makes a copy of itself
Specified by:
copy in interface SnmpDataType
Following copied from interface: com.ireasoning.protocol.snmp.SnmpDataType
Returns:
a deep copy of this object

encode

public int encode(com.ireasoning.protocol.snmp.SnmpEncoder encoder)
           throws SnmpEncodingException
Description copied from interface: SnmpDataType
For internal use
Specified by:
encode in interface SnmpDataType

equals

public boolean equals(Object obj)
Description copied from interface: SnmpDataType
Indicates whether some other object is "equal to" this one.
Specified by:
equals in interface SnmpDataType
Overrides:
equals in class Object
Following copied from interface: com.ireasoning.protocol.snmp.SnmpDataType
Returns:
true if this object is the same as the obj argument; false otherwise

hashCode

public int hashCode()
Description copied from interface: SnmpDataType
Returns a hash code value for the object
Specified by:
hashCode in interface SnmpDataType
Overrides:
hashCode in class Object
Following copied from interface: com.ireasoning.protocol.snmp.SnmpDataType
Returns:
a hash code value for the object

HOME

Copyright © 2002 iReasoning Inc. All Rights Reserved.