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 void
clear()
void
copyTo(org.apache.lucene.util.AttributeImpl target)
boolean
equals(Object other)
boolean
getAndResetClearCalled()
int
hashCode()
-
-
-
Method Detail
-
getAndResetClearCalled
public boolean getAndResetClearCalled()
- Specified by:
getAndResetClearCalled
in interfaceBaseTokenStreamTestCase.CheckClearAttributesAttribute
-
clear
public void clear()
- Specified by:
clear
in classorg.apache.lucene.util.AttributeImpl
-
copyTo
public void copyTo(org.apache.lucene.util.AttributeImpl target)
- Specified by:
copyTo
in classorg.apache.lucene.util.AttributeImpl
-
-