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 its too small
Would it be bad to just have the one method that both enlarged and
shrunk? resize(LIst, int) or something?
ListUtils.copy(List,Object[])
- copy a collection into an array
java.util.Collection.toArray() ?
ListUtils.merge(List list, List defaultValues)
- replace any null values in list with the matching index in defaultValues
Do you think this is something people will need often? Seems likely to
be quite rare.
Hen
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]