Class FlavorSet

    • Field Detail

      • NO_FLAVORS

        public static final FlavorSet NO_FLAVORS
      • FLAVOR_ORDERING

        public static final com.google.common.collect.Ordering<Flavor> FLAVOR_ORDERING
        Flavors passed to this object should be sorted using this ordering
    • Method Detail

      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • getSet

        public com.google.common.collect.ImmutableSortedSet<Flavor> getSet()
      • isEmpty

        public boolean isEmpty()
      • toCommaSeparatedString

        public String toCommaSeparatedString()
        Just comma separated.
      • toPostfixString

        public String toPostfixString()
        Flavors list as string in the end of build target.
      • copyOf

        public static FlavorSet copyOf​(com.google.common.collect.ImmutableSortedSet<Flavor> flavors)
        Constructor.
      • toFlavorSet

        public static java.util.stream.Collector<Flavor,​?,​FlavorSet> toFlavorSet()
        Stream collector.
      • without

        public FlavorSet without​(Set<Flavor> flavors)
        Flavors in this set, but not in that set.
      • withAdded

        public FlavorSet withAdded​(Set<Flavor> flavors)
        Create a flavor set with union of this and that flavors.
      • contains

        public boolean contains​(Flavor flavor)
        Does this set contain given flavor?
      • containsAll

        public boolean containsAll​(FlavorSet flavors)
        Does this set contain all given flavors?
      • containsAll

        public boolean containsAll​(Collection<Flavor> flavors)
        Does this set contain all given flavors?