All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.configcat.Config Maven / Gradle / Ivy

Go to download

Java SDK for ConfigCat, a feature flag, feature toggle, and configuration management service. That lets you launch new features and change your software configuration remotely without actually (re)deploying code. ConfigCat even helps you do controlled roll-outs like canary releases and blue-green deployments.

The newest version!
package com.configcat;

import com.google.gson.annotations.SerializedName;

import java.util.HashMap;
import java.util.Map;

/**
 * Details of a ConfigCat config.
 */
public class Config {

    @SerializedName(value = "p")
    private Preferences preferences;
    @SerializedName(value = "f")
    private final Map entries = new HashMap<>();
    @SerializedName(value = "s")
    private Segment[] segments;

    /**
     * The config preferences.
     */
    public Preferences getPreferences() {
        return preferences;
    }

    /**
     * The list of segments.
     */
    public Segment[] getSegments() {
        return segments;
    }

    /**
     * The map of settings.
     */
    public Map getEntries() {
        return entries;
    }

    boolean isEmpty() {
        return EMPTY.equals(this);
    }

    public static final Config EMPTY = new Config();
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy