Package main.br.ufpr.models.comparables
Class SobrenomeComparator
java.lang.Object
br.ufpr.models.comparables.SobrenomeComparator
- All Implemented Interfaces:
Comparator
Esta classe é um comparador de objetos Cliente.
Ela define um método de comparação com base no sobrenome do cliente.
-
Constructor Summary
-
Method Summary
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.util.Comparator
equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
Constructor Details
-
SobrenomeComparator
public SobrenomeComparator()
-
-
Method Details
-
compare
- Specified by:
compare
in interfaceComparator
-