mirror of
https://github.com/tiennm99/java-design-patterns.git
synced 2026-05-15 12:59:00 +00:00
feature: Add Service to Worker Pattern (#2004)
* update service to worker * update pom.xml and make GiantModel public * add javadoc for GaintModel
This commit is contained in:
+4
-1
@@ -33,7 +33,10 @@ public class GiantModel {
|
||||
private Fatigue fatigue;
|
||||
private Nourishment nourishment;
|
||||
|
||||
GiantModel(Health health, Fatigue fatigue, Nourishment nourishment) {
|
||||
/**
|
||||
* Instantiates a new GiantModel.
|
||||
*/
|
||||
public GiantModel(Health health, Fatigue fatigue, Nourishment nourishment) {
|
||||
this.health = health;
|
||||
this.fatigue = fatigue;
|
||||
this.nourishment = nourishment;
|
||||
|
||||
Reference in New Issue
Block a user