public class Iterables extends Object
Iterables, since we want to avoid introducing a dependency on Google Collections
in our public API| Modifier and Type | Method and Description |
|---|---|
static <T> Iterable<T> |
checkContentsNotNull(Iterable<T> iterable)
Checks every element of an
Iterable to make sure that none of the elements are null |
static boolean |
elementsEqual(Iterable<?> i1,
Iterable<?> i2)
Compares two
Iterables to determine if they are of equal lengths and contain equal elements in the same order. |
public static boolean elementsEqual(Iterable<?> i1, Iterable<?> i2)
Iterables to determine if they are of equal lengths and contain equal elements in the same order.i1 - the first Iterable to comparei2 - the second Iterable to comparetrue if the two Iterables contain equal elements in the same order, false otherwisepublic static <T> Iterable<T> checkContentsNotNull(Iterable<T> iterable)
Iterable to make sure that none of the elements are nullT - the type contained in the Iterableiterable - the Iterable to checkIterable that was passed inCopyright © 2024 Atlassian. All rights reserved.