package org.tallison.lucene.syns; public class DescendingValueComparator implements ValueComparator{ public int compare(Valuable e1, Valuable e2){ if (e1.getValue() > e2.getValue()) return -1; if (e1.getValue() < e2.getValue()) return 1; return e1.getKey().compareTo(e2.getKey()); } }