public class JnarioIteratorExtensions extends Object
| Constructor and Description |
|---|
JnarioIteratorExtensions() |
| Modifier and Type | Method and Description |
|---|---|
static <T> T |
fifth(Iterator<T> iterator) |
static <T> T |
first(Iterator<?> iterator,
Class<T> type) |
static <T> T |
first(Iterator<T> iterator) |
static <T> T |
forth(Iterator<T> iterator) |
static <T> T |
get(Iterator<T> iterator,
int index)
Returns the element at the specified position in the arguments.
|
static <T> T |
second(Iterator<?> iterator,
Class<T> type) |
static <T> T |
second(Iterator<T> iterator) |
static <T> T |
third(Iterator<T> iterator) |
public static <T> T get(Iterator<T> iterator, 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(Iterator<T> iterator)
public static <T> T second(Iterator<T> iterator)
public static <T> T third(Iterator<T> iterator)
public static <T> T forth(Iterator<T> iterator)
public static <T> T fifth(Iterator<T> iterator)
public static <T> T first(Iterator<?> iterator, Class<T> type)
Copyright © 2012-2014 BMW Car IT. All Rights Reserved.