RegexMap

A Map that can have Regex keys. This requires a custom impl because Regex is not comparable, so we internally back these with a TreeMap rather than the conventional LinkedHashMap.

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard
open override val entries: Set<Map.Entry<Regex, String>>
Link copied to clipboard
open override val keys: Set<Regex>
Link copied to clipboard
open override val size: Int
Link copied to clipboard
open override val values: Collection<String>

Functions

Link copied to clipboard
open override fun containsKey(key: Regex): Boolean
Link copied to clipboard
open override fun containsValue(value: String): Boolean
Link copied to clipboard

Flips a map. In the context of ComputeAffectedProjectsTask, we use this to flip a map of projects to their dependencies to a map of projects to the projects that depend on them. We use this to find all affected projects given a seed of changed projects.

Link copied to clipboard
open operator override fun get(key: Regex): String?
Link copied to clipboard
open override fun isEmpty(): Boolean