public class VersionUniverseVersionSelector extends Object implements VersionSelector
TODO(agallagher): Validate version constraints.
Constructor and Description |
---|
VersionUniverseVersionSelector(TargetGraph targetGraph,
com.google.common.collect.ImmutableMap<String,VersionUniverse> universes) |
Modifier and Type | Method and Description |
---|---|
protected Optional<Map.Entry<String,VersionUniverse>> |
getVersionUniverse(TargetNode<?> root) |
com.google.common.collect.ImmutableMap<BuildTarget,Version> |
resolve(BuildTarget root,
com.google.common.collect.ImmutableMap<BuildTarget,com.google.common.collect.ImmutableSet<Version>> domain) |
public VersionUniverseVersionSelector(TargetGraph targetGraph, com.google.common.collect.ImmutableMap<String,VersionUniverse> universes)
protected Optional<Map.Entry<String,VersionUniverse>> getVersionUniverse(TargetNode<?> root)
public com.google.common.collect.ImmutableMap<BuildTarget,Version> resolve(BuildTarget root, com.google.common.collect.ImmutableMap<BuildTarget,com.google.common.collect.ImmutableSet<Version>> domain) throws VersionException
resolve
in interface VersionSelector
root
- the root of the versioned sub-graph.domain
- the versioned nodes and their version domain.VersionException