Class BambooIterablesUtils

java.lang.Object
com.atlassian.bamboo.util.BambooIterablesUtils

public class BambooIterablesUtils extends Object
This class upholds the general *Utils contract over Iterables as introduced by Apache Commons.
  • Method Details

    • isEmpty

      public static <T> boolean isEmpty(@Nullable @Nullable Iterable<T> iterable)
    • isNotEmpty

      public static <T> boolean isNotEmpty(@Nullable @Nullable Iterable<T> iterable)
    • toIterable

      @NotNull public static <T> @NotNull Iterable<T> toIterable(@NotNull @NotNull Iterator<T> iterator)
    • containsInstance

      public static boolean containsInstance(@Nullable @Nullable Iterable<?> haystack, @Nullable @Nullable Object needle)
    • addAll

      public static <T> void addAll(@NotNull @NotNull Collection<T> to, @Nullable @Nullable Iterable<? extends T> from)