public class OID extends java.lang.Object implements java.io.Serializable, Marshallable, java.lang.Comparable<OID>
| Constructor and Description |
|---|
OID() |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(OID other) |
boolean |
equals(java.lang.Object other) |
static OID |
fromLong(long l) |
static OID |
fromString(java.lang.String oidString) |
long |
getData()
Deprecated.
nobody but java beans should call this
|
int |
hashCode() |
void |
marshalObject(AOByteBuffer buf)
Marshal the object into the byte buffer argument.
|
static OID |
parseLong(java.lang.String str) |
void |
setData(long l)
Deprecated.
nobody but java beans should call this
|
long |
toLong() |
java.lang.String |
toString() |
java.lang.Object |
unmarshalObject(AOByteBuffer buf)
Unmarshal from the byte buffer argument, returning
an Object that containing the unmarshalled state.
|
public static OID fromLong(long l)
public long toLong()
public java.lang.String toString()
toString in class java.lang.Objectpublic static OID fromString(java.lang.String oidString) throws java.lang.NumberFormatException
java.lang.NumberFormatExceptionpublic void setData(long l)
public long getData()
public boolean equals(java.lang.Object other)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic int compareTo(OID other)
compareTo in interface java.lang.Comparable<OID>public static OID parseLong(java.lang.String str) throws java.lang.NumberFormatException
java.lang.NumberFormatExceptionpublic void marshalObject(AOByteBuffer buf)
MarshallablemarshalObject in interface Marshallablebuf - The byte bufferpublic java.lang.Object unmarshalObject(AOByteBuffer buf)
MarshallableunmarshalObject in interface Marshallable