How to compare two Java.Instants if one (or both) of them can be equal to null?

前端 未结 0 1619
不知归路
不知归路 2020-12-21 04:08

Is there a beautiful and logical way to compare two Instants if one or both of them could be equal to null? If just use the “compareTo” method, then it will throw NullPointe

相关标签:
回答
  • 消灭零回复
提交回复
热议问题