jfun.util
Class CollectionUtils

java.lang.Object
  extended by jfun.util.CollectionUtils

public class CollectionUtils
extends java.lang.Object

Stolen from Ant. A set of helper methods related to collection manipulation.

Since:
Ant 1.5

Constructor Summary
CollectionUtils()
           
 
Method Summary
static java.util.Enumeration append(java.util.Enumeration e1, java.util.Enumeration e2)
          Append one enumeration to another.
static java.util.Enumeration nilEnumeration()
          Get an empty Enumeration object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CollectionUtils

public CollectionUtils()
Method Detail

nilEnumeration

public static java.util.Enumeration nilEnumeration()
Get an empty Enumeration object.


append

public static java.util.Enumeration append(java.util.Enumeration e1,
                                           java.util.Enumeration e2)
Append one enumeration to another. Elements are evaluated lazily.

Parameters:
e1 - the first enumeration
e2 - the subsequent enumeration
Returns:
an enumeration representing e1 followed by e2
Since:
Ant 1.6.3