net.percederberg.mibble.snmp
Class SnmpRevision

java.lang.Object
  extended bynet.percederberg.mibble.snmp.SnmpRevision

public class SnmpRevision
extends java.lang.Object

An SNMP module identity revision value. This declaration is used inside a module identity macro type.

Since:
2.0
See Also:
SnmpModuleIdentity

Constructor Summary
SnmpRevision(MibValue value, java.lang.String description)
          Creates a new SNMP module identity revision.
 
Method Summary
 java.lang.String getDescription()
          Returns the revision description.
 MibValue getValue()
          Returns the revision number.
 java.lang.String toString()
          Returns a string representation of this object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SnmpRevision

public SnmpRevision(MibValue value,
                    java.lang.String description)
Creates a new SNMP module identity revision.

Parameters:
value - the revision number
description - the revision description
Method Detail

getValue

public MibValue getValue()
Returns the revision number.

Returns:
the revision number

getDescription

public java.lang.String getDescription()
Returns the revision description.

Returns:
the revision description

toString

public java.lang.String toString()
Returns a string representation of this object.

Returns:
a string representation of this object