Interface PlexConfiguration
public interface PlexConfiguration
Read-only view of a Plex configuration file.
-
Method Summary
Modifier and TypeMethodDescriptionbooleangetBoolean(String path) Reads a boolean value.booleangetBoolean(String path, boolean fallback) Reads a boolean value with a fallback.intReads an integer value.intReads an integer value with a fallback.@Nullable StringReads a string value.Reads a string value with a fallback.getStringList(String path) Reads a string list.getStringList(String path, List<String> fallback) Reads a string list with a fallback.
-
Method Details
-
getString
-
getString
-
getBoolean
Reads a boolean value.- Parameters:
path- configuration path- Returns:
- configured boolean, or the underlying configuration default
-
getBoolean
Reads a boolean value with a fallback.- Parameters:
path- configuration pathfallback- value returned when the path is absent- Returns:
- configured boolean or fallback
-
getInt
Reads an integer value.- Parameters:
path- configuration path- Returns:
- configured integer, or the underlying configuration default
-
getInt
Reads an integer value with a fallback.- Parameters:
path- configuration pathfallback- value returned when the path is absent- Returns:
- configured integer or fallback
-
getStringList
-
getStringList
-