CommanderValue

data class CommanderValue(val value: String?)(source)

A wrapper for a string-encoded value

Since

0.1.0

See also

Constructors

Link copied to clipboard
constructor(value: String?)

Creates a new CommanderValue

Properties

Link copied to clipboard

the value

Functions

Link copied to clipboard

Is the value a boolean?

Link copied to clipboard

Is the value a byte?

Link copied to clipboard

Is the value a char?

Link copied to clipboard

Is the value a double?

Link copied to clipboard

Is the value a float?

Link copied to clipboard
fun isInt(): Boolean

Is the value an int?

Link copied to clipboard

Validate the value using a CommanderValueValidator to a boolean

Validate the value using a CommanderValueValidatorLambda to a boolean

Link copied to clipboard

Is the value a long?

Link copied to clipboard

Is the value a negative byte?

Link copied to clipboard

Is the value a negative double?

Link copied to clipboard

Is the value a negative float?

Link copied to clipboard

Is the value a negative int?

Link copied to clipboard

Is the value a negative long?

Link copied to clipboard

Is the value a negative short?

Link copied to clipboard

Is the value not a boolean?

Link copied to clipboard

Is the value not a byte?

Link copied to clipboard

Is the value not a char?

Link copied to clipboard

Is the value not a double?

Link copied to clipboard

Is the value not a float?

Link copied to clipboard

Is the value not an int?

Link copied to clipboard

Is the value not a long?

Link copied to clipboard

Is the value not a negative byte?

Link copied to clipboard

Is the value not a negative double?

Link copied to clipboard

Is the value not a negative float?

Link copied to clipboard

Is the value not a negative int?

Link copied to clipboard

Is the value not a negative long?

Link copied to clipboard

Is the value not a negative short?

Link copied to clipboard

Is the value not null?

Link copied to clipboard

Is the value not a positive byte?

Link copied to clipboard

Is the value not a positive double?

Link copied to clipboard

Is the value not a positive float?

Link copied to clipboard

Is the value not a positive int?

Link copied to clipboard

Is the value not a positive long?

Link copied to clipboard

Is the value not a positive short?

Link copied to clipboard

Is the value not a short?

Link copied to clipboard

Is the value not a string?

Link copied to clipboard

Is the value not an unsigned byte?

Link copied to clipboard

Is the value not an unsigned int?

Link copied to clipboard

Is the value not an unsigned long?

Link copied to clipboard

Is the value not an unsigned short?

Link copied to clipboard

Is the value null?

Link copied to clipboard

Is the value a positive byte?

Link copied to clipboard

Is the value a positive double?

Link copied to clipboard

Is the value a positive float?

Link copied to clipboard

Is the value a positive int?

Link copied to clipboard

Is the value a positive long?

Link copied to clipboard

Is the value a positive short?

Link copied to clipboard

Is the value a short?

Link copied to clipboard

Is the value a string?

Link copied to clipboard

Is the value an unsigned byte?

Link copied to clipboard

Is the value an unsigned int?

Link copied to clipboard

Is the value an unsigned long?

Link copied to clipboard

Is the value an unsigned short?

Link copied to clipboard

Validate the value using a CommanderValueValidator to a boolean

Validate the value using a CommanderValueValidatorLambda to a boolean

Link copied to clipboard
fun <T> to(valueTransformer: CommanderValueTransformer<T>): T

Convert the value to a specific type (using a CommanderValueTransformer)

fun <T> to(valueTransformer: CommanderValueTransformerLambda<T>): T

Convert the value to a specific type (using a CommanderValueTransformerLambda)

Link copied to clipboard

Convert the value to a boolean

Link copied to clipboard

Convert the value to a boolean or a default value

Link copied to clipboard

Convert the value to a boolean or null

Link copied to clipboard
fun toByte(): Byte

Convert the value to a byte

Link copied to clipboard
fun toByteOrDefault(default: Byte): Byte

Convert the value to a byte or a default value

Link copied to clipboard

Convert the value to a byte or null

Link copied to clipboard
fun toChar(): Char

Convert the value to a char

Link copied to clipboard
fun toCharOrDefault(default: Char): Char?

Convert the value to a char or a default value

Link copied to clipboard

Convert the value to a char or null

Link copied to clipboard

Convert the value to a double

Link copied to clipboard

Convert the value to a double or a default value

Link copied to clipboard

Convert the value to a double or null

Link copied to clipboard
fun toFloat(): Float

Convert the value to a float

Link copied to clipboard
fun toFloatOrDefault(default: Float): Float?

Convert the value to a float or a default value

Link copied to clipboard

Convert the value to a float or null

Link copied to clipboard
fun toInt(): Int

Convert the value to an int

Link copied to clipboard
fun toIntOrDefault(default: Int): Int?

Convert the value to an int or a default value

Link copied to clipboard

Convert the value to an int or null

Link copied to clipboard
fun toLong(): Long

Convert the value to a long

Link copied to clipboard
fun toLongOrDefault(default: Long): Long?

Convert the value to a long or a default value

Link copied to clipboard

Convert the value to a long or null

Link copied to clipboard

Convert the value to a negative byte

Link copied to clipboard

Convert the value to a negative byte or a default value

Link copied to clipboard

Convert the value to a negative byte or null

Link copied to clipboard

Convert the value to a negative double

Link copied to clipboard

