EncodingComplexCase

@Serializable
data class EncodingComplexCase(val booleanField: Boolean = true, val byteField: Byte = 1, val shortField: Short = 2, val intField: Int = 3, val longField: Long = 4, val floatField: Float = 5.0f, val doubleField: Double = 6.0, val charField: Char = 'A', val stringField: String = "Hello", val byteArrayField: ByteArray = byteArrayOf(1, 2, 3), val shortListField: List<Short> = listOf(4, 5, 6), val intSetField: Set<Int> = setOf(7, 8, 9), val longListField: MutableList<Long> = mutableListOf(10L, 11L, 12L), val floatSetField: Set<Float> = setOf(13.0f, 14.0f, 15.0f), val doubleListField: List<Double> = listOf(16.0, 17.0, 18.0), val charListField: MutableList<Char> = mutableListOf('B', 'C', 'D'), val stringSetField: Set<String> = setOf("World", "Kotlin"), val listOfLists: List<List<Int>> = listOf(listOf(1, 2), listOf(3, 4)), val mapOfStringToInt: Map<String, Int> = mapOf("one" to 1, "two" to 2), val mapOfIntToBoolean: Map<Int, Boolean> = mapOf(1 to true, 2 to false), val setOfSets: Set<Set<Float>> = setOf(setOf(1.0f, 2.0f), setOf(3.0f, 4.0f)), val mutableMapOfStringToList: MutableMap<String, List<Double>> = mutableMapOf("key1" to listOf(1.0, 2.0), "key2" to listOf(3.0, 4.0)), val nestedData: NestedData = NestedData( nestedInt = 99, nestedString = "Nested", innerNestedData = listOf( InnerNestedData( innerValue = 100.0, innerList = listOf("Inner", "List") ) ) ), val mapOfStringToNestedData: Map<String, NestedData> = mapOf("nested" to NestedData( nestedInt = 101, nestedString = "Nested", innerNestedData = listOf( InnerNestedData( innerValue = 102.0, innerList = listOf("Inner", "List") ) ) ), "nested2" to NestedData( nestedInt = 103, nestedString = "Nested", innerNestedData = listOf( InnerNestedData( innerValue = 104.0, innerList = listOf("Inner", "List") ) ) ) ))

Constructors

Link copied to clipboard
constructor(booleanField: Boolean = true, byteField: Byte = 1, shortField: Short = 2, intField: Int = 3, longField: Long = 4, floatField: Float = 5.0f, doubleField: Double = 6.0, charField: Char = 'A', stringField: String = "Hello", byteArrayField: ByteArray = byteArrayOf(1, 2, 3), shortListField: List<Short> = listOf(4, 5, 6), intSetField: Set<Int> = setOf(7, 8, 9), longListField: MutableList<Long> = mutableListOf(10L, 11L, 12L), floatSetField: Set<Float> = setOf(13.0f, 14.0f, 15.0f), doubleListField: List<Double> = listOf(16.0, 17.0, 18.0), charListField: MutableList<Char> = mutableListOf('B', 'C', 'D'), stringSetField: Set<String> = setOf("World", "Kotlin"), listOfLists: List<List<Int>> = listOf(listOf(1, 2), listOf(3, 4)), mapOfStringToInt: Map<String, Int> = mapOf("one" to 1, "two" to 2), mapOfIntToBoolean: Map<Int, Boolean> = mapOf(1 to true, 2 to false), setOfSets: Set<Set<Float>> = setOf(setOf(1.0f, 2.0f), setOf(3.0f, 4.0f)), mutableMapOfStringToList: MutableMap<String, List<Double>> = mutableMapOf("key1" to listOf(1.0, 2.0), "key2" to listOf(3.0, 4.0)), nestedData: NestedData = NestedData( nestedInt = 99, nestedString = "Nested", innerNestedData = listOf( InnerNestedData( innerValue = 100.0, innerList = listOf("Inner", "List") ) ) ), mapOfStringToNestedData: Map<String, NestedData> = mapOf("nested" to NestedData( nestedInt = 101, nestedString = "Nested", innerNestedData = listOf( InnerNestedData( innerValue = 102.0, innerList = listOf("Inner", "List") ) ) ), "nested2" to NestedData( nestedInt = 103, nestedString = "Nested", innerNestedData = listOf( InnerNestedData( innerValue = 104.0, innerList = listOf("Inner", "List") ) ) ) ))

Properties

Link copied to clipboard
val booleanField: Boolean = true
Link copied to clipboard
Link copied to clipboard
val byteField: Byte = 1
Link copied to clipboard
val charField: Char = 'A'
Link copied to clipboard
Link copied to clipboard
val doubleField: Double = 6.0
Link copied to clipboard
Link copied to clipboard
val floatField: Float = 5.0f
Link copied to clipboard
Link copied to clipboard
val intField: Int = 3
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val longField: Long = 4
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val shortField: Short = 2
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard