Code example for Comparator

Methods: compare