aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni/utils/repopatterns/RepoPatternExclusiveGroup.kt
blob: ff65da923e88bdabbade6ea130ca01e84a5931d9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
package at.hannibal2.skyhanni.utils.repopatterns

import java.util.regex.Pattern

/**
 * A utility class for allowing easier definitions of [RepoPattern]s with a common prefix.
 */
class RepoPatternExclusiveGroup internal constructor(prefix: String, owner: RepoPatternKeyOwner?) :
    RepoPatternGroup(prefix, owner) {

    /**
     * @return returns any pattern on the [prefix] key space (including list or any other complex structure, but as a simple pattern
     * */
    fun getUnusedPatterns(): List<Pattern> = RepoPatternManager.getUnusedPatterns(prefix)
}