Package org.apache.lucene.tests.analysis
Class BaseTokenStreamTestCase.CheckClearAttributesAttributeImpl
java.lang.Object
org.apache.lucene.util.AttributeImpl
org.apache.lucene.tests.analysis.BaseTokenStreamTestCase.CheckClearAttributesAttributeImpl
- All Implemented Interfaces:
Cloneable,BaseTokenStreamTestCase.CheckClearAttributesAttribute,Attribute
- Enclosing class:
BaseTokenStreamTestCase
public static final class BaseTokenStreamTestCase.CheckClearAttributesAttributeImpl
extends AttributeImpl
implements BaseTokenStreamTestCase.CheckClearAttributesAttribute
Attribute that records if it was cleared or not. This is used for testing that
clearAttributes() was called correctly.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()voidcopyTo(AttributeImpl target) booleanbooleaninthashCode()voidreflectWith(AttributeReflector reflector) Methods inherited from class org.apache.lucene.util.AttributeImpl
clone, end, reflectAsString
-
Constructor Details
-
CheckClearAttributesAttributeImpl
public CheckClearAttributesAttributeImpl()
-
-
Method Details
-
getAndResetClearCalled
public boolean getAndResetClearCalled()- Specified by:
getAndResetClearCalledin interfaceBaseTokenStreamTestCase.CheckClearAttributesAttribute
-
clear
public void clear()- Specified by:
clearin classAttributeImpl
-
equals
-
hashCode
public int hashCode() -
copyTo
- Specified by:
copyToin classAttributeImpl
-
reflectWith
- Specified by:
reflectWithin classAttributeImpl
-