public abstract static class RecordBuilder.AbstractBuilder<T,R> extends Object implements RecordBuilder<T>
RecordBuilder.AbstractBuilder<T,R>, RecordBuilder.AbstractStringBuilder<T,R>, RecordBuilder.AbstractUniversalBuilder<T,R>, RecordBuilder.MapBuilder<T>
Modifier and Type | Field and Description |
---|---|
protected DataResult<R> |
builder |
Modifier | Constructor and Description |
---|---|
protected |
AbstractBuilder(DynamicOps<T> ops) |
Modifier and Type | Method and Description |
---|---|
protected abstract DataResult<T> |
build(R builder,
T prefix) |
DataResult<T> |
build(T prefix) |
protected abstract R |
initBuilder() |
RecordBuilder<T> |
mapError((String) -> String onError) |
DynamicOps<T> |
ops() |
RecordBuilder<T> |
setLifecycle(Lifecycle lifecycle) |
RecordBuilder<T> |
withErrorsFrom(DataResult<?> result) |
protected DataResult<R> builder
protected AbstractBuilder(DynamicOps<T> ops)
public DynamicOps<T> ops()
ops
in interface RecordBuilder<T>
protected abstract R initBuilder()
protected abstract DataResult<T> build(R builder, T prefix)
public DataResult<T> build(T prefix)
build
in interface RecordBuilder<T>
public RecordBuilder<T> withErrorsFrom(DataResult<?> result)
withErrorsFrom
in interface RecordBuilder<T>
public RecordBuilder<T> setLifecycle(Lifecycle lifecycle)
setLifecycle
in interface RecordBuilder<T>
public RecordBuilder<T> mapError((String) -> String onError)
mapError
in interface RecordBuilder<T>