Re-order methods for consistency

This commit is contained in:
Trophonix
2017-06-21 09:16:59 -05:00
parent c69264a552
commit b0ea26519d

View File

@@ -108,19 +108,6 @@ public class Potato implements Tuber {
}
}
/**
* Checks if this potato is cooked. Returns the result of {@link #hasBeenBoiledInWater()}.
*
* @return true if this potato is baked, false if otherwise
*/
public boolean isBoiled() {
try {
return this.hasBeenBoiledInWater();
} catch (BurntException e) {
return false;
}
}
/**
* Checks if the potato is succesfully boiled at the right amount of degrees.
*
@@ -138,6 +125,19 @@ public class Potato implements Tuber {
return true;
}
/**
* Checks if this potato is cooked. Returns the result of {@link #hasBeenBoiledInWater()}.
*
* @return true if this potato is baked, false if otherwise
*/
public boolean isBoiled() {
try {
return this.hasBeenBoiledInWater();
} catch (BurntException e) {
return false;
}
}
/**
* Checks if this potato is delicious. Returns the result of {@link #isBaked()}.
*