public class SnmpObjId extends Object implements Comparable<SnmpObjId>
Modifier | Constructor and Description |
---|---|
protected |
SnmpObjId() |
protected |
SnmpObjId(int[] ids)
These constructors are private.
|
|
SnmpObjId(int[] ids,
boolean clone)
These constructors are private.
|
protected |
SnmpObjId(SnmpObjId oid)
These constructors are private.
|
protected |
SnmpObjId(String oid)
These constructors are private.
|
Modifier and Type | Method and Description |
---|---|
protected boolean |
addPrefixDotInToString() |
SnmpObjId |
append(int[] instIds) |
SnmpObjId |
append(SnmpObjId inst) |
SnmpObjId |
append(String inst) |
int |
compareTo(SnmpObjId o) |
static int[] |
convertStringToInts(String oid) |
SnmpObjId |
decrement() |
boolean |
equals(Object obj) |
static SnmpObjId |
get(int[] ids) |
static SnmpObjId |
get(SnmpObjId oid) |
static SnmpObjId |
get(SnmpObjId objId,
SnmpObjId instance) |
static SnmpObjId |
get(SnmpObjId objId,
String instance) |
static SnmpObjId |
get(String oid) |
static SnmpObjId |
get(String objId,
String instance) |
int[] |
getIds() |
SnmpInstId |
getInstance(SnmpObjId base) |
int |
getLastSubId() |
SnmpObjId |
getPrefix(int length) |
int |
getSubIdAt(int index) |
int |
hashCode() |
boolean |
isPrefixOf(SnmpObjId other) |
boolean |
isSuccessorOf(SnmpObjId base)
If requesting a GETNEXT on the given base OID, would the
current OID be expected in a response?
Returns
true if this OID is a successor (greater than)
the given OID, or false otherwise. |
int |
length() |
String |
toString() |
protected SnmpObjId()
public SnmpObjId(int[] ids, boolean clone)
protected SnmpObjId(int[] ids)
protected SnmpObjId(String oid)
protected SnmpObjId(SnmpObjId oid)
public int[] getIds()
public static int[] convertStringToInts(String oid)
protected boolean addPrefixDotInToString()
public int compareTo(SnmpObjId o)
compareTo
in interface Comparable<SnmpObjId>
public SnmpObjId append(int[] instIds)
public static SnmpObjId get(int[] ids)
public boolean isPrefixOf(SnmpObjId other)
public SnmpInstId getInstance(SnmpObjId base)
public int length()
public SnmpObjId getPrefix(int length)
public int getSubIdAt(int index)
public int getLastSubId()
public SnmpObjId decrement()
public boolean isSuccessorOf(SnmpObjId base)
true
if this OID is a successor (greater than)
the given OID, or false
otherwise.base
- base oid against which to compareCopyright © 2021. All rights reserved.