Package com.yahoo.language.process
Class GramSplitter.Gram
- java.lang.Object
-
- com.yahoo.language.process.GramSplitter.Gram
-
- Enclosing class:
- GramSplitter
public static final class GramSplitter.Gram extends java.lang.Object
An immutable start index and length pair
-
-
Constructor Summary
Constructors Constructor Description Gram(int start, int codePointCount)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object o)
java.lang.String
extractFrom(com.yahoo.language.process.GramSplitter.UnicodeString input)
Returns this gram as a string from the input stringjava.lang.String
extractFrom(java.lang.String input)
Returns this gram as a string from the input stringint
getCodePointCount()
int
getStart()
int
hashCode()
-
-
-
Method Detail
-
getStart
public int getStart()
-
getCodePointCount
public int getCodePointCount()
-
extractFrom
public java.lang.String extractFrom(java.lang.String input)
Returns this gram as a string from the input string
-
extractFrom
public java.lang.String extractFrom(com.yahoo.language.process.GramSplitter.UnicodeString input)
Returns this gram as a string from the input string
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-