com.twitter.common.text.token.attribute
Class TokenTypeAttributeImpl

java.lang.Object
  extended by org.apache.lucene.util.AttributeImpl
      extended by com.twitter.common.text.token.attribute.TokenTypeAttributeImpl
All Implemented Interfaces:
TokenTypeAttribute, Serializable, Cloneable, org.apache.lucene.util.Attribute

public class TokenTypeAttributeImpl
extends org.apache.lucene.util.AttributeImpl
implements TokenTypeAttribute

Implementation of TokenTypeAttribute.

Note that this class explicitly suppresses the ability for instance to be serialized, inherited via AttributeImpl.

See Also:
Serialized Form

Constructor Summary
TokenTypeAttributeImpl()
           
 
Method Summary
 void clear()
           
 void copyTo(org.apache.lucene.util.AttributeImpl target)
           
 boolean equals(Object other)
           
 TokenType getType()
          Returns the type of the current token.
 int hashCode()
           
 void setType(TokenType type)
          Sets the type of the current token.
 
Methods inherited from class org.apache.lucene.util.AttributeImpl
clone, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TokenTypeAttributeImpl

public TokenTypeAttributeImpl()
Method Detail

setType

public void setType(TokenType type)
Description copied from interface: TokenTypeAttribute
Sets the type of the current token.

Specified by:
setType in interface TokenTypeAttribute
Parameters:
type - type of the current token.

getType

public TokenType getType()
Description copied from interface: TokenTypeAttribute
Returns the type of the current token.

Specified by:
getType in interface TokenTypeAttribute
Returns:
type of the current token.

clear

public void clear()
Specified by:
clear in class org.apache.lucene.util.AttributeImpl

hashCode

public int hashCode()
Specified by:
hashCode in class org.apache.lucene.util.AttributeImpl

equals

public boolean equals(Object other)
Specified by:
equals in class org.apache.lucene.util.AttributeImpl

copyTo

public void copyTo(org.apache.lucene.util.AttributeImpl target)
Specified by:
copyTo in class org.apache.lucene.util.AttributeImpl