format code
This commit is contained in:
@@ -14,11 +14,9 @@ package com.iluwatar.value.object;
|
||||
*
|
||||
* For more specific and strict rules to implement value objects check the rules from Stephen
|
||||
* Colebourne's term VALJO : http://blog.joda.org/2014/03/valjos-value-java-objects.html
|
||||
*
|
||||
*/
|
||||
public class App {
|
||||
/**
|
||||
*
|
||||
* This practice creates three HeroStats(Value object) and checks equality between those.
|
||||
*/
|
||||
public static void main(String[] args) {
|
||||
|
@@ -7,14 +7,12 @@ package com.iluwatar.value.object;
|
||||
*/
|
||||
public class HeroStat {
|
||||
|
||||
|
||||
// Stats for a hero
|
||||
|
||||
private final int strength;
|
||||
private final int intelligence;
|
||||
private final int luck;
|
||||
|
||||
|
||||
// All constructors must be private.
|
||||
private HeroStat(int strength, int intelligence, int luck) {
|
||||
super();
|
||||
@@ -87,7 +85,6 @@ public class HeroStat {
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
// The clone() method should not be public. Just don't override it.
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user