mirror of
https://github.com/apache/commons-collections.git
synced 2025-02-13 13:35:53 +00:00
[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…
x
Reference in New Issue
Block a user