Class Token.TokenAttributeFactory
Expert: Creates a Token.TokenAttributeFactory returning Token as instance for the basic attributes and for all other attributes calls the given delegate factory. @since 3.0
Inherited Members
Namespace: Lucene.Net.Analysis
Assembly: Lucene.Net.dll
Syntax
public sealed class Token.TokenAttributeFactory : AttributeSource.AttributeFactory
Constructors
TokenAttributeFactory(AttributeFactory)
Expert: Creates an AttributeSource.AttributeFactory returning Token as instance for the basic attributes and for all other attributes calls the given delegate factory.
Declaration
public TokenAttributeFactory(AttributeSource.AttributeFactory @delegate)
Parameters
Type | Name | Description |
---|---|---|
AttributeSource.AttributeFactory | delegate |
Methods
CreateAttributeInstance<T>()
returns an Attribute for the supplied IAttribute interface.
Declaration
public override Attribute CreateAttributeInstance<T>() where T : IAttribute
Returns
Type | Description |
---|---|
Attribute |
Type Parameters
Name | Description |
---|---|
T |
Overrides
Equals(object)
Determines whether the specified object is equal to the current object.
Declaration
public override bool Equals(object other)
Parameters
Type | Name | Description |
---|---|---|
object | other |
Returns
Type | Description |
---|---|
bool | true if the specified object is equal to the current object; otherwise, false. |
Overrides
GetHashCode()
Serves as the default hash function.
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
int | A hash code for the current object. |