jpaul.Misc
Class LongMCell

java.lang.Object
  extended by jpaul.Misc.LongMCell
All Implemented Interfaces:
java.lang.Comparable<LongMCell>

public class LongMCell
extends java.lang.Object
implements java.lang.Comparable<LongMCell>

LongMCell is a mutable cell with long content.

Version:
$Id: LongMCell.java,v 1.4 2006/03/14 02:29:31 salcianu Exp $
Author:
Alexandru Salcianu - salcianu@alum.mit.edu

Field Summary
 long value
          The current long content of this cell.
 
Constructor Summary
LongMCell()
          Creates a LongMCell.
LongMCell(long initValue)
          Creates a LongMCell with initial content initValue.
 
Method Summary
 int compareTo(LongMCell lmc2)
           
 java.lang.String toString()
          Returns a string description containing both the value and the address of this LongMCell: "LongMCell{" + value + "}@" + System.identityHashCode(this).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

value

public long value
The current long content of this cell.

Constructor Detail

LongMCell

public LongMCell()
Creates a LongMCell.


LongMCell

public LongMCell(long initValue)
Creates a LongMCell with initial content initValue.

Method Detail

compareTo

public int compareTo(LongMCell lmc2)
Specified by:
compareTo in interface java.lang.Comparable<LongMCell>

toString

public java.lang.String toString()
Returns a string description containing both the value and the address of this LongMCell: "LongMCell{" + value + "}@" + System.identityHashCode(this).

Overrides:
toString in class java.lang.Object


Copyright 2005 Alexandru Salcianu - salcianu@alum.mit.edu