FileDocCategorySizeDatePackage
Util.javaAPI DocJava SE 6 API2359Tue Jun 10 00:22:04 BST 2008com.sun.jmx.mbeanserver

Util

public class Util extends Object

Fields Summary
Constructors Summary
Methods Summary
public static Tcast(java.lang.Object x)

        return (T) x;
    
static java.util.IdentityHashMapnewIdentityHashMap()

        return new IdentityHashMap<K, V>();
    
static java.util.MapnewInsertionOrderMap()

        return new LinkedHashMap<K, V>();
    
static java.util.ListnewList()

        return new ArrayList<E>();
    
static java.util.ListnewList(java.util.Collection c)

        return new ArrayList<E>(c);
    
static java.util.MapnewMap()

        return new HashMap<K, V>();
    
static java.util.SetnewSet()

        return new HashSet<E>();
    
static java.util.SetnewSet(java.util.Collection c)

        return new HashSet<E>(c);
    
static java.util.SortedMapnewSortedMap()

        return new TreeMap<K, V>();
    
static java.util.SortedMapnewSortedMap(java.util.Comparator comp)

        return new TreeMap<K, V>(comp);
    
static java.util.MapnewSynchronizedIdentityHashMap()

        Map<K, V> map = newIdentityHashMap();
        return Collections.synchronizedMap(map);
    
static java.util.MapnewSynchronizedMap()

        return Collections.synchronizedMap(Util.<K, V>newMap());