Package jadex.commons.collection
Class SCollection
- java.lang.Object
- 
- jadex.commons.collection.SCollection
 
- 
 public class SCollection extends java.lang.ObjectStatic methods for collection creation and observation.
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description static classSCollection.DebugPrinterCreate an info printer for the collections.
 - 
Field SummaryFields Modifier and Type Field Description static booleanDEBUG
 - 
Constructor SummaryConstructors Constructor Description SCollection()
 - 
Method SummaryAll Methods Static Methods Concrete Methods Modifier and Type Method Description protected static voidaddCollection(java.lang.Object o)Add a map to the observer list.static java.util.ListconcurrencyCheckingList(java.util.List list)Wrap a list for concurrency checking.static <T> java.util.ArrayList<T>createArrayList()Return a fresh array list.static FastHashMapcreateFastHashMap()Return a fresh hash map.static <T,E>
 java.util.HashMap<T,E>createHashMap()Return a fresh hash map.static <T> java.util.HashSet<T>createHashSet()Return a hash set.static java.util.HashtablecreateHashtable()Return a fresh hashtable.static IndexMapcreateIndexMap()Return a fresh index map.static <T,E>
 java.util.HashMap<T,E>createLinkedHashMap()Return a fresh linked hash map.static <T> java.util.LinkedHashSet<T>createLinkedHashSet()Return a linked hash set.static java.util.LinkedListcreateLinkedList()Return a fresh linked list.static <T,E>
 LRU<T,E>createLRU(int max)Return a fresh linked hash map.static MultiCollectioncreateMultiCollection()Return a fresh multi collection.static NestedMapcreateNestedMap(java.util.Map map)Return a linked hash set.static NestedMapcreateNestedMap(java.util.Map[] map)Return a linked hash set.static java.util.VectorcreateVector()Return a fresh vector.static java.util.WeakHashMapcreateWeakHashMap()Return a fresh weak hash map.static WeakListcreateWeakList()Return a fresh weak list.static WeakSetcreateWeakSet()Return a fresh weak set.static voidmain(java.lang.String[] args)protected static voidprintCollectionInfo(java.util.Iterator it, int boundary)Print out all collections with more than boundary elements.
 
- 
- 
- 
Field Detail- 
DEBUGpublic static final boolean DEBUG - See Also:
- Constant Field Values
 
 
- 
 - 
Method Detail- 
createIndexMappublic static IndexMap createIndexMap() Return a fresh index map.
 - 
createHashtablepublic static java.util.Hashtable createHashtable() Return a fresh hashtable.
 - 
createHashMappublic static <T,E> java.util.HashMap<T,E> createHashMap() Return a fresh hash map.
 - 
createLinkedHashMappublic static <T,E> java.util.HashMap<T,E> createLinkedHashMap() Return a fresh linked hash map.
 - 
createLRUpublic static <T,E> LRU<T,E> createLRU(int max) Return a fresh linked hash map.
 - 
createFastHashMappublic static FastHashMap createFastHashMap() Return a fresh hash map.
 - 
createMultiCollectionpublic static MultiCollection createMultiCollection() Return a fresh multi collection.
 - 
createWeakHashMappublic static java.util.WeakHashMap createWeakHashMap() Return a fresh weak hash map.
 - 
createWeakListpublic static WeakList createWeakList() Return a fresh weak list.
 - 
createWeakSetpublic static WeakSet createWeakSet() Return a fresh weak set.
 - 
createArrayListpublic static <T> java.util.ArrayList<T> createArrayList() Return a fresh array list.
 - 
createLinkedListpublic static java.util.LinkedList createLinkedList() Return a fresh linked list.
 - 
createVectorpublic static java.util.Vector createVector() Return a fresh vector.
 - 
createHashSetpublic static <T> java.util.HashSet<T> createHashSet() Return a hash set.
 - 
createLinkedHashSetpublic static <T> java.util.LinkedHashSet<T> createLinkedHashSet() Return a linked hash set.
 - 
createNestedMappublic static NestedMap createNestedMap(java.util.Map map) Return a linked hash set.
 - 
createNestedMappublic static NestedMap createNestedMap(java.util.Map[] map) Return a linked hash set.
 - 
concurrencyCheckingListpublic static java.util.List concurrencyCheckingList(java.util.List list) Wrap a list for concurrency checking.
 - 
addCollectionprotected static void addCollection(java.lang.Object o) Add a map to the observer list.
 - 
printCollectionInfoprotected static void printCollectionInfo(java.util.Iterator it, int boundary)Print out all collections with more than boundary elements.
 - 
mainpublic static void main(java.lang.String[] args) throws java.lang.InterruptedException- Throws:
- java.lang.InterruptedException
 
 
- 
 
-