public class BambooIterablesUtils extends Object
Modifier and Type | Method and Description |
---|---|
static <T> void |
addAll(Collection<T> to,
Iterable<? extends T> from) |
static boolean |
containsInstance(Iterable<?> haystack,
Object needle) |
static <T> boolean |
isEmpty(Iterable<T> iterable) |
static <T> boolean |
isNotEmpty(Iterable<T> iterable) |
static <T> Iterable<T> |
toIterable(Iterator<T> iterator) |
public static <T> boolean isEmpty(@Nullable Iterable<T> iterable)
public static <T> boolean isNotEmpty(@Nullable Iterable<T> iterable)
public static boolean containsInstance(@Nullable Iterable<?> haystack, @Nullable Object needle)
public static <T> void addAll(@NotNull Collection<T> to, @Nullable Iterable<? extends T> from)
Copyright © 2017 Atlassian Software Systems Pty Ltd. All rights reserved.