Prev Class | Next Class | Frames | No Frames |
Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
java.lang.Object
org.apache.tools.ant.util.CollectionUtils
public class CollectionUtils
extends java.lang.Object
Nested Class Summary | |
static class |
|
Method Summary | |
static Enumeration |
|
static Enumeration |
|
static Iterator |
|
static boolean |
|
static boolean |
|
static void |
|
public static Enumeration append(Enumeration e1, 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
public static Enumeration asEnumeration(Iterator iter)
Adapt the specified Iterator to the Enumeration interface.
- Parameters:
iter
- the Iterator to adapt.
- Returns:
- an Enumeration.
public static Iterator asIterator(Enumeration e)
Adapt the specified Enumeration to the Iterator interface.
- Parameters:
e
- the Enumeration to adapt.
- Returns:
- an Iterator.
public static boolean equals(Dictionary d1, Dictionary d2)
Deprecated. since 1.6.x.
Dictionary does not have an equals. Please use Map.equals(). Follows the equals contract of Java 2's Map.
- Parameters:
d1
- the first directory.d2
- the second directory.
- Returns:
- true if the directories are equal.
- Since:
- Ant 1.5
public static boolean equals(Vector v1, Vector v2)
Deprecated. since 1.6.x.
Please use Vector.equals() or List.equals().
- Parameters:
v1
- the first vector.v2
- the second vector.
- Returns:
- true if the vectors are equal.
- Since:
- Ant 1.5
public static void putAll(Dictionary m1, Dictionary m2)
Deprecated. since 1.6.x.
Dictionary does not know the putAll method. Please use Map.putAll().
- Parameters:
m1
- the to directory.m2
- the from directory.
- Since:
- Ant 1.6