|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.prevayler.util.memento.Memento
public abstract class Memento
A memento is a snapshot of an object before it gets changed. A copy of all fields under the objects control should be made.
| Constructor Summary | |
|---|---|
Memento()
|
|
| Method Summary | |
|---|---|
boolean |
equals(Object other)
Compare this memento with another. |
protected abstract Object |
getOwner()
Get the object to which this memento belongs. |
int |
hashCode()
The hash code of this object. |
protected abstract void |
restore()
Restore the values of the object to the values in this memento. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Memento()
| Method Detail |
|---|
protected abstract void restore()
protected abstract Object getOwner()
public int hashCode()
hashCode in class Objectpublic boolean equals(Object other)
equals in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||