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

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

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