load

Optional<Tload<T>(String name, Class<T> settingsType)

Attempts to load the specified settings type at the specified path.

Return

an optional with the settings object if it was loaded properly, or an empty optional if there was an issue loading

Parameters

name

the settings name

settingsType

the settings type

<T>

the result type