aboutsummaryrefslogtreecommitdiffstats
path: root/flags/src/main/java/com/yahoo/vespa/flags/JacksonFlag.java
blob: 8d234fa933d44467a2e01b054079278751dc27bc (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 hakonhall
 */
public class JacksonFlag<T> extends FlagImpl<T, JacksonFlag<T>> {
    public JacksonFlag(FlagId id, T defaultValue, FetchVector vector, FlagSerializer<T> serializer, FlagSource source) {
        super(id, defaultValue, vector, serializer, source, JacksonFlag::new);
    }

    @Override
    public JacksonFlag<T> self() {
        return this;
    }

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