public class JnarioIterableExtensions extends Object
| Constructor and Description |
|---|
JnarioIterableExtensions() |
| Modifier and Type | Method and Description |
|---|---|
static <T> T |
fifth(Iterable<T> iterable) |
static <T> T |
first(Iterable<?> iterator,
Class<T> type) |
static <T> T |
first(Iterable<T> iterable) |
static <T> T |
forth(Iterable<T> iterable) |
static <T> T |
get(Iterable<T> iterable,
int index)
Returns the element at the specified position in the arguments.
|
static <T> T |
second(Iterable<?> iterator,
Class<T> type) |
static <T> T |
second(Iterable<T> iterable) |
static <T> T |
third(Iterable<T> iterable) |
public static <T> T get(Iterable<T> iterable, int index)
index - index of the element to returnIndexOutOfBoundsException - if the index is out of range
(index < 0 || index >= size())public static <T> T first(Iterable<T> iterable)
public static <T> T second(Iterable<T> iterable)
public static <T> T third(Iterable<T> iterable)
public static <T> T forth(Iterable<T> iterable)
public static <T> T fifth(Iterable<T> iterable)
public static <T> T first(Iterable<?> iterator, Class<T> type)
Copyright © 2012-2014 BMW Car IT. All Rights Reserved.