MCPcopy Create free account
hub / github.com/apache/nutch / compare

Method compare

src/java/org/apache/nutch/util/Histogram.java:82–86  ·  view source on GitHub ↗
(Map.Entry<E, HistogramEntry> entry,
              Map.Entry<E, HistogramEntry> entry1)

Source from the content-addressed store, hash-verified

80 java.util.Collections.sort(list,
81 new Comparator<Map.Entry<E, HistogramEntry>>() {
82 public int compare(Map.Entry<E, HistogramEntry> entry,
83 Map.Entry<E, HistogramEntry> entry1) {
84 return (entry.getValue().equals(entry1.getValue()) ? 0 : (entry
85 .getValue().value < entry1.getValue().value ? 1 : -1));
86 }
87 });
88 List<E> list2 = new Vector<E>();
89 for (Map.Entry<E, HistogramEntry> entry : list) {

Callers

nothing calls this directly

Calls 2

equalsMethod · 0.45
getValueMethod · 0.45

Tested by

no test coverage detected