net.sf.snmpadaptor4j.object
Class SnmpTrapData

java.lang.Object
  extended by net.sf.snmpadaptor4j.object.SnmpTrapData
All Implemented Interfaces:
Serializable

public final class SnmpTrapData
extends Object
implements Serializable

Object representing a data of a SNMP trap.

Author:
Jean-Philippe MINETTI
See Also:
Serialized Form

Constructor Summary
SnmpTrapData(SnmpDataType type, Object value)
          Constructor.
 
Method Summary
 boolean equals(Object obj)
           
 SnmpDataType getType()
          Returns the SNMP data type.
 Object getValue()
          Returns the value of data.
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SnmpTrapData

public SnmpTrapData(SnmpDataType type,
                    Object value)
Constructor.

Parameters:
type - SNMP data type.
value - Value of data.
Method Detail

getType

public SnmpDataType getType()
Returns the SNMP data type.

Returns:
SNMP data type.

getValue

public Object getValue()
Returns the value of data.

Returns:
Value of data.

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2012-2013 snmpAdaptor4j. All Rights Reserved.