CoherenceTM v3.3
Copyright© 2000-2007 by Oracle Corporation

com.tangosol.util
Class CollectionHelper

java.lang.Object
  extended by com.tangosol.util.CollectionHelper

public abstract class CollectionHelper
extends Object

This abstract class contains helper functions for manipulating collections and enumerations.

Version:
1.00, 04/25/00
Author:
Pat McNerthney

Constructor Summary
CollectionHelper()
           
 
Method Summary
static Collection convert(Collection colOriginal, Converter converter)
          Convert a collection from one set of objects to a new set of objects.
static Enumeration convert(Enumeration enmr, Converter converter)
          Convert an Enumeration from one set of objects to a new set of objects.
static Iterator convert(Iterator iter, Converter converter)
          Convert an Iterator from one set of objects to a new set of objects.
 

Constructor Detail

CollectionHelper

public CollectionHelper()
Method Detail

convert

public static Collection convert(Collection colOriginal,
                                 Converter converter)
Convert a collection from one set of objects to a new set of objects.

Parameters:
colOriginal - the orignal collection of objects
converter - an object which will perform the conversion of elements of the collection
Returns:
the converted collection

convert

public static Iterator convert(Iterator iter,
                               Converter converter)
Convert an Iterator from one set of objects to a new set of objects.

Parameters:
iter - the orignal Iterator of objects
converter - an object which will perform the conversion
Returns:
the converted Iterator

convert

public static Enumeration convert(Enumeration enmr,
                                  Converter converter)
Convert an Enumeration from one set of objects to a new set of objects.

Parameters:
enmr - the orignal Enumeration of objects
converter - an object which will perform the conversion
Returns:
the converted Enumeration

CoherenceTM v3.3
Copyright© 2000-2007 by Oracle Corporation