Interface Configuration


public interface Configuration
Provide the basic operation that one could perform on a set of configurations.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final Configuration
    Empty configuration without any settings.
  • Method Summary

    Modifier and Type
    Method
    Description
    <T> T
    get(Setting<T> setting)
    Retrieve the value of a configuration Setting.
  • Field Details

    • EMPTY

      static final Configuration EMPTY
      Empty configuration without any settings.
  • Method Details

    • get

      <T> T get(Setting<T> setting)
      Retrieve the value of a configuration Setting.
      Type Parameters:
      T - The type of the configuration property
      Parameters:
      setting - The configuration property
      Returns:
      The value of the configuration property if the property is found, otherwise, return the default value of the given property.