[COLLECTIONS-675] Modify IteratorUtils.peekingIterator signature to
return PeekingIterator.
This commit is contained in:
parent
2dd7c4ad8e
commit
96eddd6ae1
|
@ -87,6 +87,9 @@
|
|||
<action issue="COLLECTIONS-671" dev="ggregory" type="add" due-to="Gary Gregory">
|
||||
Add org.apache.commons.collections4.IterableUtils.first(Iterable).
|
||||
</action>
|
||||
<action issue="COLLECTIONS-675" dev="ggregory" type="add" due-to="">
|
||||
Modify IteratorUtils.peekingIterator signature to return PeekingIterator.
|
||||
</action>
|
||||
</release>
|
||||
<release version="4.1" date="2015-11-28" description="This is a security and minor release.">
|
||||
<action issue="COLLECTIONS-508" dev="tn" type="add">
|
||||
|
|
|
@ -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