org.apache.ant.dotnet.util
Class CollectionUtils

java.lang.Object
  extended by org.apache.ant.dotnet.util.CollectionUtils

public class CollectionUtils
extends java.lang.Object

Helper methods related to collection manipulation.

This is a stripped down copy of Ant 1.8.2's version so the .NET Antlib can still be used with Ant 1.7.0.

Since:
.NET Antlib 1.1

Constructor Summary
CollectionUtils()
           
 
Method Summary
static java.lang.String flattenToString(java.util.Collection c)
          Creates a comma separated list of all values held in the given collection.
static java.lang.String flattenToString(java.util.Collection c, java.lang.String sep)
          Creates a list of all values held in the given collection separated by the given separator.
 
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

flattenToString

public static java.lang.String flattenToString(java.util.Collection c)
Creates a comma separated list of all values held in the given collection.

Since:
.NET Antlib 1.1

flattenToString

public static java.lang.String flattenToString(java.util.Collection c,
                                               java.lang.String sep)
Creates a list of all values held in the given collection separated by the given separator.

Since:
.NET Antlib 1.1