aboutsummaryrefslogtreecommitdiffstats
path: root/flags/src/main/java/com/yahoo/vespa/flags/ListFlag.java
blob: e39773a6357762caac625f00ea848d46485284fb (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// Copyright Vespa.ai. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.vespa.flags;

import java.util.List;

/**
 * @author freva
 */
public class ListFlag<T> extends FlagImpl<List<T>, ListFlag<T>> {
    public ListFlag(FlagId id, List<T> defaultValue, FetchVector vector, FlagSerializer<List<T>> serializer, FlagSource source) {
        super(id, defaultValue, vector, serializer, source, ListFlag::new);
    }

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

    public List<T> value() {
        return boxedValue();
    }
}