Javadoc.
This commit is contained in:
parent
22daa5f1dd
commit
1e6435ec10
|
@ -775,10 +775,14 @@ public class IterableUtils {
|
|||
}
|
||||
|
||||
/**
|
||||
* Shortcut for {@code get(iterator, 0)}.
|
||||
* <p>
|
||||
* Returns the <code>first</code> value in the <code>iterable</code>'s {@link Iterator}, throwing
|
||||
* <code>IndexOutOfBoundsException</code> if there is no such element.
|
||||
* </p>
|
||||
* <p>
|
||||
* If the {@link Iterable} is a {@link List}, then it will use {@link List#get(int)}.
|
||||
* </p>
|
||||
*
|
||||
* @param <T> the type of object in the {@link Iterable}.
|
||||
* @param iterable the {@link Iterable} to get a value from, may be null
|
||||
|
|
|
@ -1413,12 +1413,15 @@ public class IteratorUtils {
|
|||
}
|
||||
|
||||
/**
|
||||
* Shortcut for {@code get(iterator, 0)}.
|
||||
* <p>
|
||||
* Returns the <code>first</code> value in {@link Iterator}, throwing
|
||||
* <code>IndexOutOfBoundsException</code> if there is no such element.
|
||||
* </p>
|
||||
* <p>
|
||||
* The Iterator is advanced to <code>index</code> (or to the end, if
|
||||
* <code>index</code> exceeds the number of entries) as a side effect of this method.
|
||||
*
|
||||
* The Iterator is advanced to <code>0</code> (or to the end, if
|
||||
* <code>0</code> exceeds the number of entries) as a side effect of this method.
|
||||
* </p>
|
||||
* @param <E> the type of object in the {@link Iterator}
|
||||
* @param iterator the iterator to get a value from
|
||||
* @return the first object
|
||||
|
|
Loading…
Reference in New Issue