Value

open class Value

Wrapper class for value, complies to the mapbox type system.

Constructors

Link copied to clipboard
open fun Value(d: Double)
Create a value from a double.
Link copied to clipboard
open fun Value(l: Long)
Create a value from a long.
Link copied to clipboard
open fun Value(b: Boolean)
Create a value from a boolean.
Link copied to clipboard
open fun Value(@NonNull str: String)
Create a value from a string.
Link copied to clipboard
open fun Value(@NonNull array: List<Value>)
Create a value from an list.
Link copied to clipboard
open fun Value(@NonNull map: HashMap<String, Value>)
Create a value from a map.

Functions

Link copied to clipboard
open fun equals(other: Any): Boolean
Link copied to clipboard
Converts JSON string to a value.
Link copied to clipboard
open fun hashCode(): Int
Link copied to clipboard
open fun nullValue(): Value
Create a null value
Link copied to clipboard
open fun toJson(): String
Converts value to a JSON string.
Link copied to clipboard
open fun toString(): String
Link copied to clipboard
Create a value from a boolean.
open fun valueOf(d: Double): Value
Create a value from a double.
open fun valueOf(@NonNull str: String): Value
Create a value from a string.
Create a value from a map
open fun valueOf(@NonNull array: List<Value>): Value
Create a value from an list
open fun valueOf(l: Long): Value
Create a value from a long.

Properties

Link copied to clipboard

Inheritors

Link copied to clipboard

Extensions

Link copied to clipboard

Extension function for Value to unwrap Value to Any.

Link copied to clipboard

Extension function for Value to unwrap Value to Expression.

Link copied to clipboard

Extension function for Value to unwrap Value to StyleTransition.

Link copied to clipboard
inline fun <T> Value.unwrapToTyped(): T

Extension function for Value to unwrap Value to the given type.