Lesezeichen

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


Beschreibung

use Apache Commons Lang:

result = ObjectUtils.compare(firstComparable, secondComparable)

Vorschau

Tags

Nutzer

  • @jil

Kommentare und Rezensionen