aboutsummaryrefslogtreecommitdiffstats
path: root/flags/src/main/java/com/yahoo/vespa/flags/DoubleFlag.java
blob: 05887331d0ed84e52fe3be170d4392e26751c6ac (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// 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 freva
 */
public class DoubleFlag extends FlagImpl<Double, DoubleFlag> {
    public DoubleFlag(FlagId id, Double defaultValue, FetchVector vector, FlagSerializer<Double> serializer, FlagSource source) {
        super(id, defaultValue, vector, serializer, source, DoubleFlag::new);
    }

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

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