#107 Improve JavaDoc for Memento example

This commit is contained in:
Ilkka Seppala 2015-08-19 22:13:40 +03:00
parent 252f93899f
commit 8701833d83
3 changed files with 77 additions and 67 deletions

View File

@ -4,8 +4,8 @@ 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.
* Memento pattern is for storing and restoring object state. The object ({@link Star})
* gives out a "memento" ({@link StarMemento}) that contains the state of the object.
* Later on the memento can be set back to the object restoring the state.
*
*/

View File

@ -1,5 +1,10 @@
package com.iluwatar.memento;
/**
*
* StarType enumeration
*
*/
public enum StarType {
SUN("sun"), RED_GIANT("red giant"), WHITE_DWARF("white dwarf"), SUPERNOVA("supernova"), DEAD("dead star"), UNDEFINED("");

View File

@ -4,6 +4,11 @@ import org.junit.Test;
import com.iluwatar.memento.App;
/**
*
* Application test
*
*/
public class AppTest {
@Test