|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjpaul.Misc.IntMCell
public class IntMCell
IntMCell is a mutable cell with integer content.
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 |
|---|
public int value
| Constructor Detail |
|---|
public IntMCell()
IntMCell with initial content
0.
public IntMCell(int initValue)
IntMCell with initial content
initValue.
| Method Detail |
|---|
public int compareTo(IntMCell imc2)
compareTo in interface java.lang.Comparable<IntMCell>public java.lang.String toString()
this IntMCell:
"IntMCell{" + value + "}@" +
System.identityHashCode(this).
toString in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||