public class SuggestItem extends Object implements Comparator<SuggestItem>, Comparable<SuggestItem>
Constructor and Description |
---|
SuggestItem(String term,
int distance,
long count) |
Modifier and Type | Method and Description |
---|---|
SuggestItem |
clone() |
int |
compare(SuggestItem suggestItem,
SuggestItem t1) |
int |
compareTo(SuggestItem other) |
boolean |
equals(Object obj) |
int |
hashCode() |
String |
toString() |
finalize, getClass, notify, notifyAll, wait, wait, wait
comparing, comparing, comparingDouble, comparingInt, comparingLong, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
public String term
public int distance
public long count
public SuggestItem(String term, int distance, long count)
public int compare(SuggestItem suggestItem, SuggestItem t1)
compare
in interface Comparator<SuggestItem>
public boolean equals(Object obj)
equals
in interface Comparator<SuggestItem>
equals
in class Object
public int compareTo(SuggestItem other)
compareTo
in interface Comparable<SuggestItem>
public SuggestItem clone()