Package com.yahoo.language.process
Class SpecialTokens.Token
java.lang.Object
com.yahoo.language.process.SpecialTokens.Token
- All Implemented Interfaces:
Comparable<SpecialTokens.Token>
- Enclosing class:
- SpecialTokens
public static final class SpecialTokens.Token
extends Object
implements Comparable<SpecialTokens.Token>
An immutable special token
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
compareTo
(SpecialTokens.Token other) boolean
int
hashCode()
Returns the token to replace occurrences of this by, which equals token() unless this has a replacement.token()
Returns the special tokentoString()
-
Constructor Details
-
Token
Creates a special token -
Token
Creates a special token which will be represented by the given replacement token
-
-
Method Details
-
token
Returns the special token -
replacement
Returns the token to replace occurrences of this by, which equals token() unless this has a replacement. -
compareTo
- Specified by:
compareTo
in interfaceComparable<SpecialTokens.Token>
-
equals
-
hashCode
public int hashCode() -
toString
-