All Downloads are FREE. Search and download functionalities are using the official Maven repository.

querqy.trie.model.LookupState Maven / Gradle / Ivy

There is a newer version: 3.18.1
Show newest version
package querqy.trie.model;

import querqy.trie.State;

import java.util.Queue;

public class LookupState {

    public final int lookupOffsetStart;
    public final Queue terms;

    private State state;

    public LookupState(final int lookupOffsetStart, final Queue terms, final State state) {
        this.lookupOffsetStart = lookupOffsetStart;
        this.terms = terms;
        this.state = state;
    }

    public State getState() {
        return state;
    }

    public LookupState setState(final State state) {
        this.state = state;
        return this;
    }

    public LookupState addTerm(final CharSequence term) {
        terms.add(term);
        return this;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy