You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "BELUGA BEHR (JIRA)" <ji...@apache.org> on 2018/11/01 15:31:01 UTC
[jira] [Updated] (COLLECTIONS-698) Expand LoopingListIterator
[ https://issues.apache.org/jira/browse/COLLECTIONS-698?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
BELUGA BEHR updated COLLECTIONS-698:
------------------------------------
Description:
Please enhance {{LoopingListIterator}} to accept a starting offset and a number to indicate the number of loops.
https://docs.oracle.com/javase/7/docs/api/java/util/List.html#listIterator(int)
{code:java}
public LoopingListIterator(List<E> list, int offset, int loops);
{code}
As I imagine it, if a list has 3 items (1,2,3) then {{LoopingListIterator(list, 1, 1)}} would iterate: (2,3,1)
was:
Please enhance {{LoopingListIterator}} to accept a starting offset and a number to indicate the number of loops.
https://docs.oracle.com/javase/7/docs/api/java/util/List.html#listIterator(int)
{code:java}
public LoopingListIterator(List<E> list, int offset, int loops);
{code}
> Expand LoopingListIterator
> --------------------------
>
> Key: COLLECTIONS-698
> URL: https://issues.apache.org/jira/browse/COLLECTIONS-698
> Project: Commons Collections
> Issue Type: Improvement
> Components: Iterator
> Affects Versions: 4.2
> Reporter: BELUGA BEHR
> Priority: Minor
>
> Please enhance {{LoopingListIterator}} to accept a starting offset and a number to indicate the number of loops.
> https://docs.oracle.com/javase/7/docs/api/java/util/List.html#listIterator(int)
> {code:java}
> public LoopingListIterator(List<E> list, int offset, int loops);
> {code}
> As I imagine it, if a list has 3 items (1,2,3) then {{LoopingListIterator(list, 1, 1)}} would iterate: (2,3,1)
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)