Package com.atlassian.bamboo.util
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 Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <T> void
addAll(@NotNull Collection<T> to, @Nullable Iterable<? extends T> from)
static boolean
containsInstance(@Nullable Iterable<?> haystack, @Nullable Object needle)
static <T> boolean
isEmpty(@Nullable Iterable<T> iterable)
static <T> boolean
isNotEmpty(@Nullable Iterable<T> iterable)
static <T> @NotNull Iterable<T>
toIterable(@NotNull Iterator<T> iterator)
-
-
-
Method Detail
-
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)
-
-