Class 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 string
      java.lang.String extractFrom​(java.lang.String input)
      Returns this gram as a string from the input string
      int getCodePointCount()  
      int getStart()  
      int hashCode()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Gram

        public Gram​(int start,
                    int codePointCount)
    • 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 class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object