Closed GoogleCodeExporter closed 9 years ago
Thanks for the contribution!
When considering new functionality, my first question is how helpful it would
be.
Since I haven't seen much code that uses ListIterators, it's not clear that
there
would be much demand for a filtered ListIterator. That makes me reluctant to
add this
code to the Google Collections library.
Original comment by jared.l....@gmail.com
on 13 Dec 2008 at 12:10
I take for granted that: a) ListIterators per se are useful (Bloch would agree
I
guess :)), b) filtering views are useful - you already provide filtered views
for
Iterable and Iterator among others. For me it makes perfect sense to also
support the
remaining interface as well. It's a gap.
And besides, the api cost is so minimal (merely an overloading of an existing
method
that targets ListIterator instead of Iterator) that I don't understand what
worries
you.
(Even that is not *really* required, in the case that even this cost is deemed
as
high to pay: make the existing Iterators#filtered method do an "unfiltered
instanceof
ListIterator" test and return appropriately... wouldn't hurt anyone).
Original comment by jim.andreou
on 13 Dec 2008 at 12:56
Original comment by kevin...@gmail.com
on 17 Sep 2009 at 5:57
Original comment by kevin...@gmail.com
on 17 Sep 2009 at 6:02
Original comment by kevinb@google.com
on 30 Jul 2010 at 3:53
Original comment by fry@google.com
on 26 Jan 2011 at 10:41
Original comment by kevinb@google.com
on 13 Jul 2011 at 6:18
Original comment by fry@google.com
on 10 Dec 2011 at 3:34
Original comment by fry@google.com
on 16 Feb 2012 at 7:17
Lists.filter is in the Idea Graveyard, no? Why would we provide this, then?
Original comment by wasserman.louis
on 16 May 2012 at 2:12
Sure, this can be closed, and save some maintenance (e.g. updating all these
tags over the years!)
Original comment by jim.andreou
on 16 May 2012 at 3:21
Graveyard says: "The biggest concern here is that too many operations become
expensive, linear-time propositions."
I think that this meant things like List.get. I suppose that it's technically
true here, too, in the case of ListIterator.remove, but the same was true of
Iterables.filter's hasNext/next calls, and that didn't stop us from providing
that.
Still, given that Dimitris is fine with closing this, I'm fine with it.
Original comment by cpov...@google.com
on 16 May 2012 at 4:09
This issue has been migrated to GitHub.
It can be found at https://github.com/google/guava/issues/<id>
Original comment by cgdecker@google.com
on 1 Nov 2014 at 4:16
Original comment by cgdecker@google.com
on 3 Nov 2014 at 9:10
Original issue reported on code.google.com by
jim.andreou
on 12 Dec 2008 at 11:16Attachments: