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

com.rbmhtechnology.vind.api.query.get.RealTimeGet Maven / Gradle / Ivy

There is a newer version: 3.2.0
Show newest version
package com.rbmhtechnology.vind.api.query.get;

import java.util.ArrayList;
import java.util.Collections;
import java.util.List;

/**
 * Class to define a realTime get query document/s by id.
 * Created by fonso on 10/18/16.
 */
public class RealTimeGet {

    private final List values = new ArrayList<>();

    public RealTimeGet get(T ... value) {
        if(value!=null && value.length > 0){
            for (T v : value){
                this.values.add(v);
            }
        }
        return this;
    }

    public RealTimeGet get(List value) {
        if(value!=null && value.size() > 0){
            for (T v : value){
                this.values.add(v);
            }
        }
        return this;
    }

    public List getValues() {
        return Collections.unmodifiableList(values);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy