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

org.hnau.base.data.ingot.TextIngotValuesExtensions.kt Maven / Gradle / Ivy

package org.hnau.base.data.ingot

import org.hnau.base.data.mapper.stringToBoolean
import org.hnau.base.data.mapper.stringToByte
import org.hnau.base.data.mapper.stringToDouble
import org.hnau.base.data.mapper.stringToFloat
import org.hnau.base.data.mapper.stringToInt
import org.hnau.base.data.mapper.stringToLong
import org.hnau.base.data.mapper.stringToShort
import org.hnau.base.data.mapper.Mapper
import org.hnau.base.data.mapper.pipe


fun TextIngotValues.string(placeholder: String) =
        property(placeholder, Mapper.pipe())

fun TextIngotValues.byte(placeholder: String) =
        property(placeholder, Mapper.stringToByte)

fun TextIngotValues.short(placeholder: String) =
        property(placeholder, Mapper.stringToShort)

fun TextIngotValues.int(placeholder: String) =
        property(placeholder, Mapper.stringToInt)

fun TextIngotValues.long(placeholder: String) =
        property(placeholder, Mapper.stringToLong)

fun TextIngotValues.double(placeholder: String) =
        property(placeholder, Mapper.stringToDouble)

fun TextIngotValues.float(placeholder: String) =
        property(placeholder, Mapper.stringToFloat)

fun TextIngotValues.boolean(placeholder: String) =
        property(placeholder, Mapper.stringToBoolean)




© 2015 - 2025 Weber Informatics LLC | Privacy Policy