com.generationjava.collections
Class CollectionsW

java.lang.Object
  extended bycom.generationjava.collections.CollectionsW

public final class CollectionsW
extends Object

A wrapper around the Collections. Provides functionality above and beyond the duty of java.util's Collection API.


Constructor Summary
CollectionsW()
           
 
Method Summary
static Collection cloneNewEmptyCollection(Collection coll)
           
static Map cloneNewEmptyMap(Map map)
           
static String[] getSubArray(String[] ob, int idx)
           
static int simpleSearch(List list, Object obj)
           
static int simpleSearch(List list, Object obj, Comparator cmp)
           
static Collection slice(Collection coll, int start, int end)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CollectionsW

public CollectionsW()
Method Detail

slice

public static Collection slice(Collection coll,
                               int start,
                               int end)

cloneNewEmptyCollection

public static Collection cloneNewEmptyCollection(Collection coll)

cloneNewEmptyMap

public static Map cloneNewEmptyMap(Map map)

getSubArray

public static String[] getSubArray(String[] ob,
                                   int idx)

simpleSearch

public static int simpleSearch(List list,
                               Object obj)

simpleSearch

public static int simpleSearch(List list,
                               Object obj,
                               Comparator cmp)


Copyright © 2000-2005 OSJava. All Rights Reserved.