- java.lang.Object
-
- org.snmp4j.mp.SimpleMessageID
-
- All Implemented Interfaces:
java.io.Serializable
,MessageID
- Direct Known Subclasses:
TimedMessageID
public class SimpleMessageID extends java.lang.Object implements MessageID, java.io.Serializable
TheSimpleMessageID
implements the simplest possibleMessageID
with a minimum memory footprint.- Since:
- 2.4.3
- Author:
- Frank Fock
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SimpleMessageID(int messageID)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object o)
int
getID()
Gets the integer representation of the message ID.int
hashCode()
java.lang.String
toString()
-
-
-
Method Detail
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
getID
public int getID()
Description copied from interface:MessageID
Gets the integer representation of the message ID.
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-