Skip navigation links

Oracle® Coherence Java API Reference
Release 3.7.0.0

E18683-01


com.tangosol.util
Class CollectionHelper

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


public abstract class CollectionHelper
extends java.lang.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 java.util.Collection convert(java.util.Collection colOriginal, Converter converter)
          Convert a collection from one set of objects to a new set of objects.
static java.util.Enumeration convert(java.util.Enumeration enmr, Converter converter)
          Convert an Enumeration from one set of objects to a new set of objects.
static java.util.Iterator convert(java.util.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 java.util.Collection convert(java.util.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 java.util.Iterator convert(java.util.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 java.util.Enumeration convert(java.util.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

Skip navigation links

Oracle® Coherence Java API Reference
Release 3.7.0.0

E18683-01


Copyright © 2000, 2011, Oracle and/or its affiliates. All rights reserved.