
com.lambdaworks.redis.output.MapValueListOutput Maven / Gradle / Ivy
// Copyright (C) 2011 - Will Glozer. All rights reserved.
package com.lambdaworks.redis.output;
import com.lambdaworks.redis.codec.RedisCodec;
import com.lambdaworks.redis.protocol.CommandOutput;
import java.nio.ByteBuffer;
import java.util.ArrayList;
import java.util.List;
/**
* {@link List} of values output.
*
* @param Value type.
*
* @author Will Glozer
*/
public class MapValueListOutput extends CommandOutput> {
public MapValueListOutput(RedisCodec codec) {
super(codec, new ArrayList());
}
@Override
public void set(ByteBuffer bytes) {
output.add(bytes == null ? null : codec.decodeMapValue(bytes));
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy