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

ai.grakn.redismock.RedisCommand Maven / Gradle / Ivy

There is a newer version: 0.1.6
Show newest version
package ai.grakn.redismock;

import com.google.common.collect.Lists;

import java.util.List;
import java.util.stream.Collectors;

/**
 * Created by Xiaolu on 2015/4/20.
 */
public class RedisCommand {

    private List params = Lists.newArrayList();

    RedisCommand() {}

    void addParameter(Slice token) {
        this.params.add(token);
    }

    public List getParameters() {
        return params;
    }

    @Override
    public String toString(){
        return params.stream().map(Slice::toString).collect(Collectors.joining(" "));
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy