<snip> > > > > how does the above work with Collections that don't have an explicit > > ordering, like a Map or Set? > > > > Map's aren't Collections, so it doesn't work with them. you're right, I should check my Javadoc more carefully... :) >Set's it treats in > iterator order, so you've a good point, it should be java.util.List > slice(java.util.List, int, int) > Seems a bit redundant if changing to accept a List. Couldn't you just call List.subList(fromIndex, toIndex); ? Jari > Bay -- Jari Worsley Senior Programmer Hyperlink Interactive Ltd
- Re: cvs commit: jakarta-commons-sandb... Craig R. McClanahan
- Util dependency on Collections? Daniel Rall
- Re: Util dependency on Collections? James Strachan
- Re: Util dependency on Collectio... bayard
- Re: Util dependency on Colle... James Strachan
- Re: Util dependency on Colle... bayard
- Re: Util dependency on Colle... James Strachan
- Re: Util dependency on Colle... Jari Worsley
- Re: Util dependency on Colle... bayard
- Re: Util dependency on Colle... Jari Worsley
- Re: Util dependency on Colle... bayard
- Re: Util dependency on Colle... James Strachan
- Re: Util dependency on Colle... bayard
- Re: Util dependency on Colle... James Strachan
- Re: Util dependency on Colle... James Strachan
- Re: Util dependency on Colle... Jari Worsley
- cvs commit: jakarta-commons-sandbox/util/src/java/org/... dlr
- cvs commit: jakarta-commons-sandbox/util/src/java/org/... dlr
