[COLLECTIONS-676] Modify IteratorUtils.pushbackIterator signature to
return PushbackIterator.
This commit is contained in:
parent
96eddd6ae1
commit
8da9a65b63
|
@ -87,9 +87,12 @@
|
|||
<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="">
|
||||
<action issue="COLLECTIONS-675" dev="ggregory" type="add" due-to="Matthew Knight">
|
||||
Modify IteratorUtils.peekingIterator signature to return PeekingIterator.
|
||||
</action>
|
||||
<action issue="COLLECTIONS-676" dev="ggregory" type="add" due-to="Matthew Knight">
|
||||
Modify IteratorUtils.pushbackIterator signature to return PushbackIterator.
|
||||
</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">
|
||||
|
|
|
@ -873,8 +873,9 @@ public class IteratorUtils {
|
|||
* @return a pushback iterator
|
||||
* @throws NullPointerException if the iterator is null
|
||||
* @since 4.0
|
||||
* @since 4.2 returns a {@link PushbackIterator} instead of a {@link Iterator}.
|
||||
*/
|
||||
public static <E> Iterator<E> pushbackIterator(final Iterator<? extends E> iterator) {
|
||||
public static <E> PushbackIterator<E> pushbackIterator(final Iterator<? extends E> iterator) {
|
||||
return PushbackIterator.pushbackIterator(iterator);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue