public class ConfigSettingSelectable extends Object implements Selectable
Constructor and Description |
---|
ConfigSettingSelectable(BuildTarget buildTarget,
com.google.common.collect.ImmutableMap<String,String> values,
com.google.common.collect.ImmutableSet<ConstraintValue> constraintValues) |
Modifier and Type | Method and Description |
---|---|
BuildTarget |
getBuildTarget() |
boolean |
matches(SelectableConfigurationContext configurationContext,
DependencyStack dependencyStack) |
boolean |
matchesPlatform(Platform platform,
ConstraintResolver constraintResolver,
DependencyStack dependencyStack,
BuckConfig buckConfig) |
boolean |
refines(Selectable other)
A
ConfigSettingSelectable refines another ConfigSettingSelectable when values or constraintValues or both are strict supersets of corresponding sets of the
other selectable. |
String |
toString() |
public ConfigSettingSelectable(BuildTarget buildTarget, com.google.common.collect.ImmutableMap<String,String> values, com.google.common.collect.ImmutableSet<ConstraintValue> constraintValues)
public boolean matches(SelectableConfigurationContext configurationContext, DependencyStack dependencyStack)
matches
in interface Selectable
true
if this condition matches the configurationpublic boolean matchesPlatform(Platform platform, ConstraintResolver constraintResolver, DependencyStack dependencyStack, BuckConfig buckConfig)
matchesPlatform
in interface Selectable
true
if this condition matches the platformpublic boolean refines(Selectable other)
ConfigSettingSelectable
refines another ConfigSettingSelectable
when values
or constraintValues
or both are strict supersets of corresponding sets of the
other selectable.refines
in interface Selectable
true
for given this
selectable and other
selectable when one of
this conditions is true:
this.values
is a strict superset of other.values
and this.constraintValues
is a strict superset of other.constraintValues
this.values
is equal to other.values
and this.constraintValues
is a strict superset of other.constraintValues
this.values
is a strict superset of other.values
and this.constraintValues
is equal to other.constraintValues
public BuildTarget getBuildTarget()
getBuildTarget
in interface Selectable