public class SCollection
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
SCollection.DebugPrinter
Create an info printer for the collections.
|
Modifier and Type | Field and Description |
---|---|
static boolean |
DEBUG |
Constructor and Description |
---|
SCollection() |
Modifier and Type | Method and Description |
---|---|
protected static void |
addCollection(java.lang.Object o)
Add a map to the observer list.
|
static java.util.List |
concurrencyCheckingList(java.util.List list)
Wrap a list for concurrency checking.
|
static <T> java.util.ArrayList<T> |
createArrayList()
Return a fresh array list.
|
static FastHashMap |
createFastHashMap()
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.Hashtable |
createHashtable()
Return a fresh hashtable.
|
static IndexMap |
createIndexMap()
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.LinkedList |
createLinkedList()
Return a fresh linked list.
|
static <T,E> LRU<T,E> |
createLRU(int max)
Return a fresh linked hash map.
|
static MultiCollection |
createMultiCollection()
Return a fresh multi collection.
|
static NestedMap |
createNestedMap(java.util.Map map)
Return a linked hash set.
|
static NestedMap |
createNestedMap(java.util.Map[] map)
Return a linked hash set.
|
static java.util.Vector |
createVector()
Return a fresh vector.
|
static java.util.WeakHashMap |
createWeakHashMap()
Return a fresh weak hash map.
|
static WeakList |
createWeakList()
Return a fresh weak list.
|
static WeakSet |
createWeakSet()
Return a fresh weak set.
|
static void |
main(java.lang.String[] args) |
protected static void |
printCollectionInfo(java.util.Iterator it,
int boundary)
Print out all collections with more than boundary elements.
|
public static final boolean DEBUG
public static IndexMap createIndexMap()
public static java.util.Hashtable createHashtable()
public static <T,E> java.util.HashMap<T,E> createHashMap()
public static <T,E> java.util.HashMap<T,E> createLinkedHashMap()
public static <T,E> LRU<T,E> createLRU(int max)
public static FastHashMap createFastHashMap()
public static MultiCollection createMultiCollection()
public static java.util.WeakHashMap createWeakHashMap()
public static WeakList createWeakList()
public static WeakSet createWeakSet()
public static <T> java.util.ArrayList<T> createArrayList()
public static java.util.LinkedList createLinkedList()
public static java.util.Vector createVector()
public static <T> java.util.HashSet<T> createHashSet()
public static <T> java.util.LinkedHashSet<T> createLinkedHashSet()
public static NestedMap createNestedMap(java.util.Map map)
public static NestedMap createNestedMap(java.util.Map[] map)
public static java.util.List concurrencyCheckingList(java.util.List list)
protected static void addCollection(java.lang.Object o)
protected static void printCollectionInfo(java.util.Iterator it, int boundary)
public static void main(java.lang.String[] args) throws java.lang.InterruptedException
java.lang.InterruptedException