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.Object
public static OID fromString(java.lang.String oidString) throws java.lang.NumberFormatException
java.lang.NumberFormatException
public void setData(long l)
public long getData()
public boolean equals(java.lang.Object other)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public 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.NumberFormatException
public void marshalObject(AOByteBuffer buf)
Marshallable
marshalObject
in interface Marshallable
buf
- The byte bufferpublic java.lang.Object unmarshalObject(AOByteBuffer buf)
Marshallable
unmarshalObject
in interface Marshallable