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

com.yahoo.vespa.flags.BooleanFlag Maven / Gradle / Ivy

There is a newer version: 8.458.13
Show newest version
// Copyright Vespa.ai. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.vespa.flags;

/**
 * @author hakonhall
 */
public class BooleanFlag extends FlagImpl {
    public BooleanFlag(FlagId id, boolean defaultValue, FetchVector vector, FlagSerializer serializer, FlagSource source) {
        super(id, defaultValue, vector, serializer, source, BooleanFlag::new);
    }

    @Override
    public BooleanFlag self() {
        return this;
    }

    public boolean value() {
        return boxedValue();
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy