literal

fun TomlArrayBuilder.literal(boolean: Boolean, elementAnnotations: List<Annotation> = emptyList())(source)
fun TomlArrayBuilder.literal(boolean: Boolean, vararg elementAnnotations: Annotation)(source)

Adds boolean to this array and annotates it with elementAnnotations.


fun TomlArrayBuilder.literal(integer: Long, elementAnnotations: List<Annotation> = emptyList())(source)
fun TomlArrayBuilder.literal(integer: Long, vararg elementAnnotations: Annotation)(source)

Adds integer to this array and annotates it with elementAnnotations.


fun TomlArrayBuilder.literal(float: Double, elementAnnotations: List<Annotation> = emptyList())(source)
fun TomlArrayBuilder.literal(float: Double, vararg elementAnnotations: Annotation)(source)

Adds float to this array and annotates it with elementAnnotations.


fun TomlArrayBuilder.literal(string: String, elementAnnotations: List<Annotation> = emptyList())(source)
fun TomlArrayBuilder.literal(string: String, vararg elementAnnotations: Annotation)(source)

Adds string to this array and annotates it with elementAnnotations.


fun TomlArrayBuilder.literal(localDateTime: NativeLocalDateTime, elementAnnotations: List<Annotation> = emptyList())(source)
fun TomlArrayBuilder.literal(localDateTime: NativeLocalDateTime, vararg elementAnnotations: Annotation)(source)

Adds localDateTime to this array and annotates it with elementAnnotations.


fun TomlArrayBuilder.literal(offsetDateTime: NativeOffsetDateTime, elementAnnotations: List<Annotation> = emptyList())(source)
fun TomlArrayBuilder.literal(offsetDateTime: NativeOffsetDateTime, vararg elementAnnotations: Annotation)(source)

Adds offsetDateTime to this array and annotates it with elementAnnotations.


fun TomlArrayBuilder.literal(localDate: NativeLocalDate, elementAnnotations: List<Annotation> = emptyList())(source)
fun TomlArrayBuilder.literal(localDate: NativeLocalDate, vararg elementAnnotations: Annotation)(source)

Adds localDate to this array and annotates it with elementAnnotations.


fun TomlArrayBuilder.literal(localTime: NativeLocalTime, elementAnnotations: List<Annotation> = emptyList())(source)
fun TomlArrayBuilder.literal(localTime: NativeLocalTime, vararg elementAnnotations: Annotation)(source)

Adds localTime to this array and annotates it with elementAnnotations.


fun TomlTableBuilder.literal(key: Any?, boolean: Boolean, elementAnnotations: List<Annotation> = emptyList())(source)
fun TomlTableBuilder.literal(key: Any?, boolean: Boolean, vararg elementAnnotations: Annotation)(source)

Associates boolean with primitive key and annotates boolean with elementAnnotations.

Throws

NonPrimitiveKeyException

if provided non-primitive key.


fun TomlTableBuilder.literal(key: Any?, integer: Long, elementAnnotations: List<Annotation> = emptyList())(source)
fun TomlTableBuilder.literal(key: Any?, integer: Long, vararg elementAnnotations: Annotation)(source)

Associates integer with primitive key and annotates integer with elementAnnotations.

Throws

NonPrimitiveKeyException

if provided non-primitive key.


fun TomlTableBuilder.literal(key: Any?, float: Double, elementAnnotations: List<Annotation> = emptyList())(source)
fun TomlTableBuilder.literal(key: Any?, float: Double, vararg elementAnnotations: Annotation)(source)

Associates float with primitive key and annotates float with elementAnnotations.

Throws

NonPrimitiveKeyException

if provided non-primitive key.


fun TomlTableBuilder.literal(key: Any?, string: String, elementAnnotations: List<Annotation> = emptyList())(source)
fun TomlTableBuilder.literal(key: Any?, string: String, vararg elementAnnotations: Annotation)(source)

Associates string with primitive key and annotates string with elementAnnotations.

Throws

NonPrimitiveKeyException

if provided non-primitive key.


fun TomlTableBuilder.literal(key: Any?, localDateTime: NativeLocalDateTime, elementAnnotations: List<Annotation> = emptyList())(source)
fun TomlTableBuilder.literal(key: Any?, localDateTime: NativeLocalDateTime, vararg elementAnnotations: Annotation)(source)

Associates localDateTime with primitive key and annotates localDateTime with elementAnnotations.

Throws

NonPrimitiveKeyException

if provided non-primitive key.


fun TomlTableBuilder.literal(key: Any?, offsetDateTime: NativeOffsetDateTime, elementAnnotations: List<Annotation> = emptyList())(source)
fun TomlTableBuilder.literal(key: Any?, offsetDateTime: NativeOffsetDateTime, vararg elementAnnotations: Annotation)(source)

Associates offsetDateTime with primitive key and annotates offsetDateTime with elementAnnotations.

Throws

NonPrimitiveKeyException

if provided non-primitive key.


fun TomlTableBuilder.literal(key: Any?, localDate: NativeLocalDate, elementAnnotations: List<Annotation> = emptyList())(source)
fun TomlTableBuilder.literal(key: Any?, localDate: NativeLocalDate, vararg elementAnnotations: Annotation)(source)

Associates localDate with primitive key and annotates localDate with elementAnnotations.

Throws

NonPrimitiveKeyException

if provided non-primitive key.


fun TomlTableBuilder.literal(key: Any?, localTime: NativeLocalTime, elementAnnotations: List<Annotation> = emptyList())(source)
fun TomlTableBuilder.literal(key: Any?, localTime: NativeLocalTime, vararg elementAnnotations: Annotation)(source)

Associates localTime with primitive key and annotates localTime with elementAnnotations.

Throws

NonPrimitiveKeyException

if provided non-primitive key.