private static class J2DPrinter.PaperSourceComparator extends java.lang.Object implements java.util.Comparator<PaperSource>
Modifier and Type | Field and Description |
---|---|
(package private) static J2DPrinter.PaperSourceComparator |
theComparator |
Modifier | Constructor and Description |
---|---|
private |
PaperSourceComparator() |
Modifier and Type | Method and Description |
---|---|
int |
compare(PaperSource p1,
PaperSource p2)
This sorts papers lexically based on name, not size.
|
static final J2DPrinter.PaperSourceComparator theComparator
public int compare(PaperSource p1, PaperSource p2)
compare
in interface java.util.Comparator<PaperSource>