public interface ListBuilder<T>
Modifier and Type | Interface and Description |
---|---|
static class |
ListBuilder.Builder<T> |
Modifier and Type | Method and Description |
---|---|
ListBuilder<T> |
add(DataResult<T> value) |
default <E> ListBuilder<T> |
add(E value,
Encoder<E> encoder) |
ListBuilder<T> |
add(T value) |
default <E> ListBuilder<T> |
addAll(Iterable<E> values,
Encoder<E> encoder) |
default DataResult<T> |
build(DataResult<T> prefix) |
DataResult<T> |
build(T prefix) |
ListBuilder<T> |
mapError((String) -> String onError) |
DynamicOps<T> |
ops() |
ListBuilder<T> |
withErrorsFrom(DataResult<?> result) |
DynamicOps<T> ops()
DataResult<T> build(T prefix)
ListBuilder<T> add(T value)
ListBuilder<T> add(DataResult<T> value)
ListBuilder<T> withErrorsFrom(DataResult<?> result)
ListBuilder<T> mapError((String) -> String onError)
default DataResult<T> build(DataResult<T> prefix)
default <E> ListBuilder<T> add(E value, Encoder<E> encoder)
default <E> ListBuilder<T> addAll(Iterable<E> values, Encoder<E> encoder)