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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
clear()
void
copyTo
(AttributeImpl target) boolean
boolean
int
hashCode()
void
reflectWith
(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:
getAndResetClearCalled
in interfaceBaseTokenStreamTestCase.CheckClearAttributesAttribute
-
clear
public void clear()- Specified by:
clear
in classAttributeImpl
-
equals
-
hashCode
public int hashCode() -
copyTo
- Specified by:
copyTo
in classAttributeImpl
-
reflectWith
- Specified by:
reflectWith
in classAttributeImpl
-