You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This comes handy when converting a specific Traversable to an ordered collection like SortedSet or PriorityQueue. We could get rid of using instanceof.
This comes handy when converting a specific Traversable to an ordered collection like SortedSet or PriorityQueue. We could get rid of using
instanceof
.The new
Ordered
interface looks like this:It will be implemented by SortedSet, PriorityQueue, ... The existing
comparator()
methods need an@Override
annotation then.The text was updated successfully, but these errors were encountered: