open fun or()

in src/main/kotlin/jetbrains/buildServer/server/querylang/ast/ObjectFilter.kt [18:28]


    open fun <T: Obj>or(other: ObjectFilter<T>): ObjectFilter<T> {
        if (this is NoneObjectFilter) {
            return other
        }
        if (other is NoneObjectFilter) {
            return this
        }
        return RealObjectFilter {obj ->
            this.accepts(obj) || other.accepts(obj)
        }
    }