public class ProjectConfigUtils
extends java.lang.Object
| Constructor and Description |
|---|
ProjectConfigUtils() |
| Modifier and Type | Method and Description |
|---|---|
static java.util.Map<java.lang.String,java.util.List<java.lang.String>> |
generateExperimentFeatureMapping(java.util.List<FeatureFlag> featureFlags)
Helper method for creating convenience mappings of ExperimentID to featureFlags it is included in.
|
static <T extends IdMapped> |
generateIdMapping(java.util.List<T> nameables)
Helper method for creating convenience mappings from ID to entity
|
static <T extends IdKeyMapped> |
generateNameMapping(java.util.List<T> nameables)
Helper method for creating convenience mappings from key to entity
|
public static <T extends IdKeyMapped> java.util.Map<java.lang.String,T> generateNameMapping(java.util.List<T> nameables)
T - This is the type parameternameables - The list of IdMapped entitiespublic static <T extends IdMapped> java.util.Map<java.lang.String,T> generateIdMapping(java.util.List<T> nameables)
T - This is the type parameternameables - The list of IdMapped entitiespublic static java.util.Map<java.lang.String,java.util.List<java.lang.String>> generateExperimentFeatureMapping(java.util.List<FeatureFlag> featureFlags)
featureFlags - The list of feture flags