HOME

com.ireasoning.protocol.snmp
Class SnmpNull

java.lang.Object
  extended bycom.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

Field Summary
 
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, serialVersionUID, 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
Returns:
the object data type

getTypeString

public String getTypeString()
Returns "Null"

Specified by:
getTypeString in interface SnmpDataType

toString

public String toString()
Returns null object


copy

public SnmpDataType copy()
Description copied from interface: SnmpDataType
Makes a copy of itself

Specified by:
copy in interface 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
Throws:
SnmpEncodingException

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

hashCode

public int hashCode()
Description copied from interface: SnmpDataType
Returns a hash code value for the object

Specified by:
hashCode in interface SnmpDataType

HOME

Copyright © 2002 iReasoning Inc. All Rights Reserved.