public class TokenIntPair extends Object implements Comparable<TokenIntPair>
Constructor and Description |
---|
TokenIntPair(String token,
int value) |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(TokenIntPair o)
Descending by value, ascending by token
|
boolean |
equals(Object o) |
String |
getToken() |
long |
getValue() |
int |
hashCode() |
String |
toString() |
public TokenIntPair(String token, int value)
public long getValue()
public String getToken()
public int compareTo(TokenIntPair o)
compareTo
in interface Comparable<TokenIntPair>
o
- other tokenlong pairCopyright © 2007–2017 The Apache Software Foundation. All rights reserved.