Convert the value to a negative double or a default value

Link copied to clipboard

Convert the value to a negative double or null

Link copied to clipboard

Convert the value to a negative float

Link copied to clipboard

Convert the value to a negative float or a default value

Link copied to clipboard

Convert the value to a negative float or null

Link copied to clipboard

Convert the value to a negative int

Link copied to clipboard

Convert the value to a negative int or a default value

Link copied to clipboard

Convert the value to a negative int or null

Link copied to clipboard

Convert the value to a negative long

Link copied to clipboard

Convert the value to a negative long or a default value

Link copied to clipboard

Convert the value to a negative long or null

Link copied to clipboard

Convert the value to a negative short

Link copied to clipboard

Convert the value to a negative short or a default value

Link copied to clipboard

Convert the value to a negative short or null

Link copied to clipboard
fun <T> toOrDefault(valueTransformer: CommanderValueTransformer<T>, default: T): T

Convert the value to a specific type (using a CommanderValueTransformer) or a default value

fun <T> toOrDefault(valueTransformer: CommanderValueTransformerLambda<T>, default: T): T

Convert the value to a specific type (using a CommanderValueTransformerLambda) or a default value

Link copied to clipboard
fun <T> toOrNull(valueTransformer: CommanderValueTransformer<T>): T?

Convert the value to a specific type (using a CommanderValueTransformer) or null

fun <T> toOrNull(valueTransformer: CommanderValueTransformerLambda<T>): T?

Convert the value to a specific type (using a CommanderValueTransformerLambda) or null

Link copied to clipboard

Convert the value to a positive byte

Link copied to clipboard

Convert the value to a positive byte or a default value

Link copied to clipboard

Convert the value to a positive byte or null

Link copied to clipboard

Convert the value to a positive double

Link copied to clipboard

Convert the value to a positive double or a default value

Link copied to clipboard

Convert the value to a positive double or null

Link copied to clipboard

Convert the value to a positive float

Link copied to clipboard

Convert the value to a positive float or a default value

Link copied to clipboard

Convert the value to a positive float or null

Link copied to clipboard

Convert the value to a positive int

Link copied to clipboard

Convert the value to a positive int or a default value

Link copied to clipboard

Convert the value to a positive int or null

Link copied to clipboard

Convert the value to a positive long

Link copied to clipboard

Convert the value to a positive long or a default value

Link copied to clipboard

Convert the value to a positive long or null

Link copied to clipboard

Convert the value to a positive short

Link copied to clipboard

Convert the value to a positive short or a default value

Link copied to clipboard

Convert the value to a positive short or null

Link copied to clipboard
fun toShort(): Short

Convert the value to a short

Link copied to clipboard
fun toShortOrDefault(default: Short): Short?

Convert the value to a short or a default value

Link copied to clipboard

Convert the value to a short or null

Link copied to clipboard
open override fun toString(): String

Convert the value to a string

Link copied to clipboard

Convert the value to a string or a default value

Link copied to clipboard

Convert the value to a string or null

Link copied to clipboard

Convert the value to an unsigned byte

Link copied to clipboard

Convert the value to an unsigned byte or a default value

Link copied to clipboard

Convert the value to an unsigned byte or null

Link copied to clipboard

Convert the value to an unsigned int

Link copied to clipboard

Convert the value to an unsigned int or a default value

Link copied to clipboard

Convert the value to an unsigned int or null

Link copied to clipboard

Convert the value to an unsigned long

Link copied to clipboard

Convert the value to an unsigned long or a default value

Link copied to clipboard

Convert the value to an unsigned long or null

Link copied to clipboard

Convert the value to an unsigned short

Link copied to clipboard

Convert the value to an unsigned short or a default value

Link copied to clipboard

Convert the value to an unsigned short or null

Link copied to clipboard

Validate the value using a CommanderValueValidator

Validate the value using a CommanderValueValidatorLambda

Link copied to clipboard

Validate the value to be a boolean

Link copied to clipboard

Validate the value to be a byte

Link copied to clipboard

Validate the value to be a char

Link copied to clipboard

Validate the value to be a double

Link copied to clipboard

Validate the value to be a float

Link copied to clipboard

Validate the value to be an int

Link copied to clipboard

Validate the value to be a long

Link copied to clipboard

Validate the value to be a negative byte

Link copied to clipboard

Validate the value to be a negative double

Link copied to clipboard

Validate the value to be a negative float

Link copied to clipboard

Validate the value to be a negative int

Link copied to clipboard

Validate the value to be a negative long

Link copied to clipboard

Validate the value to be a negative short

Link copied to clipboard

Validate the value not to be null

Link copied to clipboard

Validate the value to be null

Link copied to clipboard

Validate the value to be a positive byte

Link copied to clipboard

Validate the value to be a positive double

Link copied to clipboard

Validate the value to be a positive float

Link copied to clipboard

Validate the value to be a positive int

Link copied to clipboard

Validate the value to be a positive long

Link copied to clipboard

Validate the value to be a positive short

Link copied to clipboard

Validate the value to be a short

Link copied to clipboard

Validate the value to be a string

Link copied to clipboard

Validate the value to be an unsigned byte

Link copied to clipboard

Validate the value to be an unsigned int

Link copied to clipboard

Validate the value to be an unsigned long

Link copied to clipboard

Validate the value to be an unsigned short