Comparator nullsFirst and nullsLast
Comparator nullsFirst and nullsLast methods returns a null-friendly comparator. It considers null to be less than or greater than any non-null value.
Comparator nullsFirst and nullsLast methods returns a null-friendly comparator. It considers null to be less than or greater than any non-null value.