bookmark

java - How to simplify a null-safe compareTo() implementation? - Stack Overflow


Description

use Apache Commons Lang:

result = ObjectUtils.compare(firstComparable, secondComparable)

Preview

Tags

Users

  • @jil

Comments and Reviews