mnemosyne.core
Class LongVersion

java.lang.Object
  |
  +--mnemosyne.core.LongVersion
All Implemented Interfaces:
java.lang.Comparable, Version

public class LongVersion
extends java.lang.Object
implements Version

An implmentation of the Version interface based on a Java long. Provides enough capacity for most systems, especially if seeded at Long.MIN_VALUE. This object is immutable.

Version:
$Id: LongVersion.java,v 1.1.1.1 2004/08/07 06:41:02 charlesblaxland Exp $

Constructor Summary
LongVersion(long value)
           
 
Method Summary
 int compareTo(java.lang.Object o)
           
 boolean equals(java.lang.Object obj)
           
 Version getNext()
          Gets the successor of this Version object.
 int hashCode()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LongVersion

public LongVersion(long value)
Method Detail

getNext

public final Version getNext()
Description copied from interface: Version
Gets the successor of this Version object.

Specified by:
getNext in interface Version
Returns:

compareTo

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

hashCode

public final int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public final boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

toString

public final java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2004 Charles Blaxland. All Rights Reserved.