-
public final class ConfigurationNodeExtensionsKt
-
-
Method Summary
Modifier and Type Method Description final Booleancontains(ConfigurationNode $self, Array<Object> path)An implementation of containsthat can traverse multiple levels in path.final Booleancontains(ConfigurationNode $self, NodePath path)An implementation of containsthat can traverse multiple levels in path.final Booleancontains(ConfigurationNode $self, Object path)Contains for a single level. final <V extends Any> Vget(ConfigurationNode $self)Get a value from the receiver using the type parameter. final <V extends Any> Vget(ConfigurationNode $self, V default)Get a value from the receiver using the type parameter. final <T extends Any> Tget(ConfigurationNode $self, KClass<T> type)Get a value from the receiver using the type parameter. final <T extends Any> Tget(ConfigurationNode $self, KClass<T> type, T default)Get a value from the receiver using the type parameter. final <T extends Any> Tget(ConfigurationNode $self, KClass<T> type, Function0<T> default)Get a value from the receiver using the type parameter. final <V extends Any> Vget(ConfigurationNode $self, Function0<V> default)Get a value from the receiver using the type parameter. final <V extends Any> UnittypedSet(ConfigurationNode $self, V value)Set a value from the receiver using the type parameter to resolve a serializer. final <T extends Any> List<T>getList(ConfigurationNode $self, KClass<T> type)Get a list value from the receiver using a Kotlin type. final <T extends Any> List<T>getList(ConfigurationNode $self, KClass<T> type, List<T> default)Get a list value from the receiver using a Kotlin type. final <T extends Any> ConfigurationNodeset(ConfigurationNode $self, KClass<T> type, T value)Set a value on the receiver described by a kotlin class. final <T extends Any, N extends ScopedConfigurationNode<N>> Nset(N $self, KClass<T> type, T value)Set a value on the receiver described by a kotlin class. -
-
Method Detail
-
contains
final Boolean contains(ConfigurationNode $self, Array<Object> path)
An implementation of
containsthat can traverse multiple levels in path.
-
contains
final Boolean contains(ConfigurationNode $self, NodePath path)
An implementation of
containsthat can traverse multiple levels in path.
-
contains
final Boolean contains(ConfigurationNode $self, Object path)
Contains for a single level.
- Parameters:
path- a single path element
-
get
final <V extends Any> V get(ConfigurationNode $self)
Get a value from the receiver using the type parameter.
-
get
final <V extends Any> V get(ConfigurationNode $self, V default)
Get a value from the receiver using the type parameter.
-
get
final <T extends Any> T get(ConfigurationNode $self, KClass<T> type)
Get a value from the receiver using the type parameter.
-
get
final <T extends Any> T get(ConfigurationNode $self, KClass<T> type, T default)
Get a value from the receiver using the type parameter.
-
get
final <T extends Any> T get(ConfigurationNode $self, KClass<T> type, Function0<T> default)
Get a value from the receiver using the type parameter.
-
get
final <V extends Any> V get(ConfigurationNode $self, Function0<V> default)
Get a value from the receiver using the type parameter.
-
typedSet
final <V extends Any> Unit typedSet(ConfigurationNode $self, V value)
Set a value from the receiver using the type parameter to resolve a serializer.
-
getList
final <T extends Any> List<T> getList(ConfigurationNode $self, KClass<T> type)
Get a list value from the receiver using a Kotlin type.
-
getList
final <T extends Any> List<T> getList(ConfigurationNode $self, KClass<T> type, List<T> default)
Get a list value from the receiver using a Kotlin type.
-
set
final <T extends Any> ConfigurationNode set(ConfigurationNode $self, KClass<T> type, T value)
Set a value on the receiver described by a kotlin class.
-
-
-
-