Package com.atlassian.bamboo.util
Class BambooIterablesUtils
java.lang.Object
com.atlassian.bamboo.util.BambooIterablesUtils
This class upholds the general *Utils contract over Iterables as introduced by Apache Commons.
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T> void
addAll
(@NotNull Collection<T> to, @Nullable Iterable<? extends T> from) static boolean
containsInstance
(@Nullable Iterable<?> haystack, @Nullable Object needle) static <T> boolean
static <T> boolean
isNotEmpty
(@Nullable Iterable<T> iterable) static <T> @NotNull Iterable<T>
toIterable
(@NotNull Iterator<T> iterator)
-
Method Details
-
isEmpty
-
isNotEmpty
-
toIterable
-
containsInstance
-
addAll
public static <T> void addAll(@NotNull @NotNull Collection<T> to, @Nullable @Nullable Iterable<? extends T> from)
-