|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sourceforge.pebble.comparator.CountedUrlByCountComparator
public class CountedUrlByCountComparator
A comparator used to order CountedUrl instances, in reverse order of the count, and then alphabetically if instances have the same count.
Constructor Summary | |
---|---|
CountedUrlByCountComparator()
|
Method Summary | |
---|---|
int |
compare(CountedUrl c1,
CountedUrl c2)
Compares two objects. |
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 |
Constructor Detail |
---|
public CountedUrlByCountComparator()
Method Detail |
---|
public int compare(CountedUrl c1, CountedUrl c2)
compare
in interface java.util.Comparator<CountedUrl>
c1
- object 1c2
- object 2
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |