mirror of
https://github.com/UnlegitDqrk/Potato.git
synced 2025-10-02 06:30:15 +02:00
Re-order methods for consistency
This commit is contained in:
@@ -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.
|
* Checks if the potato is succesfully boiled at the right amount of degrees.
|
||||||
*
|
*
|
||||||
@@ -138,6 +125,19 @@ public class Potato implements Tuber {
|
|||||||
return true;
|
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()}.
|
* Checks if this potato is delicious. Returns the result of {@link #isBaked()}.
|
||||||
*
|
*
|
||||||
|
Reference in New Issue
Block a user