@ParametersAreNonnullByDefault @Generated(value="org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue public final class ImmutableErrorMessage extends ErrorMessage
ErrorMessage.
Use the builder to create immutable instances:
ImmutableErrorMessage.builder().
Use the static factory method to create immutable instances:
ImmutableErrorMessage.of().
| Modifier and Type | Class and Description |
|---|---|
static class |
ImmutableErrorMessage.Builder
Builds instances of type
ImmutableErrorMessage. |
| Modifier and Type | Method and Description |
|---|---|
static ImmutableErrorMessage.Builder |
builder()
Creates a builder for
ImmutableErrorMessage. |
static ImmutableErrorMessage |
copyOf(ErrorMessage instance)
Creates an immutable copy of a
ErrorMessage value. |
boolean |
equals(Object another)
This instance is equal to all instances of
ImmutableErrorMessage that have equal attribute values. |
int |
hashCode()
Computes a hash code from attributes:
message, throwable. |
String |
message() |
static ImmutableErrorMessage |
of(String message,
Proto.Throwable throwable)
Construct a new immutable
ErrorMessage instance. |
Proto.Throwable |
throwable() |
String |
toString()
Prints the immutable value
ErrorMessage with attribute values. |
ImmutableErrorMessage |
withMessage(String value)
Copy the current immutable object by setting a value for the
message attribute. |
ImmutableErrorMessage |
withThrowable(Proto.Throwable value)
Copy the current immutable object by setting a value for the
throwable attribute. |
create, toProtopublic static ImmutableErrorMessage.Builder builder()
ImmutableErrorMessage.
ImmutableErrorMessage.builder()
.message(String) // required message
.throwable(org.glowroot.wire.api.model.Proto.Throwable | null) // nullable throwable
.build();
public static ImmutableErrorMessage copyOf(ErrorMessage instance)
ErrorMessage 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 boolean equals(@Nullable Object another)
ImmutableErrorMessage that have equal attribute values.public int hashCode()
message, throwable.public String message()
message in class ErrorMessagemessage attributepublic static ImmutableErrorMessage of(String message, Proto.Throwable throwable)
ErrorMessage instance.message - The value for the message attributethrowable - The value for the throwable attributepublic Proto.Throwable throwable()
throwable in class ErrorMessagethrowable attributepublic String toString()
ErrorMessage with attribute values.public final ImmutableErrorMessage withMessage(String value)
message attribute.
An equals check used to prevent copying of the same value by returning this.value - A new value for messagethis objectpublic final ImmutableErrorMessage withThrowable(Proto.Throwable value)
throwable attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.value - A new value for throwable (can be null)this objectCopyright © 2011–2020 Glowroot contributors. All rights reserved.