|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.jonathan.helpers.CollectionFactory
This class provides factory methods for the different kinds of Collections
Constructor Summary | |
CollectionFactory()
Simple default constructor |
Method Summary | |
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 |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public CollectionFactory()
Method Detail |
public java.util.List newList(java.lang.Object[] param)
param
- the array to use to fill the list
public java.util.ArrayList newArrayList(java.lang.Object[] param)
param
- the array to use to fill the list
public java.util.LinkedList newLinkedList(java.lang.Object[] param)
param
- the array to use to fill the list
public java.util.Vector newVector(java.lang.Object[] param)
param
- the array to use to fill the list
public java.util.Set newSet(java.lang.Object[] param)
param
- the array to use to fill the list
public java.util.HashSet newHashSet(java.lang.Object[] param)
param
- the array to use to fill the list
public java.util.TreeSet newTreeSet(java.lang.Object[] param)
param
- the array to use to fill the list
public 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 tree
public java.util.Hashtable newHashtable(java.lang.Object[] keys, java.lang.Object[] values)
keys
- the vector making the keysvalues
- the vector making the values
public java.util.Map newMap(java.lang.Object[] keys, java.lang.Object[] values)
keys
- the vector making the keysvalues
- the vector making the values
public java.util.HashMap newHashMap(java.lang.Object[] keys, java.lang.Object[] values)
keys
- the vector making the keysvalues
- the vector making the values
public java.util.TreeMap newTreeMap(java.lang.Object[] keys, java.lang.Object[] values)
keys
- the vector making the keysvalues
- the vector making the values
public 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 tree
public java.util.Set newSet(Context aContext)
aContext
- the Context
public java.util.HashSet newHashSet(Context aContext)
aContext
- the Context
public java.util.HashMap newHashMap(Context aContext)
aContext
- the Context
public java.util.Hashtable newHashtable(Context aContext)
aContext
- the Context
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |