Package main.br.ufpr.models.comparables
Class NomeComparator
java.lang.Object
br.ufpr.models.comparables.NomeComparator
- All Implemented Interfaces:
Comparator
Esta classe é um comparador de objetos Cliente.
Ela define um método de comparação com base no nome 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
-
NomeComparator
public NomeComparator()
-
-
Method Details
-
compare
- Specified by:
compare
in interfaceComparator
-