commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stephen Colebourne <scolebou...@btopenworld.com>
Subject [collections] New methods
Date Mon, 03 Jul 2006 13:18:22 GMT
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

ListUtils.copy(List,Object[])
- copy a collection into an array

ListUtils.merge(List list, List defaultValues)
- replace any null values in list with the matching index in defaultValues

Opinions? Volunteers to code them?!!!

Stephen





---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message