querqy.rewrite.commonrules.model.PositionSequence Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of querqy-core Show documentation
Show all versions of querqy-core Show documentation
Querqy library for query rewriting: Querqy Core
/**
*
*/
package querqy.rewrite.commonrules.model;
import java.util.LinkedList;
import java.util.List;
/**
* @author rene
*
*/
public class PositionSequence extends LinkedList> {
/**
*
*/
private static final long serialVersionUID = 1L;
public PositionSequence() {
}
public void nextPosition() {
super.add(new LinkedList());
}
/**
*
* Adds an element at the current position
*
* @param element The element to be added.
*/
public void addElement(T element) {
getLast().add(element);
}
}