java.lang.ClassValue that works on earlier versions of Java.
Note that this implementation isn't as good at Java 7's; it doesn't allow for some GC'ing that Java 7 would allow.
But, it's good enough for our use.
| Modifier and Type | Class and Description |
|---|---|
| private class | |
| private class | |
| private class |
| Modifier and Type | Field and Description |
|---|---|
| private final GroovyClassValue. | |
| private final GroovyClassValuePreJava7 | |
| private static final ReferenceBundle |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public T | |
| public void |
| computeValue | back to summary |
|---|---|
| private final GroovyClassValue. | |
| map | back to summary |
|---|---|
| private final GroovyClassValuePreJava7<T>. | |
| weakBundle | back to summary |
|---|---|
| private static final ReferenceBundle weakBundle | |
| GroovyClassValuePreJava7 | back to summary |
|---|---|
| public GroovyClassValuePreJava7(GroovyClassValue. | |
| get | back to summary |
|---|---|
| public T get(Class<?> type) Implements org.
| |
| remove | back to summary |
|---|---|
| public void remove(Class<?> type) Implements org.
| |
| Access | Constructor and Description |
|---|---|
| public | EntryWithValue(GroovyClassValuePreJava7<T>.
|
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public void |
| EntryWithValue | back to summary |
|---|---|
| public EntryWithValue(GroovyClassValuePreJava7<T>. | |
| finalizeReference | back to summary |
|---|---|
| public void finalizeReference() Overrides org. Implements org.
| |
| setValue | back to summary |
|---|---|
| public void setValue(T value) Overrides org. Implements org.
| |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected GroovyClassValuePreJava7 | createSegment(Object segmentInfo, int cap)
Overrides org. |
| GroovyClassValuePreJava7Map | back to summary |
|---|---|
| public GroovyClassValuePreJava7Map() | |
| createSegment | back to summary |
|---|---|
| protected GroovyClassValuePreJava7 Overrides org.
| |
| Modifier and Type | Field and Description |
|---|---|
| private static final long |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| protected GroovyClassValuePreJava7 | createEntry(Class<?> key, int hash, T unused)
Overrides org. |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID Hides org. | |
| GroovyClassValuePreJava7Segment | back to summary |
|---|---|
| pack-priv GroovyClassValuePreJava7Segment(ReferenceBundle bundle, int initialCapacity) | |
| createEntry | back to summary |
|---|---|
| protected GroovyClassValuePreJava7 Overrides org.
| |