optionalEntry

inline fun <T : Any> Provider<ConfigurationNode>.optionalEntry(vararg path: String): Provider<T?>

Gets an optional entry Provider for a value of type T under path, whose value will be null if the entry does not exist or could not be deserialized to T.

The returned provider will only be stored in a WeakReference in the parent provider.


fun <T : Any> Provider<ConfigurationNode>.optionalEntry(type: KType, vararg path: String): Provider<T?>
fun <T : Any> Provider<ConfigurationNode>.optionalEntry(type: Type, vararg path: String): Provider<T?>

Gets an optional entry Provider for a value of type under path, whose value will be null if the entry does not exist or could not be deserialized to type.

The returned provider will only be stored in a WeakReference in the parent provider.


inline fun <T : Any> Provider<ConfigurationNode>.optionalEntry(vararg paths: Array<String>): Provider<T?>

Gets an optional entry Provider for a value of type T under the first existing path from paths, whose value will be null if no entry exists or could not be deserialized to T.

The returned provider will only be stored in a WeakReference in the parent provider.


fun <T : Any> Provider<ConfigurationNode>.optionalEntry(type: KType, vararg paths: Array<String>): Provider<T?>
fun <T : Any> Provider<ConfigurationNode>.optionalEntry(type: Type, vararg paths: Array<String>): Provider<T?>

Gets an optional entry Provider for a value of type under the first existing path from paths, whose value will be null if no entry exists or could not be deserialized to type.

The returned provider will only be stored in a WeakReference in the parent provider.