Interface Experimented

All Known Implementing Classes:
ExperimentRegistry, ExperimentSet, ParserInstance
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface Experimented
Something that can have experimental features enabled for. The only intended implementation of this is the Script, however it is left open for configuration files, etc. that may use this functionality in the future.
  • Method Summary

    Modifier and Type
    Method
    Description
    default boolean
    hasExperiment(String featureName)
     
    boolean
     
  • Method Details

    • hasExperiment

      boolean hasExperiment(Experiment experiment)
      Parameters:
      experiment - The experimental feature to test.
      Returns:
      Whether this uses the given feature.
    • hasExperiment

      default boolean hasExperiment(String featureName)
      Parameters:
      featureName - The name of the experimental feature to test.
      Returns:
      Whether this has a feature with the given name.