ch.nix.ert.message
Class InternalKey

java.lang.Object
  extended bych.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

Constructor Summary
InternalKey(long uniqueId)
           
InternalKey(java.lang.String uniqueId)
           
 
Method Summary
 long amountBetween(InternalKey internalKey)
           
 int compareTo(java.lang.Object o)
           
 UserKey getFirstUserKey()
           
static long getHigherLimit()
           
 long getId()
           
 UserKey getLastUserKey()
           
static long getLowerLimit()
           
 InternalKey getNthPreviousInternalKey(long amount)
           
 InternalKey getNthSubsequentInternalKey(long amount)
           
 InternalKey getPreviousInternalKey()
           
static InternalKey getRandom()
           
 InternalKey getSubsequentInternalKey()
           
 void setId(long uniqueId)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

InternalKey

public InternalKey(long uniqueId)

InternalKey

public InternalKey(java.lang.String uniqueId)
Method Detail

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