public class CollectionFactory
extends java.lang.Object
Constructor and Description |
---|
CollectionFactory()
Simple default constructor
|
Modifier and Type | Method and Description |
---|---|
java.util.ArrayList |
newArrayList(java.lang.Object[] param)
Returns a new ArrayList using the given array of objects
|
java.util.HashMap |
newHashMap(Context aContext)
Returns a new HashMap based on the contents of a Context
|
java.util.HashMap |
newHashMap(java.lang.Object[] keys,
java.lang.Object[] values)
Returns a new HashMap
|
java.util.HashSet |
newHashSet(Context aContext)
Returns a new HashSet based on the contents of a Context.
|
java.util.HashSet |
newHashSet(java.lang.Object[] param)
Returns a new HashSet using the given array of objects
|
java.util.Hashtable |
newHashtable(Context aContext)
Returns a new Hashtable based on the contents of a Context
|
java.util.Hashtable |
newHashtable(java.lang.Object[] keys,
java.lang.Object[] values)
Returns a new Hashtable
|
java.util.LinkedList |
newLinkedList(java.lang.Object[] param)
Returns a new LinkedList using the given array of objects
|
java.util.List |
newList(java.lang.Object[] param)
Returns a new List using the given array of objects.
|
java.util.Map |
newMap(java.lang.Object[] keys,
java.lang.Object[] values)
Returns a new Map.
|
java.util.Set |
newSet(Context aContext)
Returns a new Set based on the contents of a Context.
|
java.util.Set |
newSet(java.lang.Object[] param)
Returns a new Set using the given array of objects.
|
java.util.TreeMap |
newTreeMap(java.lang.Object[] keys,
java.lang.Object[] values)
Returns a new TreeMap
|
java.util.TreeMap |
newTreeMap(java.lang.Object[] keys,
java.lang.Object[] values,
java.util.Comparator aComparator)
Returns a new TreeMap
|
java.util.TreeSet |
newTreeSet(java.lang.Object[] param)
Returns a new TreeSet using the given array of objects
|
java.util.TreeSet |
newTreeSet(java.lang.Object[] param,
java.util.Comparator aComparator)
Returns a new TreeSet using the given array of objects
|
java.util.Vector |
newVector(java.lang.Object[] param)
Returns a new Vector using the given array of objects
|
public java.util.List newList(java.lang.Object[] param)
param
- the array to use to fill the listpublic java.util.ArrayList newArrayList(java.lang.Object[] param)
param
- the array to use to fill the listpublic java.util.LinkedList newLinkedList(java.lang.Object[] param)
param
- the array to use to fill the listpublic java.util.Vector newVector(java.lang.Object[] param)
param
- the array to use to fill the listpublic java.util.Set newSet(java.lang.Object[] param)
param
- the array to use to fill the listpublic java.util.HashSet newHashSet(java.lang.Object[] param)
param
- the array to use to fill the listpublic java.util.TreeSet newTreeSet(java.lang.Object[] param)
param
- the array to use to fill the listpublic java.util.TreeSet newTreeSet(java.lang.Object[] param, java.util.Comparator aComparator)
param
- the array to use to fill the listaComparator
- the comparator used to sort elements in the treepublic java.util.Hashtable newHashtable(java.lang.Object[] keys, java.lang.Object[] values)
keys
- the vector making the keysvalues
- the vector making the valuespublic java.util.Map newMap(java.lang.Object[] keys, java.lang.Object[] values)
keys
- the vector making the keysvalues
- the vector making the valuespublic java.util.HashMap newHashMap(java.lang.Object[] keys, java.lang.Object[] values)
keys
- the vector making the keysvalues
- the vector making the valuespublic java.util.TreeMap newTreeMap(java.lang.Object[] keys, java.lang.Object[] values)
keys
- the vector making the keysvalues
- the vector making the valuespublic java.util.TreeMap newTreeMap(java.lang.Object[] keys, java.lang.Object[] values, java.util.Comparator aComparator)
keys
- the vector making the keysvalues
- the vector making the valuesaComparator
- the comparator used to sort elements in the treepublic java.util.Set newSet(Context aContext)
aContext
- the Contextpublic java.util.HashSet newHashSet(Context aContext)
aContext
- the Contextpublic java.util.HashMap newHashMap(Context aContext)
aContext
- the Contextpublic java.util.Hashtable newHashtable(Context aContext)
aContext
- the Context