org.logicalcobwebs.cglib.core
Class CollectionUtils

java.lang.Object
  extended by org.logicalcobwebs.cglib.core.CollectionUtils

public class CollectionUtils
extends java.lang.Object

Version:
$Id: CollectionUtils.java,v 1.1 2003/12/12 19:28:11 billhorsman Exp $
Author:
Chris Nokleberg

Constructor Summary
private CollectionUtils()
           
 
Method Summary
static java.util.Map bucket(java.util.Collection c, Transformer t)
           
static java.util.Collection filter(java.util.Collection c, Predicate p)
           
static java.lang.Object[] filter(java.lang.Object[] a, Predicate p)
           
static void reverse(java.util.Map source, java.util.Map target)
           
static java.util.List transform(java.util.List c, Transformer t)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CollectionUtils

private CollectionUtils()
Method Detail

bucket

public static java.util.Map bucket(java.util.Collection c,
                                   Transformer t)

reverse

public static void reverse(java.util.Map source,
                           java.util.Map target)

filter

public static java.lang.Object[] filter(java.lang.Object[] a,
                                        Predicate p)

filter

public static java.util.Collection filter(java.util.Collection c,
                                          Predicate p)

transform

public static java.util.List transform(java.util.List c,
                                       Transformer t)