|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcomputer.Data
public class Data
Represents data cells in the memory of the toy computer. Holds a single double value. We depend on auto-boxing of Java 5 here as the typical use is double, not Double.
Field Summary | |
---|---|
private java.lang.Double |
data
|
Constructor Summary | |
---|---|
Data(java.lang.Double d)
Create a data cell holding a double that may be inserted into the memory |
Method Summary | |
---|---|
java.lang.Double |
value()
Retrieve the double value of this cell |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private java.lang.Double data
Constructor Detail |
---|
public Data(java.lang.Double d)
d
- Method Detail |
---|
public java.lang.Double value()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |