|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.opennms.protocols.snmp.SnmpObjectId
org.jboss.jmx.adaptor.snmp.agent.ComparableSnmpObjectId
public class ComparableSnmpObjectId
Provide SnmpObjectIds that are Comparable to be used in SortedSets etc.
Field Summary |
---|
Fields inherited from class org.opennms.protocols.snmp.SnmpObjectId |
---|
ASNTYPE |
Constructor Summary | |
---|---|
ComparableSnmpObjectId(int[] identifiers)
|
|
ComparableSnmpObjectId(org.opennms.protocols.snmp.SnmpObjectId oid)
|
|
ComparableSnmpObjectId(String oid)
|
Method Summary | |
---|---|
int |
compareTo(Object o)
Compare to the passed object. |
ComparableSnmpObjectId |
getNextArc()
Build an oid where the second last component (after removing a .0 of a leaf) is increased by 1. |
boolean |
isLeaf()
This object is a leaf if the last part of the oid parts is a 0 (Zero) |
ComparableSnmpObjectId |
removeLastPart()
Removes the last oid-component. |
Methods inherited from class org.opennms.protocols.snmp.SnmpObjectId |
---|
append, append, append, clone, compare, compare, compare, decodeASN, duplicate, encodeASN, equals, getIdentifiers, getLength, hashCode, isRootOf, prepend, prepend, prepend, setIdentifiers, setIdentifiers, toString, typeId |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ComparableSnmpObjectId(String oid)
public ComparableSnmpObjectId(org.opennms.protocols.snmp.SnmpObjectId oid)
public ComparableSnmpObjectId(int[] identifiers)
Method Detail |
---|
public int compareTo(Object o)
compareTo
in interface Comparable
o
- Object to compare with (Usually a ComparableSnmpObjectId)
SnmpObjectId.compare()
public boolean isLeaf()
public ComparableSnmpObjectId removeLastPart()
public ComparableSnmpObjectId getNextArc()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |