org.apache.tools.ant.util

Class CollectionUtils


public class CollectionUtils
extends java.lang.Object

A set of helper methods related to collection manipulation.

Since:
Ant 1.5

Nested Class Summary

static class
CollectionUtils.EmptyEnumeration

Method Summary

static boolean
equals(Dictionary d1, Dictionary d2)
Deprecated.
static boolean
equals(Vector v1, Vector v2)
Deprecated.
static void
putAll(Dictionary m1, Dictionary m2)
Deprecated.

Method Details

equals

public static boolean equals(Dictionary d1,
                             Dictionary d2)

Deprecated.

Dictionary does not have an equals. Please use Map.equals()

Follows the equals contract of Java 2's Map.

Since:
Ant 1.5


equals

public static boolean equals(Vector v1,
                             Vector v2)

Deprecated.

Please use Vector.equals() or List.equals()

Since:
Ant 1.5


putAll

public static void putAll(Dictionary m1,
                          Dictionary m2)

Deprecated.

Dictionary does not know the putAll method. Please use Map.putAll().

Since:
Ant 1.6


Copyright B) 2000-2005 Apache Software Foundation. All Rights Reserved.