org.apache.lucene.analysis
Class Token.TokenAttributeFactory
java.lang.Object
org.apache.lucene.util.AttributeSource.AttributeFactory
org.apache.lucene.analysis.Token.TokenAttributeFactory
- Enclosing class:
- Token
public static final class Token.TokenAttributeFactory
- extends AttributeSource.AttributeFactory
Expert: Creates a TokenAttributeFactory returning Token
as instance for the basic attributes
and for all other attributes calls the given delegate factory.
- Since:
- 3.0
Token.TokenAttributeFactory
public Token.TokenAttributeFactory(AttributeSource.AttributeFactory delegate)
- Expert: Creates an AttributeFactory returning
Token
as instance for the basic attributes
and for all other attributes calls the given delegate factory.
createAttributeInstance
public AttributeImpl createAttributeInstance(Class<? extends Attribute> attClass)
- Description copied from class:
AttributeSource.AttributeFactory
- returns an
AttributeImpl
for the supplied Attribute
interface class.
- Specified by:
createAttributeInstance
in class AttributeSource.AttributeFactory
equals
public boolean equals(Object other)
- Overrides:
equals
in class Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object