jpaul.Misc
Class IntMCell

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

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

IntMCell is a mutable cell with integer content.

Version:
$Id: IntMCell.java,v 1.5 2006/03/14 02:29:31 salcianu Exp $
Author:
Alexandru Salcianu - salcianu@alum.mit.edu
See Also:
MCell

Field Summary
 int value
          The current int content of this cell.
 
Constructor Summary
IntMCell()
          Creates an IntMCell with initial content 0.
IntMCell(int initValue)
          Creates an IntMCell with initial content initValue.
 
Method Summary
 int compareTo(IntMCell imc2)
           
 java.lang.String toString()
          Returns a string description containing both the value and the address of this IntMCell: "IntMCell{" + 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 int value
The current int content of this cell.

Constructor Detail

IntMCell

public IntMCell()
Creates an IntMCell with initial content 0.


IntMCell

public IntMCell(int initValue)
Creates an IntMCell with initial content initValue.

Method Detail

compareTo

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

toString

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

Overrides:
toString in class java.lang.Object


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