#107 Callback JavaDoc improvements
This commit is contained in:
		| @@ -1,8 +1,10 @@ | ||||
| package com.iluwatar.callback; | ||||
|  | ||||
| /** | ||||
|  * Callback pattern is more native for functional languages where function is treated as first-class citizen. | ||||
|  * Prior to Java8 can be simulated using simple (alike command) interfaces. | ||||
|  *  | ||||
|  * Callback pattern is more native for functional languages where functions are treated as first-class citizens. | ||||
|  * Prior to Java 8 callbacks can be simulated using simple (alike command) interfaces. | ||||
|  *  | ||||
|  */ | ||||
| public class App { | ||||
|  | ||||
|   | ||||
| @@ -1,7 +1,9 @@ | ||||
| package com.iluwatar.callback; | ||||
|  | ||||
| /** | ||||
|  *  | ||||
|  * Callback interface | ||||
|  *  | ||||
|  */ | ||||
| public interface Callback { | ||||
|  | ||||
|   | ||||
| @@ -1,7 +1,9 @@ | ||||
| package com.iluwatar.callback; | ||||
|  | ||||
| /** | ||||
|  *  | ||||
|  * Implementation of task that need to be executed | ||||
|  *  | ||||
|  */ | ||||
| public class SimpleTask extends Task { | ||||
|  | ||||
|   | ||||
| @@ -1,7 +1,9 @@ | ||||
| package com.iluwatar.callback; | ||||
|  | ||||
| /** | ||||
|  *  | ||||
|  * Template-method class for callback hook execution | ||||
|  *  | ||||
|  */ | ||||
| public abstract class Task { | ||||
|  | ||||
|   | ||||
| @@ -4,6 +4,11 @@ import org.junit.Test; | ||||
|  | ||||
| import com.iluwatar.callback.App; | ||||
|  | ||||
| /** | ||||
|  *  | ||||
|  * Application test | ||||
|  * | ||||
|  */ | ||||
| public class AppTest { | ||||
|  | ||||
| 	@Test | ||||
|   | ||||
		Reference in New Issue
	
	Block a user