public interface RecordBuilder<T>
Modifier and Type | Interface and Description |
---|---|
static class |
RecordBuilder.AbstractBuilder<T,R> |
static class |
RecordBuilder.AbstractStringBuilder<T,R> |
static class |
RecordBuilder.AbstractUniversalBuilder<T,R> |
static class |
RecordBuilder.MapBuilder<T> |
Modifier and Type | Method and Description |
---|---|
RecordBuilder<T> |
add(DataResult<T> key,
DataResult<T> value) |
default RecordBuilder<T> |
add(String key,
DataResult<T> value) |
default <E> RecordBuilder<T> |
add(String key,
E value,
Encoder<E> encoder) |
default RecordBuilder<T> |
add(String key,
T value) |
RecordBuilder<T> |
add(T key,
DataResult<T> value) |
RecordBuilder<T> |
add(T key,
T value) |
default DataResult<T> |
build(DataResult<T> prefix) |
DataResult<T> |
build(T prefix) |
RecordBuilder<T> |
mapError((String) -> String onError) |
DynamicOps<T> |
ops() |
RecordBuilder<T> |
setLifecycle(Lifecycle lifecycle) |
RecordBuilder<T> |
withErrorsFrom(DataResult<?> result) |
DynamicOps<T> ops()
RecordBuilder<T> add(T key, T value)
RecordBuilder<T> add(T key, DataResult<T> value)
RecordBuilder<T> add(DataResult<T> key, DataResult<T> value)
RecordBuilder<T> withErrorsFrom(DataResult<?> result)
RecordBuilder<T> setLifecycle(Lifecycle lifecycle)
RecordBuilder<T> mapError((String) -> String onError)
DataResult<T> build(T prefix)
default DataResult<T> build(DataResult<T> prefix)
default RecordBuilder<T> add(String key, T value)
default RecordBuilder<T> add(String key, DataResult<T> value)
default <E> RecordBuilder<T> add(String key, E value, Encoder<E> encoder)