| Modifier and Type | Field and Description |
|---|---|
| private final Object[] | |
| private static final Context |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public <V> V | get(ContextKey<V> key)
Implements io. Returns the value stored in this |
| pack-priv static Context | root()
Hides io. Returns the root |
| public String | |
| public <V> Context | with(ContextKey<V> key, V value)
Implements io. Returns a new context with the given key value set. |
| entries | back to summary |
|---|---|
| private final Object[] entries | |
| ROOT | back to summary |
|---|---|
| private static final Context ROOT | |
| ArrayBasedContext | back to summary |
|---|---|
| private ArrayBasedContext(Object[] entries) | |
| get | back to summary |
|---|---|
| public <V> V get(ContextKey<V> key) Implements io. Doc from io. Returns the value stored in this | |
| root | back to summary |
|---|---|
| pack-priv static Context root() Hides io. Doc from io. Returns the root It should generally not be required to use the root | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non- | |
| with | back to summary |
|---|---|
| public <V> Context with(ContextKey<V> key, V value) Implements io. Doc from io. Returns a new context with the given key value set.
Note that multiple calls to
Nonetheless,
| |