@Generated(value={"Immutables.generator","SMFProcessingErrorType"}) public final class SMFProcessingError extends Object implements SMFProcessingErrorType
| Modifier and Type | Class and Description |
|---|---|
static class |
SMFProcessingError.Builder
Builds instances of type
SMFProcessingError. |
| Modifier and Type | Method and Description |
|---|---|
static SMFProcessingError.Builder |
builder()
Creates a builder for
SMFProcessingError. |
static SMFProcessingError |
copyOf(SMFProcessingErrorType instance)
Creates an immutable copy of a
SMFProcessingErrorType value. |
boolean |
equals(Object another)
This instance is equal to all instances of
SMFProcessingError that have equal attribute values. |
Optional<Exception> |
exception() |
String |
fullMessage() |
int |
hashCode()
Computes a hash code from attributes:
message, exception. |
String |
message() |
static SMFProcessingError |
of(String message,
Optional<Exception> exception)
Construct a new immutable
SMFProcessingError instance. |
String |
toString()
Prints the immutable value
SMFProcessingError with attribute values. |
SMFProcessingError |
withException(Exception value)
Copy the current immutable object by setting a present value for the optional
exception attribute. |
SMFProcessingError |
withException(Optional<? extends Exception> optional)
Copy the current immutable object by setting an optional value for the
exception attribute. |
SMFProcessingError |
withMessage(String value)
Copy the current immutable object by setting a value for the
message attribute. |
public String message()
message in interface SMFErrorTypemessage in interface SMFProcessingErrorTypemessage attributepublic Optional<Exception> exception()
exception in interface SMFErrorTypeexception in interface SMFProcessingErrorTypeexception attributepublic final SMFProcessingError 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 SMFProcessingError withException(Exception value)
exception attribute.value - The value for exceptionthis objectpublic final SMFProcessingError withException(Optional<? extends Exception> optional)
exception attribute.
A shallow reference equality check is used on unboxed optional value to prevent copying of the same value by returning this.optional - A value for exceptionthis objectpublic boolean equals(Object another)
SMFProcessingError that have equal attribute values.public int hashCode()
message, exception.public String toString()
SMFProcessingError with attribute values.public String fullMessage()
Returns a lazily initialized value of the fullMessage attribute.
Initialized once and only once and stored for subsequent access with proper synchronization.
fullMessage in interface SMFErrorTypel.name attributepublic static SMFProcessingError of(String message, Optional<Exception> exception)
SMFProcessingError instance.message - The value for the message attributeexception - The value for the exception attributepublic static SMFProcessingError copyOf(SMFProcessingErrorType instance)
SMFProcessingErrorType 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 SMFProcessingError.Builder builder()
SMFProcessingError.Copyright © 2017 <code@io7m.com> http://io7m.com