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
-
UniqueID(String)
-
This method produces a UniqueID from a string representation.
-
equals(Object)
-
This method compares two IDs.
-
getNewUniqueID()
-
This method return a new unique ID.
-
hashCode()
-
This method determins the Hashcode of the unique ID.
-
toString()
-
This method generates a string representation.
UniqueID
public UniqueID(String str)
- This method produces a UniqueID from a string representation.
- Parameters:
- str - String representation
getNewUniqueID
public static UniqueID getNewUniqueID()
- This method return a new unique ID.
- Returns:
- The new unique ID
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
hashCode
public int hashCode()
- This method determins the Hashcode of the unique ID.
- Returns:
- Hashcode
- Overrides:
- hashCode in class Object
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