Package algs21
Class XSortCards0.CardComparator
java.lang.Object
algs21.XSortCards0.CardComparator
- All Implemented Interfaces:
Comparator<String>
- Enclosing class:
XSortCards0
-
Constructor Summary
-
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, 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
-
CardComparator
private CardComparator()
-
-
Method Details
-
suit
-
rank
-
compare
- Specified by:
compare
in interfaceComparator<String>
-