@NotThreadSafe public static final class ImmutableTxError.Builder extends Object
ImmutableTxError.
Initialize attributes and then invoke the build() method to create an
immutable instance.
Builder is not thread-safe and generally should not be stored in a field or collection,
but instead used immediately to create instances.
| Modifier and Type | Method and Description |
|---|---|
ImmutableTxError |
build()
Builds a new
ImmutableTxError. |
ImmutableTxError.Builder |
from(TxError instance)
Fill a builder with attribute values from the provided
TxError instance. |
ImmutableTxError.Builder |
opIndex(BigInteger opIndex)
Initializes the optional value
opIndex to opIndex. |
ImmutableTxError.Builder |
opIndex(Optional<? extends BigInteger> opIndex)
Initializes the optional value
opIndex to opIndex. |
ImmutableTxError.Builder |
what(Optional<String> what)
Initializes the optional value
what to what. |
ImmutableTxError.Builder |
what(String what)
Initializes the optional value
what to what. |
@CanIgnoreReturnValue public final ImmutableTxError.Builder from(TxError instance)
TxError instance.
Regular attribute values will be replaced with those from the given instance.
Absent optional values will not replace present values.instance - The instance from which to copy valuesthis builder for use in a chained invocation@CanIgnoreReturnValue public final ImmutableTxError.Builder opIndex(BigInteger opIndex)
opIndex to opIndex.opIndex - The value for opIndexthis builder for chained invocation@CanIgnoreReturnValue public final ImmutableTxError.Builder opIndex(Optional<? extends BigInteger> opIndex)
opIndex to opIndex.opIndex - The value for opIndexthis builder for use in a chained invocation@CanIgnoreReturnValue public final ImmutableTxError.Builder what(String what)
what to what.what - The value for whatthis builder for chained invocation@CanIgnoreReturnValue public final ImmutableTxError.Builder what(Optional<String> what)
what to what.what - The value for whatthis builder for use in a chained invocationpublic ImmutableTxError build()
ImmutableTxError.IllegalStateException - if any required attributes are missingCopyright © 2019. All rights reserved.