RE: [collections] New methods

2006-07-04 Thread James Carman
2006 12:57 PM To: Jakarta Commons Developers List Subject: Re: [collections] New methods > ListUtils.forceSize(List list, int size) > - trims list size to size if too large > - adds extra nulls to the list if its too small My original proposal was to have one method that trims if too

RE: [collections] New methods

2006-07-04 Thread James Carman
Developers List Subject: Re: [collections] New methods > ListUtils.forceSize(List list, int size) > - trims list size to size if too large > - adds extra nulls to the list if its too small My original proposal was to have one method that trims if too large and grows if too small. So, perhaps

RE: [collections] New methods

2006-07-04 Thread James Carman
y, July 04, 2006 1:39 AM To: Jakarta Commons Developers List Subject: RE: [collections] New methods Hi James & Stephen, James Carman wrote on Monday, July 03, 2006 6:31 PM: > You can't do a resize method because the code won't know > which way you want > to go with it. For

RE: [collections] New methods

2006-07-03 Thread Jörg Schaible
ethod, since the core > API provides > it. > > +1 on the obscurity of the merge() method. That doesn't > sound like a common > enough requirement to be on commons collections. > > -Original Message- > From: Henri Yandell [mailto:[EMAIL PROTECTED] > Se

Re: [collections] New methods

2006-07-03 Thread Stephen Colebourne
arta Commons Developers List Subject: Re: [collections] New methods On 7/3/06, Stephen Colebourne <[EMAIL PROTECTED]> wrote: > Some possible new methods for [collections] > > ListUtils.trimSize(List list, int size) > - trims list size to size if too large > > ListUtils.forceSi

RE: [collections] New methods

2006-07-03 Thread James Carman
doesn't sound like a common enough requirement to be on commons collections. -Original Message- From: Henri Yandell [mailto:[EMAIL PROTECTED] Sent: Monday, July 03, 2006 12:13 PM To: Jakarta Commons Developers List Subject: Re: [collections] New methods On 7/3/06, Stephen Colebourne

Re: [collections] New methods

2006-07-03 Thread Henri Yandell
On 7/3/06, Stephen Colebourne <[EMAIL PROTECTED]> wrote: Some possible new methods for [collections] ListUtils.trimSize(List list, int size) - trims list size to size if too large ListUtils.forceSize(List list, int size) - trims list size to size if too large - adds extra nulls to the list if i