#107 Improve JavaDoc for Mediator example

This commit is contained in:
Ilkka Seppala 2015-08-19 22:12:05 +03:00
parent add57d4066
commit 252f93899f
3 changed files with 71 additions and 62 deletions

View File

@ -2,12 +2,16 @@ package com.iluwatar.mediator;
/** /**
* *
* Mediator encapsulates how a set of objects (PartyMember) interact. Instead of * Mediator encapsulates how a set of objects ({@link PartyMember}) interact. Instead of
* referring to each other directly they use a mediator (Party) interface. * referring to each other directly they use a mediator ({@link Party}) interface.
* *
*/ */
public class App { public class App {
/**
* Program entry point
* @param args command line args
*/
public static void main(String[] args) { public static void main(String[] args) {
// create party and members // create party and members

View File

@ -2,7 +2,7 @@ package com.iluwatar.mediator;
/** /**
* *
* Interface for party members interacting with Party. * Interface for party members interacting with {@link Party}.
* *
*/ */
public interface PartyMember { public interface PartyMember {

View File

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