com.neko233.config233.reader.convert.impl.BooleanObjConvertTextValueStrategy.kt Maven / Gradle / Ivy
package com.neko233.config233.reader.convert.impl
import com.neko233.config233.reader.convert.JavaTypeConvertTextValueStrategy
class BooleanObjConvertTextValueStrategy : JavaTypeConvertTextValueStrategy {
override fun dataType(): Class = Boolean::class.javaObjectType
override fun convert(colValue: String): Boolean {
return colValue.toBoolean()
}
}