@ParametersAreNonnullByDefault @Generated(value="org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue public final class ImmutableTxError extends TxError
TxError.
Use the builder to create immutable instances:
ImmutableTxError.builder().
| Modifier and Type | Class and Description |
|---|---|
static class |
ImmutableTxError.Builder
Builds instances of type
ImmutableTxError. |
| Modifier and Type | Method and Description |
|---|---|
static ImmutableTxError.Builder |
builder()
Creates a builder for
ImmutableTxError. |
static ImmutableTxError |
copyOf(TxError instance)
Creates an immutable copy of a
TxError value. |
boolean |
equals(Object another)
This instance is equal to all instances of
ImmutableTxError that have equal attribute values. |
int |
hashCode()
Computes a hash code from attributes:
opIndex, what. |
Optional<BigInteger> |
opIndex() |
String |
toString()
Prints the immutable value
TxError with attribute values. |
Optional<String> |
what() |
ImmutableTxError |
withOpIndex(BigInteger value)
Copy the current immutable object by setting a present value for the optional
opIndex attribute. |
ImmutableTxError |
withOpIndex(Optional<? extends BigInteger> optional)
Copy the current immutable object by setting an optional value for the
opIndex attribute. |
ImmutableTxError |
withWhat(Optional<String> optional)
Copy the current immutable object by setting an optional value for the
what attribute. |
ImmutableTxError |
withWhat(String value)
Copy the current immutable object by setting a present value for the optional
what attribute. |
public Optional<BigInteger> opIndex()
public final ImmutableTxError withOpIndex(BigInteger value)
opIndex attribute.value - The value for opIndexthis objectpublic final ImmutableTxError withOpIndex(Optional<? extends BigInteger> optional)
opIndex attribute.
An equality check is used on inner nullable value to prevent copying of the same value by returning this.optional - A value for opIndexthis objectpublic final ImmutableTxError withWhat(String value)
what attribute.value - The value for whatthis objectpublic final ImmutableTxError withWhat(Optional<String> optional)
what attribute.
An equality check is used on inner nullable value to prevent copying of the same value by returning this.optional - A value for whatthis objectpublic boolean equals(@Nullable Object another)
ImmutableTxError that have equal attribute values.public int hashCode()
opIndex, what.public String toString()
TxError with attribute values.public static ImmutableTxError copyOf(TxError instance)
TxError value.
Uses accessors to get values to initialize the new immutable instance.
If an instance is already immutable, it is returned as is.instance - The instance to copypublic static ImmutableTxError.Builder builder()
ImmutableTxError.
ImmutableTxError.builder()
.opIndex(java.math.BigInteger) // optional opIndex
.what(String) // optional what
.build();
Copyright © 2019. All rights reserved.