|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.gadgets.dashboard.util.Iterables
public class Iterables
Convenience methods for dealing with Iterable
s, 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 Iterable s 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)
Iterable
s 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 Iterable
s 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 Iterable
iterable
- 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 |