Class FlavorSet

    • Field Detail

      • NO_FLAVORS

        public static final FlavorSet NO_FLAVORS

        public static final<Flavor> FLAVOR_ORDERING
        Flavors passed to this object should be sorted using this ordering
    • Method Detail

      • hashCode

        public int hashCode()
        hashCode in class Object
      • getSet

        public<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​(<Flavor> flavors)
      • toFlavorSet

        public static<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?