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

cloud.eppo.ufc.dto.FlagConfigResponse Maven / Gradle / Ivy

There is a newer version: 3.3.2
Show newest version
package cloud.eppo.ufc.dto;

import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;

public class FlagConfigResponse {
  private final Map flags;
  private final Map banditReferences;
  private final Format format;

  public FlagConfigResponse(
      Map flags,
      Map banditReferences,
      Format dataFormat) {
    this.flags = flags;
    this.banditReferences = banditReferences;
    format = dataFormat;
  }

  public FlagConfigResponse(
      Map flags, Map banditReferences) {
    this(flags, banditReferences, Format.SERVER);
  }

  public FlagConfigResponse() {
    this(new ConcurrentHashMap<>(), new ConcurrentHashMap<>(), Format.SERVER);
  }

  public Map getFlags() {
    return this.flags;
  }

  public Map getBanditReferences() {
    return this.banditReferences;
  }

  public Format getFormat() {
    return format;
  }

  public enum Format {
    SERVER,
    CLIENT
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy