jpaul.Misc
Class MCell<T>

java.lang.Object
  extended by jpaul.Misc.MCell<T>

public class MCell<T>
extends java.lang.Object

MCell is a mutable cell with content of type T. Sometimes useful when using anonymous classes that can access only final variables of the surounding method: we declare a final variable pointing to a mutable cell, and the anonymous class is free to mutate the cell's content.

Version:
$Id: MCell.java,v 1.2 2005/08/12 21:28:40 salcianu Exp $
Author:
Alexandru Salcianu - salcianu@alum.mit.edu

Field Summary
 T value
           
 
Constructor Summary
MCell(T initValue)
          Creates a MutableCell.
 
Method Summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

value

public T value
Constructor Detail

MCell

public MCell(T initValue)
Creates a MutableCell.



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