|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjpaul.Misc.MCell<T>
public class MCell<T>
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.
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 |
---|
public T value
Constructor Detail |
---|
public MCell(T initValue)
MutableCell
.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |