gnu.beanfactory.util
Class CollectionsUtil

java.lang.Object
  |
  +--gnu.beanfactory.util.CollectionsUtil

public class CollectionsUtil
extends java.lang.Object

Utility methods for manipulating java collections.


Constructor Summary
CollectionsUtil()
           
 
Method Summary
static int addAll(java.util.Collection to, java.util.Enumeration e)
          Adds the elements in an enumeration to a collection.
static int addAll(java.util.Collection to, java.util.Iterator t)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CollectionsUtil

public CollectionsUtil()
Method Detail

addAll

public static int addAll(java.util.Collection to,
                         java.util.Enumeration e)
Adds the elements in an enumeration to a collection.
Parameters:
to - the collection to be added to
e - the enumeration whose elements are to be added
Returns:
the number of items that were added

addAll

public static int addAll(java.util.Collection to,
                         java.util.Iterator t)