Class ExperimentSet

All Implemented Interfaces:
Serializable, Cloneable, Iterable<Experiment>, Collection<Experiment>, SequencedCollection<Experiment>, SequencedSet<Experiment>, Set<Experiment>, Experimented, ScriptData

public class ExperimentSet extends LinkedHashSet<Experiment> implements ScriptData, Experimented
A container for storing and testing experiments.
See Also:
  • Constructor Details

    • ExperimentSet

      public ExperimentSet(@NotNull @NotNull Collection<? extends Experiment> collection)
    • ExperimentSet

      public ExperimentSet()
  • Method Details

    • hasExperiment

      public boolean hasExperiment(Experiment experiment)
      Specified by:
      hasExperiment in interface Experimented
      Parameters:
      experiment - The experimental feature to test.
      Returns:
      Whether this uses the given feature.
    • hasExperiment

      public boolean hasExperiment(String featureName)
      Specified by:
      hasExperiment in interface Experimented
      Parameters:
      featureName - The name of the experimental feature to test.
      Returns:
      Whether this has a feature with the given name.