| Modifier and Type | Class and Description |
|---|---|
| private static class | BiClassValue.
the type of the values T>A type-specific map that stores the values specific to pairs of types which include its class in one of the positions of the pair. |
| private static class | |
| private static enum |
| Modifier and Type | Field and Description |
|---|---|
| private final BiFunction | |
| private final BiClassValue. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv static < the type of the values T> BiClassValue | Returns: a new BiClassValue that computes the values using the passed function.the binary function to compute the values. Ordinarily, it
is invoked at most once for any pair of values. However,
it is possible for it to be invoked concurrently. It can
even be invoked concurrently multiple times for the same
arguments under contention. In that case, it is undefined
which of the computed values will be retained therefore
returning semantically equivalent values is strongly
recommended; the function should ideally be pure.
Additionally, if the pair of types passed as parameters
are from unrelated class loaders, the computed value is
not cached at all and the function might be reinvoked
with the same parameters in the future. Finally, a null
return value is allowed, but not cached. compute)Creates a new BiClassValue that uses the specified binary function to lazily compute the values. |
| pack-priv final T | |
| private static BiClassValue. |
| compute | back to summary |
|---|---|
| private final BiFunction<Class<?>, Class<?>, T> compute | |
| root | back to summary |
|---|---|
| private final BiClassValue. | |
| BiClassValue | back to summary |
|---|---|
| private BiClassValue(final BiFunction<Class<?>, Class<?>, T> compute) | |
| computing | back to summary |
|---|---|
| pack-priv static <T> BiClassValue Creates a new BiClassValue that uses the specified binary function to lazily compute the values.
| |
| get | back to summary |
|---|---|
| pack-priv final T get(final Class<?> c1, final Class<?> c2) | |
| getRetentionDirection | back to summary |
|---|---|
| private static BiClassValue. | |
| Modifier and Type | Field and Description |
|---|---|
| private static final VarHandle | |
| private Map | |
| private static final VarHandle | |
| private Map |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| private T | |
| pack-priv T | |
| pack-priv T | |
| pack-priv T | |
| pack-priv T |
| FORWARD | back to summary |
|---|---|
| private static final VarHandle FORWARD | |
| forward | back to summary |
|---|---|
| private Map<Class<?>, T> forward | |
| REVERSE | back to summary |
|---|---|
| private static final VarHandle REVERSE | |
| reverse | back to summary |
|---|---|
| private Map<Class<?>, T> reverse | |
| BiClassValues | back to summary |
|---|---|
| private BiClassValues() | |
| compute | back to summary |
|---|---|
| private T compute(final VarHandle mapHandle, final Class<?> c, final Function<Class<?>, T> compute) | |
| computeForward | back to summary |
|---|---|
| pack-priv T computeForward(final Class<?> c, Function<Class<?>, T> compute) | |
| computeReverse | back to summary |
|---|---|
| pack-priv T computeReverse(final Class<?> c, Function<Class<?>, T> compute) | |
| getForwardValue | back to summary |
|---|---|
| pack-priv T getForwardValue(final Class<?> c) | |
| getReverseValue | back to summary |
|---|---|
| pack-priv T getReverseValue(final Class<?> c) | |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| protected BiClassValue. | computeValue(Class<?> type)
Implements abstract java. Computes the value to associate to the given |
| BiClassValuesRoot | back to summary |
|---|---|
| private BiClassValuesRoot() | |
| computeValue | back to summary |
|---|---|
| protected BiClassValue. Implements abstract java. Doc from java. Computes the value to associate to the given
This method is invoked when the initial read-only access by
If this method throws an exception, the initiating Otherwise, the value is computed and returned. An attempt to associate the return value happens, with one of the following outcomes:
| |
| Modifier and Type | Field and Description |
|---|---|
| public static final BiClassValue. | |
| public static final BiClassValue. | |
| public static final BiClassValue. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static BiClassValue. | |
| public static BiClassValue. |
| FORWARD | back to summary |
|---|---|
| public static final BiClassValue. | |
| NEITHER | back to summary |
|---|---|
| public static final BiClassValue. | |
| REVERSE | back to summary |
|---|---|
| public static final BiClassValue. | |
| RetentionDirection | back to summary |
|---|---|
| private RetentionDirection() | |
| valueOf | back to summary |
|---|---|
| public static BiClassValue. | |
| values | back to summary |
|---|---|
| public static BiClassValue. | |