JSXValidationErrorTypepublic final class JSXValidationError extends Object implements JSXValidationErrorType
| Modifier and Type | Class | Description |
|---|---|---|
static class |
JSXValidationError.Builder |
Builds instances of type
JSXValidationError. |
| Modifier and Type | Method | Description |
|---|---|---|
static JSXValidationError.Builder |
builder() |
Creates a builder for
JSXValidationError. |
static JSXValidationError |
copyOf(JSXValidationErrorType instance) |
Creates an immutable copy of a
JSXValidationErrorType value. |
boolean |
equals(Object another) |
This instance is equal to all instances of
JSXValidationError that have equal attribute values. |
int |
hashCode() |
Computes a hash code from attributes:
lex, message. |
com.io7m.jlexing.core.LexicalPositionType<URI> |
lex() |
|
String |
message() |
|
static JSXValidationError |
of(com.io7m.jlexing.core.LexicalPositionType<URI> lex,
String message) |
Construct a new immutable
JSXValidationError instance. |
String |
toString() |
Prints the immutable value
JSXValidationError with attribute values. |
JSXValidationError |
withLex(com.io7m.jlexing.core.LexicalPositionType<URI> value) |
Copy the current immutable object by setting a value for the
lex attribute. |
JSXValidationError |
withMessage(String value) |
Copy the current immutable object by setting a value for the
message attribute. |
public com.io7m.jlexing.core.LexicalPositionType<URI> lex()
lex in interface JSXValidationErrorTypepublic String message()
message in interface JSXValidationErrorTypepublic final JSXValidationError withLex(com.io7m.jlexing.core.LexicalPositionType<URI> value)
lex attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.value - A new value for lexthis objectpublic final JSXValidationError 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 boolean equals(Object another)
JSXValidationError that have equal attribute values.public int hashCode()
lex, message.public String toString()
JSXValidationError with attribute values.public static JSXValidationError of(com.io7m.jlexing.core.LexicalPositionType<URI> lex, String message)
JSXValidationError instance.lex - The value for the lex attributemessage - The value for the message attributepublic static JSXValidationError copyOf(JSXValidationErrorType instance)
JSXValidationErrorType 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 JSXValidationError.Builder builder()
JSXValidationError.Copyright © 2017 <code@io7m.com> http://io7m.com