Package org.apache.tika.eval.core.tokens
Class TokenIntPair
- java.lang.Object
-
- org.apache.tika.eval.core.tokens.TokenIntPair
-
- All Implemented Interfaces:
Comparable<TokenIntPair>
public class TokenIntPair extends Object implements Comparable<TokenIntPair>
-
-
Constructor Summary
Constructors Constructor Description TokenIntPair(String token, int value)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareTo(TokenIntPair o)
Descending by value, ascending by tokenboolean
equals(Object o)
String
getToken()
long
getValue()
int
hashCode()
String
toString()
-
-
-
Constructor Detail
-
TokenIntPair
public TokenIntPair(String token, int value)
-
-
Method Detail
-
getValue
public long getValue()
-
getToken
public String getToken()
-
compareTo
public int compareTo(TokenIntPair o)
Descending by value, ascending by token- Specified by:
compareTo
in interfaceComparable<TokenIntPair>
- Parameters:
o
- other tokenlong pair- Returns:
- comparison
-
-