public class WebPageComparator extends java.lang.Object implements java.util.Comparator<WebPage>
| Constructor and Description |
|---|
WebPageComparator() |
| Modifier and Type | Method and Description |
|---|---|
int |
compare(WebPage one,
WebPage two)
Compare two WebPages by their count, returning the highest first.
|
public int compare(WebPage one, WebPage two)
compare in interface java.util.Comparator<WebPage>one - a WebPage to compare.two - a WebPage to compare.