public class Iterables2
extends java.lang.Object
com.google.common.collect.Iterables.| Modifier and Type | Method and Description |
|---|---|
static <T> T |
get(java.lang.Iterable<T> iterable,
int position)
Returns the element at the specified position in an iterable.
|
@Nullable
public static <T> T get(@Nonnull
java.lang.Iterable<T> iterable,
@Nonnegative
int position)
throws java.lang.NullPointerException,
java.lang.IndexOutOfBoundsException
iterable - the iterable to search intoposition - the position of the entry to returnlocation in the given iterable
throwsjava.lang.IndexOutOfBoundsException - if given position is negative or
greater than or equal to the size of given iterablejava.lang.NullPointerExceptionCopyright © 2017. All Rights Reserved.