| Package | Description |
|---|---|
| org.hswebframework.web.context |
| Modifier and Type | Method and Description |
|---|---|
static ContextKey<Boolean> |
ContextKey.bool(String key) |
static ContextKey<Integer> |
ContextKey.integer(String key) |
static <T> ContextKey<T> |
ContextKey.of(Class<T> key) |
static <T> ContextKey<T> |
ContextKey.of(String key) |
static ContextKey<String> |
ContextKey.string(String key) |
| Modifier and Type | Method and Description |
|---|---|
<T> Optional<T> |
Context.get(ContextKey<T> key) |
<T> T |
Context.getOrDefault(ContextKey<T> key,
Supplier<? extends T> defaultValue) |
<T> void |
Context.put(ContextKey<T> key,
T value) |
<T> T |
Context.remove(ContextKey<T> key) |
Copyright © 2016–2021. All rights reserved.