ConfigUtils

public class ConfigUtils

Properties

Link copied to clipboard
public final static ConfigUtils INSTANCE

Functions

Link copied to clipboard
public final static BasicVariable<T> createVariable<T extends Any>(KMutableProperty0<T> property)

Creates a config variable from the provided kotlin property.

public final static BasicVariable<T> createVariable<T extends Any>(Field field, Object parent)

Creates a config variable from the provided java field and parent.

public final static BasicVariable<T> createVariable<T extends Any>(Function0<T> getter, Function1<T, Unit> setter)

Convenience method for creating custom config variables.

public final static BasicVariable<V> createVariable<T extends Any, V extends Any>(KMutableProperty1<T, V> property, T parent)

Creates a config variable from the provided kotlin property and parent.