public abstract class JsonField<T> extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
JsonField.JsonFieldAbsent<T> |
static class |
JsonField.JsonFieldPresent<T> |
| Constructor and Description |
|---|
JsonField() |
| Modifier and Type | Method and Description |
|---|---|
static <T> JsonField<T> |
absent() |
void |
ifPresent(Consumer<T> callback) |
abstract <D> D |
ifPresent(D defResponse,
Function<T,D> callback) |
static <T> JsonField<T> |
wrap(T value) |
Copyright © 2021. All rights reserved.