computeValue in subclasses; call
getValue in using code.
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected abstract int | |
| public int |
| computed | back to summary |
|---|---|
| private boolean computed | |
| value | back to summary |
|---|---|
| private int value | |
| MemoizedInt | back to summary |
|---|---|
| public MemoizedInt() | |
| computeValue | back to summary |
|---|---|
| protected abstract int computeValue() Should compute the value of this memoized object. This will only
be called once, upon the first call to | |
| getValue | back to summary |
|---|---|
| public int getValue() Public accessor for the memoized value. | |