Package org.apache.lucene.analysis
Class BaseTokenStreamTestCase.CheckClearAttributesAttributeImpl
- java.lang.Object
-
- org.apache.lucene.util.AttributeImpl
-
- org.apache.lucene.analysis.BaseTokenStreamTestCase.CheckClearAttributesAttributeImpl
-
- All Implemented Interfaces:
Serializable,Cloneable,BaseTokenStreamTestCase.CheckClearAttributesAttribute,org.apache.lucene.util.Attribute
- Enclosing class:
- BaseTokenStreamTestCase
public static final class BaseTokenStreamTestCase.CheckClearAttributesAttributeImpl extends org.apache.lucene.util.AttributeImpl implements BaseTokenStreamTestCase.CheckClearAttributesAttribute
Attribute that records if it was cleared or not. This is used for testing that clearAttributes() was called correctly.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description CheckClearAttributesAttributeImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclear()voidcopyTo(org.apache.lucene.util.AttributeImpl target)booleanequals(Object other)booleangetAndResetClearCalled()inthashCode()
-
-
-
Method Detail
-
getAndResetClearCalled
public boolean getAndResetClearCalled()
- Specified by:
getAndResetClearCalledin interfaceBaseTokenStreamTestCase.CheckClearAttributesAttribute
-
clear
public void clear()
- Specified by:
clearin classorg.apache.lucene.util.AttributeImpl
-
copyTo
public void copyTo(org.apache.lucene.util.AttributeImpl target)
- Specified by:
copyToin classorg.apache.lucene.util.AttributeImpl
-
-