com.configcat.Config Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of configcat-java-client Show documentation
Show all versions of configcat-java-client Show documentation
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();
}