Package 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 returningToken
as instance for the basic attributes and for all other attributes calls the given delegate factory.- Since:
- 3.0
-
-
Field Summary
-
Fields inherited from class org.apache.lucene.util.AttributeSource.AttributeFactory
DEFAULT_ATTRIBUTE_FACTORY
-
-
Constructor Summary
Constructors Constructor Description TokenAttributeFactory(AttributeSource.AttributeFactory delegate)
Expert: Creates an AttributeFactory returningToken
as instance for the basic attributes and for all other attributes calls the given delegate factory.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AttributeImpl
createAttributeInstance(java.lang.Class<? extends Attribute> attClass)
returns anAttributeImpl
for the suppliedAttribute
interface class.boolean
equals(java.lang.Object other)
int
hashCode()
-
-
-
Constructor Detail
-
TokenAttributeFactory
public TokenAttributeFactory(AttributeSource.AttributeFactory delegate)
Expert: Creates an AttributeFactory returningToken
as instance for the basic attributes and for all other attributes calls the given delegate factory.
-
-
Method Detail
-
createAttributeInstance
public AttributeImpl createAttributeInstance(java.lang.Class<? extends Attribute> attClass)
Description copied from class:AttributeSource.AttributeFactory
returns anAttributeImpl
for the suppliedAttribute
interface class.- Specified by:
createAttributeInstance
in classAttributeSource.AttributeFactory
-
equals
public boolean equals(java.lang.Object other)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-