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 Constructor Description CheckClearAttributesAttributeImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclear()voidcopyTo(AttributeImpl target)booleanequals(Object other)booleangetAndResetClearCalled()inthashCode()voidreflectWith(AttributeReflector reflector)-
Methods inherited from class org.apache.lucene.util.AttributeImpl
clone, end, reflectAsString
-
-
-
-
Method Detail
-
getAndResetClearCalled
public boolean getAndResetClearCalled()
- Specified by:
getAndResetClearCalledin interfaceBaseTokenStreamTestCase.CheckClearAttributesAttribute
-
clear
public void clear()
- Specified by:
clearin classAttributeImpl
-
copyTo
public void copyTo(AttributeImpl target)
- Specified by:
copyToin classAttributeImpl
-
reflectWith
public void reflectWith(AttributeReflector reflector)
- Specified by:
reflectWithin classAttributeImpl
-
-