SourceForge.net Logo

org.netsnmp
Class InstanceOID

java.lang.Object
  |
  +--org.netsnmp.NativeOID
        |
        +--org.netsnmp.DefaultOID
              |
              +--org.netsnmp.InstanceOID
All Implemented Interfaces:
Comparable, OID, Serializable

public class InstanceOID
extends DefaultOID

A Convenience class that could save memory if used judiciously. Represents a specific instance of a given object

Author:
Andrew E. Page aepage@users.sourceforge.net
See Also:
Serialized Form

Field Summary
 int instance
           
 
Fields inherited from class org.netsnmp.DefaultOID
oids
 
Constructor Summary
InstanceOID(OID object, int instance)
           
 
Method Summary
 int length()
          length of the OID
 int[] oids()
          Get the path elements of the OID
 
Methods inherited from class org.netsnmp.NativeOID
append, compareTo, compareTo, toString, toText
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

instance

public final int instance
Constructor Detail

InstanceOID

public InstanceOID(OID object,
                   int instance)
Method Detail

oids

public int[] oids()
Description copied from class: DefaultOID
Get the path elements of the OID

Specified by:
oids in interface OID
Overrides:
oids in class DefaultOID
Returns:
the individual elements of the OID as an array of integers

length

public int length()
Description copied from class: DefaultOID
length of the OID

Specified by:
length in interface OID
Overrides:
length in class DefaultOID

SourceForge.net Logo