ch.nix.ert.message
Class InternalKey
java.lang.Object
ch.nix.ert.message.InternalKey
- All Implemented Interfaces:
- java.lang.Comparable, java.io.Serializable
- public class InternalKey
- extends java.lang.Object
- implements java.io.Serializable, java.lang.Comparable
TODO Edit this text for a better description
TODO Has to check what the ranges of the keys are (e.g. 0-1000 or
0-100000000000) and should reject invalid values!
- Author:
- michi
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
InternalKey
public InternalKey(long uniqueId)
InternalKey
public InternalKey(java.lang.String uniqueId)
getSubsequentInternalKey
public InternalKey getSubsequentInternalKey()
getNthSubsequentInternalKey
public InternalKey getNthSubsequentInternalKey(long amount)
getPreviousInternalKey
public InternalKey getPreviousInternalKey()
getNthPreviousInternalKey
public InternalKey getNthPreviousInternalKey(long amount)
getId
public long getId()
- Returns:
- Returns the uniqueID.
getHigherLimit
public static long getHigherLimit()
getLowerLimit
public static long getLowerLimit()
getRandom
public static InternalKey getRandom()
getFirstUserKey
public UserKey getFirstUserKey()
getLastUserKey
public UserKey getLastUserKey()
setId
public void setId(long uniqueId)
compareTo
public int compareTo(java.lang.Object o)
- Specified by:
compareTo
in interface java.lang.Comparable
amountBetween
public long amountBetween(InternalKey internalKey)
toString
public java.lang.String toString()
Copyright © 2004 Michael Kussmaul - Revision: 183 - Date: 2004-11-16T15:42:13.763853Z