Class ParsedSplit


  • public class ParsedSplit
    extends Object
    a value class representing an io.codigo.dtos.Experiment. Why are we not using that class? Because it does not have the logic of matching. ParsedExperiment has the matchers that also encapsulate the logic of matching. We can easily cache this object.
    Author:
    adil
    • Constructor Detail

      • ParsedSplit

        public ParsedSplit​(String feature,
                           int seed,
                           boolean killed,
                           String defaultTreatment,
                           List<ParsedCondition> matcherAndSplits,
                           String trafficTypeName,
                           long changeNumber,
                           int trafficAllocation,
                           int trafficAllocationSeed,
                           int algo,
                           Map<String,​String> configurations)
    • Method Detail

      • createParsedSplitForTests

        public static ParsedSplit createParsedSplitForTests​(String feature,
                                                            int seed,
                                                            boolean killed,
                                                            String defaultTreatment,
                                                            List<ParsedCondition> matcherAndSplits,
                                                            String trafficTypeName,
                                                            long changeNumber,
                                                            int algo)
      • feature

        public String feature()
      • trafficAllocation

        public int trafficAllocation()
      • trafficAllocationSeed

        public int trafficAllocationSeed()
      • seed

        public int seed()
      • killed

        public boolean killed()
      • defaultTreatment

        public String defaultTreatment()
      • trafficTypeName

        public String trafficTypeName()
      • changeNumber

        public long changeNumber()
      • algo

        public int algo()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object