public class FlavorSet extends Object implements Comparable<FlavorSet>
Flavor
s.Modifier and Type | Field and Description |
---|---|
static com.google.common.collect.Ordering<Flavor> |
FLAVOR_ORDERING
Flavors passed to this object should be sorted using this ordering
|
static FlavorSet |
NO_FLAVORS |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(FlavorSet o) |
boolean |
contains(Flavor flavor)
Does this set contain given flavor?
|
boolean |
containsAll(Collection<Flavor> flavors)
Does this set contain all given flavors?
|
boolean |
containsAll(FlavorSet flavors)
Does this set contain all given flavors?
|
static FlavorSet |
copyOf(com.google.common.collect.ImmutableSortedSet<Flavor> flavors)
Constructor.
|
static FlavorSet |
copyOf(Iterable<? extends Flavor> flavors)
Constructor.
|
boolean |
equals(Object that) |
com.google.common.collect.ImmutableSortedSet<Flavor> |
getSet() |
int |
hashCode() |
boolean |
isEmpty() |
static FlavorSet |
of(Flavor... flavors) |
String |
toCommaSeparatedString()
Just comma separated.
|
static java.util.stream.Collector<Flavor,?,FlavorSet> |
toFlavorSet()
Stream collector.
|
String |
toPostfixString()
Flavors list as string in the end of build target.
|
String |
toString() |
static FlavorSet |
union(FlavorSet a,
FlavorSet b)
Return a flavor set with flavors in first or second given set.
|
FlavorSet |
withAdded(Set<Flavor> flavors)
Create a flavor set with union of this and that flavors.
|
FlavorSet |
without(Set<Flavor> flavors)
Flavors in this set, but not in that set.
|
public static final FlavorSet NO_FLAVORS
public static final com.google.common.collect.Ordering<Flavor> FLAVOR_ORDERING
public int compareTo(FlavorSet o)
compareTo
in interface Comparable<FlavorSet>
public com.google.common.collect.ImmutableSortedSet<Flavor> getSet()
public boolean isEmpty()
public String toCommaSeparatedString()
public String toPostfixString()
public static FlavorSet copyOf(com.google.common.collect.ImmutableSortedSet<Flavor> flavors)
public static FlavorSet union(FlavorSet a, FlavorSet b)
public static java.util.stream.Collector<Flavor,?,FlavorSet> toFlavorSet()
public FlavorSet withAdded(Set<Flavor> flavors)
public boolean contains(Flavor flavor)
public boolean containsAll(FlavorSet flavors)
public boolean containsAll(Collection<Flavor> flavors)