com.generationjava.collections
Class CollectionsW

java.lang.Object
  |
  +--com.generationjava.collections.CollectionsW

public final class CollectionsW
extends java.lang.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 java.util.Collection cloneNewEmptyCollection(java.util.Collection coll)
           
static java.util.Map cloneNewEmptyMap(java.util.Map map)
           
static java.lang.String[] getSubArray(java.lang.String[] ob, int idx)
           
static java.lang.Object[] iteratorToArray(java.util.Iterator iterator)
           
static java.lang.Object[] iteratorToArray(java.util.Iterator iterator, java.lang.Object[] type)
           
static java.util.Collection slice(java.util.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 java.util.Collection slice(java.util.Collection coll,
                                         int start,
                                         int end)

cloneNewEmptyCollection

public static java.util.Collection cloneNewEmptyCollection(java.util.Collection coll)

cloneNewEmptyMap

public static java.util.Map cloneNewEmptyMap(java.util.Map map)

getSubArray

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

iteratorToArray

public static java.lang.Object[] iteratorToArray(java.util.Iterator iterator)

iteratorToArray

public static java.lang.Object[] iteratorToArray(java.util.Iterator iterator,
                                                 java.lang.Object[] type)


Copyright © 2000-2003 GenerationJava. All Rights Reserved.