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

com.lambdaworks.redis.output.BooleanListOutput 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.util.ArrayList;
import java.util.List;

/**
 * {@link java.util.List} of boolean output.
 *
 * @author Will Glozer
 */
public class BooleanListOutput extends CommandOutput> {
    public BooleanListOutput(RedisCodec codec) {
        super(codec, new ArrayList());
    }

    @Override
    public void set(long integer) {
        output.add((integer == 1) ? Boolean.TRUE : Boolean.FALSE);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy