Package com.yahoo.language.process
Class SpecialTokens.Token
- java.lang.Object
-
- com.yahoo.language.process.SpecialTokens.Token
-
- All Implemented Interfaces:
java.lang.Comparable<SpecialTokens.Token>
- Enclosing class:
- SpecialTokens
public static final class SpecialTokens.Token extends java.lang.Object implements java.lang.Comparable<SpecialTokens.Token>
An immutable special token
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareTo(SpecialTokens.Token other)
boolean
equals(java.lang.Object other)
int
hashCode()
java.lang.String
replacement()
Returns the token to replace occurrences of this by, which equals token() unless this has a replacement.java.lang.String
token()
Returns the special tokenjava.lang.String
toString()
-
-
-
Method Detail
-
token
public java.lang.String token()
Returns the special token
-
replacement
public java.lang.String replacement()
Returns the token to replace occurrences of this by, which equals token() unless this has a replacement.
-
compareTo
public int compareTo(SpecialTokens.Token other)
- Specified by:
compareTo
in interfacejava.lang.Comparable<SpecialTokens.Token>
-
equals
public boolean equals(java.lang.Object other)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-