Modifier | Constructor and Description |
---|---|
|
Jdk12Impl()
Constructor used for creating 'real' instance; creates the
shared data structs needed.
|
protected |
Jdk12Impl(boolean dummy)
Constructor derived classes call to avoid creation of helper
Objects 'real' instance needs
|
Modifier and Type | Method and Description |
---|---|
java.util.List |
getEmptyList() |
java.util.Map |
getEmptyMap() |
java.util.Set |
getEmptySet() |
java.util.HashMap |
getInsertOrderedMap()
Alas, 1.2 doesn't have LinkedHashMap; only available from 1.4+, so
let's just create a standard HashMap.
|
java.util.HashMap |
getInsertOrderedMap(int initialSize)
Alas, 1.2 doesn't have LinkedHashMap; only available from 1.4+, so
let's just create a standard HashMap.
|
java.util.HashMap |
getLRULimitMap(int maxSize)
1.2 doesn't have LinkedHashMap, so as usual, let's just create a
HashMap
|
boolean |
leakingThreadLocal()
For 1.2, ThreadLocal actually does work correctly, although
slowly (slow due to extra locking).
|
boolean |
setInitCause(java.lang.Throwable newT,
java.lang.Throwable rootT)
Too bad it's only 1.4+ that can set the root cause...
|
public Jdk12Impl()
protected Jdk12Impl(boolean dummy)
public boolean leakingThreadLocal()
leakingThreadLocal
in class JdkImpl
public java.util.List getEmptyList()
getEmptyList
in class JdkImpl
public java.util.Map getEmptyMap()
getEmptyMap
in class JdkImpl
public java.util.Set getEmptySet()
getEmptySet
in class JdkImpl
public java.util.HashMap getInsertOrderedMap()
getInsertOrderedMap
in class JdkImpl
public java.util.HashMap getInsertOrderedMap(int initialSize)
getInsertOrderedMap
in class JdkImpl
public java.util.HashMap getLRULimitMap(int maxSize)
getLRULimitMap
in class JdkImpl
public boolean setInitCause(java.lang.Throwable newT, java.lang.Throwable rootT)
setInitCause
in class JdkImpl