All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class replica.UniqueID

java.lang.Object
   |
   +----replica.UniqueID

public class UniqueID
extends Object
This class is only important if you want to add your own replication strategy. It provides unique IDs for one process.

Version:
1.0
Author:
Markus Jäger

Constructor Index

 o UniqueID(String)
This method produces a UniqueID from a string representation.

Method Index

 o equals(Object)
This method compares two IDs.
 o getNewUniqueID()
This method return a new unique ID.
 o hashCode()
This method determins the Hashcode of the unique ID.
 o toString()
This method generates a string representation.

Constructors

 o UniqueID
 public UniqueID(String str)
This method produces a UniqueID from a string representation.

Parameters:
str - String representation

Methods

 o getNewUniqueID
 public static UniqueID getNewUniqueID()
This method return a new unique ID.

Returns:
The new unique ID
 o equals
 public boolean equals(Object compareID)
This method compares two IDs.

Parameters:
compareID - UniqueID to compare with
Returns:
True if equal IDs
Overrides:
equals in class Object
 o hashCode
 public int hashCode()
This method determins the Hashcode of the unique ID.

Returns:
Hashcode
Overrides:
hashCode in class Object
 o toString
 public String toString()
This method generates a string representation.

Returns:
String representation
Overrides:
toString in class Object

All Packages  Class Hierarchy  This Package  Previous  Next  Index