Skip to content

Glossary: Algorithms Beyond the Basics in Java

Comparator.comparingInt

Also written: Comparator, comparingInt

A way to tell Java how to order objects by a number, given as a lambda like `b -> b.end()`. It is used to sort bookings and to order heaps.

Where the book teaches it

Related terms

lambdaPriorityQueuemethod reference