@ParametersAreNonnullByDefault @Generated(value="org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue public final class ImmutableErrorMessage extends Object implements ErrorMessage
ErrorMessage.
Use the builder to create immutable instances:
ImmutableErrorMessage.builder().
| Modifier and Type | Class and Description |
|---|---|
static class |
ImmutableErrorMessage.Builder
Builds instances of type
ImmutableErrorMessage. |
| Modifier and Type | Method and Description |
|---|---|
com.google.common.collect.ImmutableList<Object> |
args() |
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:
key, args. |
String |
key() |
String |
toString()
Prints the immutable value
ErrorMessage with attribute values. |
ImmutableErrorMessage |
withArgs(Iterable<? extends Object> elements)
Copy the current immutable object with elements that replace the content of
args. |
ImmutableErrorMessage |
withArgs(Object... elements)
Copy the current immutable object with elements that replace the content of
args. |
ImmutableErrorMessage |
withKey(String value)
Copy the current immutable object by setting a value for the
key attribute. |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitofpublic String key()
key in interface ErrorMessagekey attributepublic com.google.common.collect.ImmutableList<Object> args()
args in interface ErrorMessageargs attributepublic final ImmutableErrorMessage withKey(String value)
key attribute.
An equals check used to prevent copying of the same value by returning this.value - A new value for keythis objectpublic final ImmutableErrorMessage withArgs(Object... elements)
args.elements - The elements to setthis objectpublic final ImmutableErrorMessage withArgs(Iterable<? extends Object> elements)
args.
A shallow reference equality check is used to prevent copying of the same value by returning this.elements - An iterable of args elements to setthis objectpublic boolean equals(@Nullable Object another)
ImmutableErrorMessage that have equal attribute values.public int hashCode()
key, args.public String toString()
ErrorMessage with attribute values.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 static ImmutableErrorMessage.Builder builder()
ImmutableErrorMessage.
ImmutableErrorMessage.builder()
.key(String) // required key
.addArgs|addAllArgs(Object) // args elements
.build();
builder in interface ErrorMessageCopyright © 2023. All rights reserved.