public class Experiments extends Object
| Constructor and Description |
|---|
Experiments(List<Experiment> draft,
List<Experiment> running) |
| Modifier and Type | Method and Description |
|---|---|
List<Experiment> |
getAll()
All experiments, draft and running
|
Experiment |
getCurrent()
First running experiment.
|
List<Experiment> |
getDraft() |
List<Experiment> |
getRunning() |
static Experiments |
parse(com.fasterxml.jackson.databind.JsonNode json) |
String |
refFromCookie(String cookie)
Get the current running experiment variation ref from a cookie content
|
public Experiments(List<Experiment> draft, List<Experiment> running)
public List<Experiment> getAll()
public List<Experiment> getDraft()
public List<Experiment> getRunning()
public Experiment getCurrent()
public String refFromCookie(String cookie)
cookie - the value of the cookie received from the requestpublic static Experiments parse(com.fasterxml.jackson.databind.JsonNode json)
Copyright © 2016. All rights reserved.