YamlObject

Yaml map.

Functions

Link copied to clipboard
@NotNull
open fun asArray(): @NotNull YamlArray
Gets this element as an array
Link copied to clipboard
open fun asBoolean(): Boolean
Gets this element as a boolean
Link copied to clipboard
open fun asDouble(): Double
Gets this element as a double
Link copied to clipboard
open fun asFloat(): Float
Gets this element as a float
Link copied to clipboard
open fun asInt(): Int
Gets this element as an int
Link copied to clipboard
open fun asLong(): Long
Gets this element as along
Link copied to clipboard
@NotNull
open fun asObject(): @NotNull YamlObject
Gets this element as an object
Link copied to clipboard
@NotNull
open fun asString(): @NotNull String
Gets this element as a string
Link copied to clipboard
abstract fun compareTo(p: T): Int
open fun compareTo(@NotNull o: @NotNull YamlConfiguration): Int
Link copied to clipboard
open fun forEach(p: Consumer<in T>)
Link copied to clipboard
@NotNull
abstract fun get(): @NotNull Map<String, Any>
Gets data as a map.
@Nullable
abstract fun get(@NotNull path: @NotNull String): @Nullable YamlElement
Gets YAML element by some key.
Link copied to clipboard
open fun getAsBoolean(@NotNull path: @NotNull String, defaultValue: Boolean): Boolean
Gets some value by some key as a boolean
Link copied to clipboard
open fun getAsDouble(@NotNull path: @NotNull String, defaultValue: Double): Double
Gets some value by some key as a double
Link copied to clipboard
open fun getAsFloat(@NotNull path: @NotNull String, defaultValue: Float): Float
Gets some value by some key as a float
Link copied to clipboard
open fun getAsInt(@NotNull path: @NotNull String, defaultValue: Int): Int
Gets some value by some key as an int
Link copied to clipboard
open fun getAsLong(@NotNull path: @NotNull String, defaultValue: Long): Long
Gets some value by some key as along
Link copied to clipboard
@NotNull
open fun getAsString(@NotNull path: @NotNull String, @NotNull defaultValue: @NotNull String): @NotNull String
Gets some value by some key as a string
Link copied to clipboard
abstract fun iterator(): Iterator<T>
Link copied to clipboard
abstract fun merge(@NotNull object: @NotNull YamlObject)
Merges data with another object.
Link copied to clipboard
@NotNull
abstract fun path(): @NotNull String
Gets this configuration's path
Link copied to clipboard
abstract fun save(@NotNull file: @NotNull File)
Saves YAML as a flat file.
Link copied to clipboard