|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.atlassian.gadgets.dashboard.util.Iterables
public class Iterables
Convenience methods for dealing with Iterables, since we want to avoid introducing a dependency on Google Collections
in our public API
| Method Summary | ||
|---|---|---|
static
|
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. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
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 compare
true 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 null
T - the type contained in the Iterableiterable - the Iterable to check
Iterable that was passed in
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||