com.twitter.common.text
Class DefaultTextTokenizer.Builder

java.lang.Object
  extended by com.twitter.common.text.DefaultTextTokenizer.Builder
Enclosing class:
DefaultTextTokenizer

public static final class DefaultTextTokenizer.Builder
extends Object

Builder for DefaultTextTokenizer


Constructor Summary
DefaultTextTokenizer.Builder()
           
 
Method Summary
 DefaultTextTokenizer build()
           
 DefaultTextTokenizer.Builder setKeepPunctuation(boolean keepPunctuation)
          Set to true to retain punctuation in output.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultTextTokenizer.Builder

public DefaultTextTokenizer.Builder()
Method Detail

setKeepPunctuation

public DefaultTextTokenizer.Builder setKeepPunctuation(boolean keepPunctuation)
Set to true to retain punctuation in output.

Parameters:
keepPunctuation - true to retain punctuation
Returns:
this Builder

build

public DefaultTextTokenizer build()