does anybody have some examples of kotlin idiomati...
# announcements
g
does anybody have some examples of kotlin idiomatic code to handle bounded decimal or integer conversion? Case in point, Ive effectively got a pojo
data class ViewObject(val amount: Double, val unit: TimeUnit)
and I want to convert it into a
java.time.Duration
class and back again, and I would like to make this class non-nullable where the default is something like
ViewObject(Double.INFINITY, TimeUnit.MINUTES)
where the presentation logic would represent "infinity" as empty string... maybe ill just use null ­čśĽ