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> voidaddAll(@NotNull Collection<T> to, @Nullable Iterable<? extends T> from) static booleancontainsInstance(@Nullable Iterable<?> haystack, @Nullable Object needle) static <T> booleanstatic <T> booleanisNotEmpty(@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)
-