Re-order methods for consistency
This commit is contained in:
parent
c69264a552
commit
b0ea26519d
|
@ -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()}.
|
||||
*
|
||||
|
|
Loading…
Reference in New Issue