Modifier and Type | Method | Description |
---|---|---|
static <T> Context.Key<T> |
Context.key(java.lang.String name) |
Create a
Context.Key with the given debug name. |
static <T> Context.Key<T> |
Context.keyWithDefault(java.lang.String name,
T defaultValue) |
Create a
Context.Key with the given debug name and default value. |
Modifier and Type | Method | Description |
---|---|---|
<V> Context |
Context.withValue(Context.Key<V> k1,
V v1) |
Create a new context with the given key value set.
|
<V1,V2> |
Context.withValues(Context.Key<V1> k1,
V1 v1,
Context.Key<V2> k2,
V2 v2) |
Create a new context with the given key value set.
|
<V1,V2,V3> |
Context.withValues(Context.Key<V1> k1,
V1 v1,
Context.Key<V2> k2,
V2 v2,
Context.Key<V3> k3,
V3 v3) |
Create a new context with the given key value set.
|
<V1,V2,V3,V4> |
Context.withValues(Context.Key<V1> k1,
V1 v1,
Context.Key<V2> k2,
V2 v2,
Context.Key<V3> k3,
V3 v3,
Context.Key<V4> k4,
V4 v4) |
Create a new context with the given key value set.
|