Package one.microstream.memory.sun
Class SunJdk8Internals
- java.lang.Object
- 
- one.microstream.memory.sun.SunJdk8Internals
 
- 
 public final class SunJdk8Internals extends Object 
- 
- 
Constructor SummaryConstructors Constructor Description SunJdk8Internals()
 - 
Method SummaryModifier and Type Method Description static Object[]accessArray(ArrayList<?> arrayList)static Object[]accessArray(PriorityQueue<?> priorityQueue)static Object[]accessArray(Vector<?> vector)static PropertiesaccessDefaults(Properties properties)static booleangetAccessOrder(LinkedHashMap<?,?> linkedHashMap)static intgetCapacityIncrement(Vector<?> vector)static intgetElementCount(Vector<?> vector)static floatgetLoadFactor(HashMap<?,?> hashMap)static floatgetLoadFactor(HashSet<?> hashSet)My god.static floatgetLoadFactor(Hashtable<?,?> hashtable)static floatgetLoadFactor(LinkedHashMap<?,?> linkedHashMap)static voidsetCapacityIncrement(Vector<?> vector, int size)static voidsetDefaults(Properties properties, Properties defaults)static voidsetElementCount(Vector<?> vector, int size)static voidsetSize(ArrayList<?> arrayList, int size)static voidsetSize(PriorityQueue<?> priorityQueue, int size)
 
- 
- 
- 
Method Detail- 
setSizepublic static void setSize(ArrayList<?> arrayList, int size) 
 - 
getLoadFactorpublic static float getLoadFactor(HashSet<?> hashSet) My god. How incompetent can one be: they provide a constructor for configuring the load factor, but they provide no means to querying it. So if a hashset instance shall be transformed to another context and back (e.g. persistence), what is one supposed to do? Ignore the load factor and change the program behavior? What harm would it do to add an implementation-specific getter?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. - Parameters:
- hashSet-
 
 - 
getLoadFactorpublic static float getLoadFactor(HashMap<?,?> hashMap) 
 - 
getLoadFactorpublic static float getLoadFactor(Hashtable<?,?> hashtable) 
 - 
getLoadFactorpublic static float getLoadFactor(LinkedHashMap<?,?> linkedHashMap) 
 - 
getAccessOrderpublic static boolean getAccessOrder(LinkedHashMap<?,?> linkedHashMap) 
 - 
getElementCountpublic static int getElementCount(Vector<?> vector) 
 - 
setElementCountpublic static void setElementCount(Vector<?> vector, int size) 
 - 
getCapacityIncrementpublic static int getCapacityIncrement(Vector<?> vector) 
 - 
setCapacityIncrementpublic static void setCapacityIncrement(Vector<?> vector, int size) 
 - 
accessDefaultspublic static Properties accessDefaults(Properties properties) 
 - 
setDefaultspublic static void setDefaults(Properties properties, Properties defaults) 
 - 
accessArraypublic static Object[] accessArray(PriorityQueue<?> priorityQueue) 
 - 
setSizepublic static void setSize(PriorityQueue<?> priorityQueue, int size) 
 
- 
 
-