Join Slack
Powered by
Is there no buildin comparator for booleans? Like ...
# getting-started
k
karelpeeters
07/31/2018, 9:09 PM
Is there no buildin comparator for booleans? Like there is
nullFirst
for nulls.
h
hho
08/01/2018, 6:09 AM
Boolean itself implements
Comparable<Boolean>
, so all natural-order sorting should just work (sorting
false
first).
k
karelpeeters
08/01/2018, 7:55 AM
Damm how didn't I think about that. Thanks!
Open in Slack
Previous
Next