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

com.rbmhtechnology.vind.parser.queryparser.Query Maven / Gradle / Ivy

There is a newer version: 3.2.0
Show newest version
package com.rbmhtechnology.vind.parser.queryparser;

import com.google.common.base.Strings;

import java.util.ArrayList;
import java.util.stream.Collectors;
import java.util.stream.Stream;

public class Query extends ArrayList {
    private String text;

    public Query addText(String text) {
        this.text = Stream.of(this.text,text).filter(t -> !Strings.isNullOrEmpty(t)).collect(Collectors.joining(" "));
        return this;
    }

    public Query setText(String text ) {
        this.text = text;
        return this;
    }

    public String getText() {
        return text;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy