Removed AvoidStarImport Rule

Added JavaDocType Rule
This commit is contained in:
Mudit Porwal
2017-03-22 01:16:01 +08:00
parent 175e9f58c1
commit 09585c3874
105 changed files with 577 additions and 284 deletions
@@ -22,6 +22,9 @@
*/
package com.iluwatar.objectmother;
/**
* Defines all attributes and behaviour related to the King
*/
public class King implements Royalty {
boolean isDrunk = false;
boolean isHappy = false;
@@ -45,11 +48,11 @@ public class King implements Royalty {
public void makeUnhappy() {
isHappy = false;
}
public boolean isHappy() {
return isHappy;
}
/**
* Method to flirt to a queen.
* @param queen Queen which should be flirted.
@@ -61,6 +64,6 @@ public class King implements Royalty {
} else {
this.makeHappy();
}
}
}