All Downloads are FREE. Search and download functionalities are using the official Maven repository.

ru.testit.kotlin.client.infrastructure.BigIntegerAdapter.kt Maven / Gradle / Ivy

There is a newer version: 0.2.0
Show newest version
package ru.testit.kotlin.client.infrastructure

import com.squareup.moshi.FromJson
import com.squareup.moshi.ToJson
import java.math.BigInteger

class BigIntegerAdapter {
    @ToJson
    fun toJson(value: BigInteger): String {
        return value.toString()
    }

    @FromJson
    fun fromJson(value: String): BigInteger {
        return BigInteger(value)
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy