mirror of
https://github.com/tiennm99/java-design-patterns.git
synced 2026-05-17 08:59:12 +00:00
Removed AvoidStarImport Rule
Added JavaDocType Rule
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user