The 'validate' methods in JLootboxBuilder can be static (they do not use instance variables). You should also consider creating separate methods to validate even/odd and square root instead of passing values as flags- someday you may need to test for those values!
The 'validate' methods in JLootboxBuilder can be static (they do not use instance variables). You should also consider creating separate methods to validate even/odd and square root instead of passing values as flags- someday you may need to test for those values!