com.twitter.common.text.detector
Class RegexDetector.AbstractBuilder<N extends RegexDetector,T extends RegexDetector.AbstractBuilder<N,T>>

java.lang.Object
  extended by com.twitter.common.text.detector.RegexDetector.AbstractBuilder<N,T>
Direct Known Subclasses:
RegexDetector.Builder
Enclosing class:
RegexDetector

public abstract static class RegexDetector.AbstractBuilder<N extends RegexDetector,T extends RegexDetector.AbstractBuilder<N,T>>
extends Object


Constructor Summary
protected RegexDetector.AbstractBuilder(N detector)
           
 
Method Summary
 N build()
           
protected  N detector()
           
protected  T self()
           
 T setRegexPattern(Pattern regex)
           
 T setType(TokenType type)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RegexDetector.AbstractBuilder

protected RegexDetector.AbstractBuilder(N detector)
Method Detail

self

protected T self()

detector

protected N detector()

setRegexPattern

public T setRegexPattern(Pattern regex)

setType

public T setType(TokenType type)

build

public N build()