|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.amx.duet.tools.net.snmp.api.SNMPObject
com.amx.duet.tools.net.snmp.api.SNMPObjectIdentifier
Class representing ASN.1 object identifiers. These are unbounded sequences (arrays) of natural numbers, written as dot-separated strings.
Constructor Summary | |
SNMPObjectIdentifier()
Create a new empty object identifier (0-length array). |
|
SNMPObjectIdentifier(int[] digits)
Create a new object identifier from the supplied array of nonegative integer values. |
|
SNMPObjectIdentifier(long[] digits)
Create a new object identifier from the supplied array of nonegative long values. |
|
SNMPObjectIdentifier(java.lang.String digitString)
Create a new object identifier from the supplied string of dot-separated nonegative decimal integer values. |
Method Summary | |
boolean |
equals(java.lang.Object other)
Checks the internal arrays for equality. |
java.lang.Object |
getValue()
Return array of integers corresponding to components of identifier. |
int |
hashCode()
Generates a hash value so SNMP Object Identifiers can be used in Hashtables. |
void |
setValue(java.lang.Object digits)
Used to set the value from an integer or long array containing the identifier components, or from a String containing a dot-separated sequence of nonegative values. |
java.lang.String |
toString()
Return dot-separated sequence of decimal values. |
Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public SNMPObjectIdentifier()
public SNMPObjectIdentifier(java.lang.String digitString) throws SNMPBadValueException
SNMPBadValueException
- Indicates incorrectly-formatted string supplied.public SNMPObjectIdentifier(int[] digits) throws SNMPBadValueException
SNMPBadValueException
- Negative value(s) supplied.public SNMPObjectIdentifier(long[] digits) throws SNMPBadValueException
SNMPBadValueException
- Negative value(s) supplied.Method Detail |
public java.lang.Object getValue()
getValue
in class SNMPObject
public void setValue(java.lang.Object digits) throws SNMPBadValueException
setValue
in class SNMPObject
SNMPBadValueException
- Indicates an incorrect object type supplied, or negative array
elements, or an incorrectly formatted String.public boolean equals(java.lang.Object other)
equals
in class SNMPObject
public int hashCode()
hashCode
in class SNMPObject
public java.lang.String toString()
toString
in class SNMPObject
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |