mirror of
https://github.com/tiennm99/java-design-patterns.git
synced 2026-05-19 17:28:48 +00:00
Comments for memento example.
This commit is contained in:
@@ -2,6 +2,15 @@ package com.iluwatar;
|
||||
|
||||
import java.util.Stack;
|
||||
|
||||
/**
|
||||
*
|
||||
* Memento pattern is for storing and restoring object
|
||||
* state. The object (Star) gives out a "memento"
|
||||
* (StarMemento) that contains the state of the object.
|
||||
* Later on the memento can be set back to the object
|
||||
* restoring the state.
|
||||
*
|
||||
*/
|
||||
public class App
|
||||
{
|
||||
public static void main( String[] args )
|
||||
|
||||
Reference in New Issue
Block a user