I have Hibernate method which returns me a BigDecimal.
I have another API method to which I need to pass that number but it accepts Integer as parameter. I cannot change return types or variable types of both methods.
Now how to convert the BigDecimal into Integer and pass it to second method?
Is there a way out of this?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…