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
Method Summary |
int |
length()
length of the OID |
int[] |
oids()
Get the path elements of the OID |
instance
public final int instance
InstanceOID
public InstanceOID(OID object,
int instance)
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