Java Java Data Structures Efficiency! Custom Serialization

Comparable implementation as Lambda

How do you know that only the compare method needs implementing. I can't see anything in https://docs.oracle.com/javase/8/docs/api/java/util/Comparator.html that indicates this.

Ignore me - looking at the wrong interface documentation.