Module org.snmp4j
Package org.snmp4j.mp

Class SimpleMessageID

  • All Implemented Interfaces:
    java.io.Serializable, MessageID
    Direct Known Subclasses:
    TimedMessageID

    public class SimpleMessageID
    extends java.lang.Object
    implements MessageID, java.io.Serializable
    The SimpleMessageID implements the simplest possible MessageID 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()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • SimpleMessageID

        public SimpleMessageID​(int messageID)
    • Method Detail

      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • getID

        public int getID()
        Description copied from interface: MessageID
        Gets the integer representation of the message ID.
        Specified by:
        getID in interface MessageID
        Returns:
        the message ID as a value between 0 and 2147483647 (inclusive).
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object