mirror of
https://github.com/exituser/Brewery.git
synced 2026-09-17 07:49:03 +00:00
Slightly larger En/Decoder buffers, isSimilar for Brew
This commit is contained in:
@@ -222,6 +222,20 @@ public class Brew {
|
||||
return copy;
|
||||
}*/
|
||||
|
||||
public boolean isSimilar(Brew brew) {
|
||||
if (brew == null) return false;
|
||||
if (equals(brew)) return true;
|
||||
return quality == brew.quality &&
|
||||
distillRuns == brew.distillRuns &&
|
||||
Float.compare(brew.ageTime, ageTime) == 0 &&
|
||||
Float.compare(brew.wood, wood) == 0 &&
|
||||
unlabeled == brew.unlabeled &&
|
||||
persistent == brew.persistent &&
|
||||
immutable == brew.immutable &&
|
||||
ingredients.equals(brew.ingredients) &&
|
||||
currentRecipe != null ? currentRecipe.equals(brew.currentRecipe) : brew.currentRecipe == null;
|
||||
}
|
||||
|
||||
// Clones this instance
|
||||
@Override
|
||||
public Brew clone() throws CloneNotSupportedException {
|
||||
|
||||
Reference in New Issue
Block a user