groostav
01/01/2017, 9:57 AMprivate var Offset.offsetValue
get() = when(this){
is Offset.Row -> rowOffset
is Offset.Column -> columnOffset
}
set(value) = when(this){
is Offset.Row -> rowOffset = value
is Offset.Column -> columnOffset = value
}
I feel like between using a delegate property and the property-delegate-access syntax, this should be smaller