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

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

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