dalexander
02/07/2017, 5:49 PMfun containsCompletely(other: OpenRange<NumberType>): Boolean = this.startInclusive lessOrEqual other.startInclusive && this.endInclusive greaterOrEqual other.endInclusive where lessEqual is something like infix fun NumberType?.lessOrEqual(other: NumberType?) {
if(this == null && other == null) {
return true
} else if(this == null) {
return true //could collapse this with the above statement
} else if(other == null) {
return false
} else {
return this <= other
}
}