public class PositionIncrementAttributeImpl extends AttributeImpl implements PositionIncrementAttribute, Cloneable
PositionIncrementAttribute
.Constructor and Description |
---|
PositionIncrementAttributeImpl()
Initialize this attribute with position increment of 1
|
Modifier and Type | Method and Description |
---|---|
void |
clear()
Clears the values in this AttributeImpl and resets it to its
default value.
|
void |
copyTo(AttributeImpl target)
Copies the values from this Attribute into the passed-in
target attribute.
|
boolean |
equals(Object other) |
int |
getPositionIncrement()
Returns the position increment of this Token.
|
int |
hashCode() |
void |
setPositionIncrement(int positionIncrement)
Set the position increment.
|
clone, reflectAsString, reflectWith
public PositionIncrementAttributeImpl()
public void setPositionIncrement(int positionIncrement)
PositionIncrementAttribute
setPositionIncrement
in interface PositionIncrementAttribute
positionIncrement
- the distance from the prior termPositionIncrementAttribute.getPositionIncrement()
public int getPositionIncrement()
PositionIncrementAttribute
getPositionIncrement
in interface PositionIncrementAttribute
PositionIncrementAttribute.setPositionIncrement(int)
public void clear()
AttributeImpl
clear
in class AttributeImpl
public void copyTo(AttributeImpl target)
AttributeImpl
copyTo
in class AttributeImpl
Copyright © 2000-2014 Apache Software Foundation. All Rights Reserved.