1. BigDecimal: Can the Java compiler optimize away multiplications by 1? stackoverflow.comDoes the Java compiler remove multiplications by 1, when talking about BigDecimal? I'm standing in something similar to this:
Where the getOneTwoOrThree ... |
2. Analog of StringBuilder for BigDecimal stackoverflow.comI've got a list of BigDecimals to sum. If they were Strings to concatenate, I would use StringBuilder to reduce object creation. Is there something similar for BigDecimal? Or maybe I ... |