Atavism Version 2018.1AGIS API

atavism.server.engine
Class OID

java.lang.Object
  extended by atavism.server.engine.OID
All Implemented Interfaces:
Marshallable, java.io.Serializable, java.lang.Comparable<OID>

public class OID
extends java.lang.Object
implements java.io.Serializable, Marshallable, java.lang.Comparable<OID>

See Also:
Serialized Form

Constructor Summary
OID()
           
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

OID

public OID()
Method Detail

fromLong

public static OID fromLong(long l)

toLong

public long toLong()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

fromString

public static OID fromString(java.lang.String oidString)
                      throws java.lang.NumberFormatException
Throws:
java.lang.NumberFormatException

setData

public void setData(long l)
Deprecated. nobody but java beans should call this

Required for java beans persistence


getData

public long getData()
Deprecated. nobody but java beans should call this

Required for java beans persistence


equals

public boolean equals(java.lang.Object other)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

compareTo

public int compareTo(OID other)
Specified by:
compareTo in interface java.lang.Comparable<OID>

parseLong

public static OID parseLong(java.lang.String str)
                     throws java.lang.NumberFormatException
Throws:
java.lang.NumberFormatException

marshalObject

public void marshalObject(AOByteBuffer buf)
Description copied from interface: Marshallable
Marshal the object into the byte buffer argument.

Specified by:
marshalObject in interface Marshallable
Parameters:
buf - The byte buffer

unmarshalObject

public java.lang.Object unmarshalObject(AOByteBuffer buf)
Description copied from interface: Marshallable
Unmarshal from the byte buffer argument, returning an Object that containing the unmarshalled state. Nearly all implementors of Marshallable unmarshall the state into this, and return this. However, some implementors need to "intern" the result of unmarshalling, and will potentially return a value different from this. This provides the functionality of Java Serializable's readResolve() method. Examples in the server of classes that intern objects during unmarshalling include MessageType and Namespace.

Specified by:
unmarshalObject in interface Marshallable


Copyright © 2018 Dragonsan Studios Sp. z o.o.