These curves resemble compareTo() a lot, because that method does the work of max().