Modifier and Type | Method and Description |
---|---|
static <T> Context.Key<T> |
Context.key(String name)
Create a
Context.Key with the given debug name. |
static <T> Context.Key<T> |
Context.keyWithDefault(String name,
T defaultValue)
Create a
Context.Key with the given debug name and default value. |
Modifier and Type | Method and Description |
---|---|
<V> Context |
Context.withValue(Context.Key<V> k1,
V v1)
Create a new context with the given key value set.
|
<V1,V2> Context |
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> Context |
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 |
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> Context |
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> Context |
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.
|
<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.
|
<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.
|
<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.
|