@Generated(value={"Immutables.generator","SMFParseWarningType"}) public final class SMFParseWarning extends Object implements SMFParseWarningType
| Modifier and Type | Class and Description |
|---|---|
static class |
SMFParseWarning.Builder
Builds instances of type
SMFParseWarning. |
| Modifier and Type | Method and Description |
|---|---|
static SMFParseWarning.Builder |
builder()
Creates a builder for
SMFParseWarning. |
static SMFParseWarning |
copyOf(SMFParseWarningType instance)
Creates an immutable copy of a
SMFParseWarningType value. |
boolean |
equals(Object another)
This instance is equal to all instances of
SMFParseWarning that have equal attribute values. |
Optional<Exception> |
exception() |
String |
fullMessage() |
int |
hashCode()
Computes a hash code from attributes:
lexical, message, exception. |
com.io7m.jlexing.core.LexicalPosition<URI> |
lexical() |
String |
message() |
static SMFParseWarning |
of(com.io7m.jlexing.core.LexicalPosition<URI> lexical,
String message,
Optional<Exception> exception)
Construct a new immutable
SMFParseWarning instance. |
String |
toString()
Prints the immutable value
SMFParseWarning with attribute values. |
SMFParseWarning |
withException(Exception value)
Copy the current immutable object by setting a present value for the optional
exception attribute. |
SMFParseWarning |
withException(Optional<? extends Exception> optional)
Copy the current immutable object by setting an optional value for the
exception attribute. |
SMFParseWarning |
withLexical(com.io7m.jlexing.core.LexicalPosition<URI> value)
Copy the current immutable object by setting a value for the
lexical attribute. |
SMFParseWarning |
withMessage(String value)
Copy the current immutable object by setting a value for the
message attribute. |
public com.io7m.jlexing.core.LexicalPosition<URI> lexical()
lexical in interface SMFParseWarningTypepublic String message()
message in interface SMFWarningTypemessage in interface SMFParseWarningTypemessage attributepublic Optional<Exception> exception()
exception in interface SMFWarningTypeexception in interface SMFParseWarningTypeexception attributepublic final SMFParseWarning withLexical(com.io7m.jlexing.core.LexicalPosition<URI> value)
lexical attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.value - A new value for lexicalthis objectpublic final SMFParseWarning 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 SMFParseWarning withException(Exception value)
exception attribute.value - The value for exceptionthis objectpublic final SMFParseWarning 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)
SMFParseWarning that have equal attribute values.public int hashCode()
lexical, message, exception.public String toString()
SMFParseWarning 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 SMFWarningTypefullMessage in interface SMFParseWarningTypel.name attributepublic static SMFParseWarning of(com.io7m.jlexing.core.LexicalPosition<URI> lexical, String message, Optional<Exception> exception)
SMFParseWarning instance.lexical - The value for the lexical attributemessage - The value for the message attributeexception - The value for the exception attributepublic static SMFParseWarning copyOf(SMFParseWarningType instance)
SMFParseWarningType 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 SMFParseWarning.Builder builder()
SMFParseWarning.Copyright © 2017 <code@io7m.com> http://io7m.com