public class VersionMatchedCollection<T> extends Object implements TargetTranslatable<VersionMatchedCollection<T>>
Modifier and Type | Class and Description |
---|---|
static class |
VersionMatchedCollection.Builder<T> |
Constructor and Description |
---|
VersionMatchedCollection(com.google.common.collect.ImmutableList<Pair<com.google.common.collect.ImmutableMap<BuildTarget,Version>,T>> values) |
Modifier and Type | Method and Description |
---|---|
static <T> VersionMatchedCollection.Builder<T> |
builder() |
boolean |
equals(Object o) |
com.google.common.collect.ImmutableList<T> |
getMatchingValues(com.google.common.collect.ImmutableMap<BuildTarget,Version> selected) |
T |
getOnlyMatchingValue(String source,
com.google.common.collect.ImmutableMap<BuildTarget,Version> selected) |
com.google.common.collect.ImmutableList<Pair<com.google.common.collect.ImmutableMap<BuildTarget,Version>,T>> |
getValuePairs() |
com.google.common.collect.ImmutableList<T> |
getValues() |
int |
hashCode() |
static <T> VersionMatchedCollection<T> |
of() |
String |
toString() |
Optional<VersionMatchedCollection<T>> |
translateTargets(CellNameResolver cellPathResolver,
BaseName targetBaseName,
TargetNodeTranslator translator) |
public VersionMatchedCollection(com.google.common.collect.ImmutableList<Pair<com.google.common.collect.ImmutableMap<BuildTarget,Version>,T>> values)
public com.google.common.collect.ImmutableList<T> getMatchingValues(com.google.common.collect.ImmutableMap<BuildTarget,Version> selected)
public T getOnlyMatchingValue(String source, com.google.common.collect.ImmutableMap<BuildTarget,Version> selected)
public com.google.common.collect.ImmutableList<T> getValues()
public com.google.common.collect.ImmutableList<Pair<com.google.common.collect.ImmutableMap<BuildTarget,Version>,T>> getValuePairs()
public static <T> VersionMatchedCollection<T> of()
public static <T> VersionMatchedCollection.Builder<T> builder()
public Optional<VersionMatchedCollection<T>> translateTargets(CellNameResolver cellPathResolver, BaseName targetBaseName, TargetNodeTranslator translator)
translateTargets
in interface TargetTranslatable<VersionMatchedCollection<T>>