简化语句。

任何人都可以请帮助或建议简化以下条件:


if (null == parentInstruction.getQuantity() || 

       (null != parentInstruction.getQuantity() && 

           (

           (parentInstruction.getQuantity().compareTo(BigDecimal.ZERO) == 0 && !canSkipTransTypeCds(parentInstruction)) || 

           (parentInstruction.getQuantity().compareTo(BigDecimal.ZERO) != 0)

           )

       )

   )  {

   return true;

}


梵蒂冈之花
浏览 240回答 2
2回答
打开App,查看更多内容
随时随地看视频慕课网APP

相关分类

Java