Interface PlexConfiguration


public interface PlexConfiguration
Read-only view of a Plex configuration file.
  • Method Details

    • getString

      @Nullable @Nullable String getString(String path)
      Reads a string value.
      Parameters:
      path - configuration path
      Returns:
      configured string, or null if absent
    • getString

      String getString(String path, String fallback)
      Reads a string value with a fallback.
      Parameters:
      path - configuration path
      fallback - value returned when the path is absent
      Returns:
      configured string or fallback
    • getBoolean

      boolean getBoolean(String path)
      Reads a boolean value.
      Parameters:
      path - configuration path
      Returns:
      configured boolean, or the underlying configuration default
    • getBoolean

      boolean getBoolean(String path, boolean fallback)
      Reads a boolean value with a fallback.
      Parameters:
      path - configuration path
      fallback - value returned when the path is absent
      Returns:
      configured boolean or fallback
    • getInt

      int getInt(String path)
      Reads an integer value.
      Parameters:
      path - configuration path
      Returns:
      configured integer, or the underlying configuration default
    • getInt

      int getInt(String path, int fallback)
      Reads an integer value with a fallback.
      Parameters:
      path - configuration path
      fallback - value returned when the path is absent
      Returns:
      configured integer or fallback
    • getStringList

      List<String> getStringList(String path)
      Reads a string list.
      Parameters:
      path - configuration path
      Returns:
      configured string list
    • getStringList

      List<String> getStringList(String path, List<String> fallback)
      Reads a string list with a fallback.
      Parameters:
      path - configuration path
      fallback - value returned when the path is absent
      Returns:
      configured string list or fallback