public final class SunJdk8Internals extends Object
| Modifier and Type | Method and Description |
|---|---|
static Object[] |
accessArray(ArrayList<?> arrayList) |
static Object[] |
accessArray(PriorityQueue<?> priorityQueue) |
static Object[] |
accessArray(Vector<?> vector) |
static Properties |
accessDefaults(Properties properties) |
static boolean |
getAccessOrder(LinkedHashMap<?,?> linkedHashMap) |
static int |
getCapacityIncrement(Vector<?> vector) |
static int |
getElementCount(Vector<?> vector) |
static float |
getLoadFactor(HashMap<?,?> hashMap) |
static float |
getLoadFactor(HashSet<?> hashSet)
My god.
|
static float |
getLoadFactor(Hashtable<?,?> hashtable) |
static float |
getLoadFactor(LinkedHashMap<?,?> linkedHashMap) |
static void |
setCapacityIncrement(Vector<?> vector,
int size) |
static void |
setDefaults(Properties properties,
Properties defaults) |
static void |
setElementCount(Vector<?> vector,
int size) |
static void |
setSize(ArrayList<?> arrayList,
int size) |
static void |
setSize(PriorityQueue<?> priorityQueue,
int size) |
public static void setSize(ArrayList<?> arrayList, int size)
public static float getLoadFactor(HashSet<?> hashSet)
Not to mention the set wraps a map internally which is THE most moronic thing to do both memory- and performance-wise.
So another hack method has to provide basic functionality that is missing in the JDK. And should they ever get the idea to implement the set properly, this method will break.
hashSet - the hash set to get the load factor forpublic static float getLoadFactor(HashMap<?,?> hashMap)
public static float getLoadFactor(Hashtable<?,?> hashtable)
public static float getLoadFactor(LinkedHashMap<?,?> linkedHashMap)
public static boolean getAccessOrder(LinkedHashMap<?,?> linkedHashMap)
public static int getElementCount(Vector<?> vector)
public static void setElementCount(Vector<?> vector, int size)
public static int getCapacityIncrement(Vector<?> vector)
public static void setCapacityIncrement(Vector<?> vector, int size)
public static Properties accessDefaults(Properties properties)
public static void setDefaults(Properties properties, Properties defaults)
public static Object[] accessArray(PriorityQueue<?> priorityQueue)
public static void setSize(PriorityQueue<?> priorityQueue, int size)
Copyright © 2022 MicroStream Software. All rights reserved.