ozone core API

org.ozoneDB.core
Class ObjectID

java.lang.Object
  extended byorg.ozoneDB.DxLib.DxObject
      extended byorg.ozoneDB.core.ObjectID
All Implemented Interfaces:
java.lang.Cloneable, java.lang.Comparable, DxCompatible, java.io.Externalizable, java.io.Serializable
Direct Known Subclasses:
ClusterID, ClusterID, TransactionID

public class ObjectID
extends DxObject
implements java.io.Externalizable, java.lang.Comparable

See Also:
Serialized Form

Field Summary
(package private) static long serialVersionUID
           
(package private) static byte subSerialVersionUID
           
private  long value
           
 
Constructor Summary
ObjectID()
           
ObjectID(long v)
           
ObjectID(java.lang.String handle)
          Constructor from a string representation aka a handle.
 
Method Summary
 java.lang.Object clone()
          liefert eine kopie des objektes; sollte von subclasses ueberschrieben werden;
 int compareTo(java.lang.Object o)
           
 int comparTo(ObjectID o)
          Compares this ObjectID to the given ObjectID.
 boolean equals(java.lang.Object obj)
           
 int hashCode()
           
 boolean isLess(DxCompatible obj)
          true, wenn receiver echt kleiner als obj
 void readExternal(java.io.ObjectInput in)
           
 java.lang.String toString()
          The value of the ObjectID as String.
 long value()
           
 void writeExternal(java.io.ObjectOutput out)
           
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

serialVersionUID

static final long serialVersionUID
See Also:
Constant Field Values

subSerialVersionUID

static final byte subSerialVersionUID
See Also:
Constant Field Values

value

private long value
Constructor Detail

ObjectID

public ObjectID()

ObjectID

public ObjectID(java.lang.String handle)
Constructor from a string representation aka a handle.


ObjectID

public ObjectID(long v)
Method Detail

value

public final long value()

hashCode

public final int hashCode()

equals

public final boolean equals(java.lang.Object obj)
Specified by:
equals in interface DxCompatible

isLess

public final boolean isLess(DxCompatible obj)
Description copied from class: DxObject
true, wenn receiver echt kleiner als obj

Specified by:
isLess in interface DxCompatible
Overrides:
isLess in class DxObject

compareTo

public int compareTo(java.lang.Object o)
Specified by:
compareTo in interface java.lang.Comparable

comparTo

public int comparTo(ObjectID o)
Compares this ObjectID to the given ObjectID. This is useful for ozone objects which need a sort order but may not be equals. (E.g. for use in a SortedSet.)

Returns:
!=0 for ObjectIDs which are not equal 0 for ObjectIDs which are equal

clone

public java.lang.Object clone()
Description copied from class: DxObject
liefert eine kopie des objektes; sollte von subclasses ueberschrieben werden;

Specified by:
clone in interface DxCompatible
Overrides:
clone in class DxObject

writeExternal

public final void writeExternal(java.io.ObjectOutput out)
                         throws java.io.IOException
Specified by:
writeExternal in interface java.io.Externalizable
Throws:
java.io.IOException

readExternal

public final void readExternal(java.io.ObjectInput in)
                        throws java.io.IOException,
                               java.lang.ClassNotFoundException
Specified by:
readExternal in interface java.io.Externalizable
Throws:
java.io.IOException
java.lang.ClassNotFoundException

toString

public java.lang.String toString()
The value of the ObjectID as String. Do not change this, the name of the cluster files depend on it.


ozone core API

Copyright (C) The Ozone Database Project - www.ozone-db.org. All rights reserved.