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 Details

    • TokenIntPair

      public TokenIntPair(String token, int value)
  • Method Details

    • getValue

      public long getValue()
    • getToken

      public String getToken()
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • compareTo

      public int compareTo(TokenIntPair o)
      Descending by value, ascending by token
      Specified by:
      compareTo in interface Comparable<TokenIntPair>
      Parameters:
      o - other tokenlong pair
      Returns:
      comparison
    • toString

      public String toString()
      Overrides:
      toString in class Object