@NonNull private static Config createSampleConfig(){
  List<Rule> rules=new ArrayList<>();
  Value value1=new Value(14,23,null,null,null,null,null,null);
  Value value2=new Value(null,null,null,null,1453196880000L,null,null,null);
  String metadata="sample ruleMetadata";
  rules.add(new Rule(Toggle.DISABLED,metadata,value1));
  rules.add(new Rule(Toggle.DISABLED,metadata,value2));
  Feature featureVideo=new Feature("video",null,Toggle.ENABLED,null,rules);
  Feature featureAudio=new Feature("mixpanel",null,Toggle.ENABLED,null,rules);
  Feature featureSpeech=new Feature("speech",null,Toggle.DISABLED,null,rules);
  List<Feature> features=new ArrayList<>();
  features.add(featureVideo);
  features.add(featureAudio);
  features.add(featureSpeech);
  return new Config("myapp",features);
}

@ NonNull private static Config createSampleConfig ( ) { List < Rule > rules = new ArrayList < > ( ) ; Value value1 = new Value ( 14 , 23 , null , null , null , null , null , null ) ; Value value2 = new Value ( null , null , null , null , 1453196880000L , null , null , null ) ; String metadata = "sample ruleMetadata" ; rules . add ( new Rule ( Toggle . DISABLED , metadata , value1 ) ) ; rules . add ( new Rule ( Toggle . DISABLED , metadata , value2 ) ) ; Feature featureVideo = new Feature ( "video" , null , Toggle . ENABLED , null , rules ) ; Feature featureAudio = new Feature ( "mixpanel" , null , Toggle . ENABLED , null , rules ) ; Feature featureSpeech = new Feature ( "speech" , null , Toggle . DISABLED , null , rules ) ; List < Feature > features = new ArrayList < > ( ) ; features . add ( featureVideo ) ; features . add ( featureAudio ) ; features . add ( featureSpeech ) ; return new Config ( "myapp" , features ) ; }
creates a sample config object with two sample rules
