aboutsummaryrefslogtreecommitdiffstats
path: root/flags/src/main/java/com/yahoo/vespa/flags/StringFlag.java
blob: 5034d2a0001208151f939405df5b0b1fb53113ec (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 StringFlag extends FlagImpl<String, StringFlag> {
    public StringFlag(FlagId id, String defaultValue, FetchVector vector, FlagSerializer<String> serializer, FlagSource source) {
        super(id, defaultValue, vector, serializer, source, StringFlag::new);
    }

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

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