[COLLECTIONS-675] Modify IteratorUtils.peekingIterator signature to
return PeekingIterator.
This commit is contained in:
parent
2dd7c4ad8e
commit
96eddd6ae1
File diff suppressed because it is too large
Load Diff
|
@ -856,8 +856,9 @@ public class IteratorUtils {
|
|||
* @return a peeking iterator
|
||||
* @throws NullPointerException if the iterator is null
|
||||
* @since 4.0
|
||||
* @since 4.2 returns a {@link PeekingIterator} instead of a {@link Iterator}.
|
||||
*/
|
||||
public static <E> Iterator<E> peekingIterator(final Iterator<? extends E> iterator) {
|
||||
public static <E> PeekingIterator<E> peekingIterator(final Iterator<? extends E> iterator) {
|
||||
return PeekingIterator.peekingIterator(iterator);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue