Class AbstractRegexBasedTermSplitter

  • All Implemented Interfaces:
    TermSplitter
    Direct Known Subclasses:
    CharacterTermSplitter

    public abstract class AbstractRegexBasedTermSplitter
    extends java.lang.Object
    implements TermSplitter
    Allows the user to split a string using a regex as the delimiter.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String[] split​(java.lang.String input)
      Returns a given string an array of terms.
      • Methods inherited from class java.lang.Object

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

      • AbstractRegexBasedTermSplitter

        public AbstractRegexBasedTermSplitter​(java.lang.String delimiter)
    • Method Detail

      • split

        public java.lang.String[] split​(java.lang.String input)
        Description copied from interface: TermSplitter
        Returns a given string an array of terms.
        Specified by:
        split in interface TermSplitter
        Parameters:
        input - the string to split
        Returns:
        array of terms