#107 Improve JavaDoc for Memento example
This commit is contained in:
parent
252f93899f
commit
8701833d83
@ -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.
|
||||
*
|
||||
*/
|
||||
|
@ -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("");
|
||||
|
@ -4,6 +4,11 @@ import org.junit.Test;
|
||||
|
||||
import com.iluwatar.memento.App;
|
||||
|
||||
/**
|
||||
*
|
||||
* Application test
|
||||
*
|
||||
*/
|
||||
public class AppTest {
|
||||
|
||||
@Test
|
||||
|
Loading…
x
Reference in New Issue
Block a user