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 intcompareTo(TokenIntPair o)Descending by value, ascending by tokenbooleanequals(Object o)StringgetToken()longgetValue()inthashCode()StringtoString()
-
-
-
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:
compareToin interfaceComparable<TokenIntPair>- Parameters:
o- other tokenlong pair- Returns:
- comparison
-
-