All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.nemerosa.ontrack.model.structure.BranchModelMatcher.kt Maven / Gradle / Ivy

There is a newer version: 4.4.5
Show newest version
package net.nemerosa.ontrack.model.structure

interface BranchModelMatcher {

    fun matches(branch: Branch): Boolean

}

infix fun BranchModelMatcher.and(other: BranchModelMatcher?): BranchModelMatcher =
        if (other == null) {
            this
        } else {
            object : BranchModelMatcher {
                override fun matches(branch: Branch): Boolean {
                    return this.matches(branch) || other.matches(branch)
                }
            }
        }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy