redis.clients.jedis.resps.CommandDocument Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jedis_preview Show documentation
Show all versions of jedis_preview Show documentation
Jedis is a blazingly small and sane Redis java client.
The newest version!
package redis.clients.jedis.resps;
import redis.clients.jedis.Builder;
import static redis.clients.jedis.BuilderFactory.STRING;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.util.Map;
import java.util.stream.Collectors;
import redis.clients.jedis.util.KeyValue;
public class CommandDocument {
private static final String SUMMARY_STR = "summary";
private static final String SINCE_STR = "since";
private static final String GROUP_STR = "group";
private static final String COMPLEXITY_STR = "complexity";
private static final String HISTORY_STR = "history";
private final String summary;
private final String since;
private final String group;
private final String complexity;
private final List history;
@Deprecated
public CommandDocument(String summary, String since, String group, String complexity, List history) {
this.summary = summary;
this.since = since;
this.group = group;
this.complexity = complexity;
this.history = (List) history;
}
public CommandDocument(Map map) {
this.summary = (String) map.get(SUMMARY_STR);
this.since = (String) map.get(SINCE_STR);
this.group = (String) map.get(GROUP_STR);
this.complexity = (String) map.get(COMPLEXITY_STR);
List