JSXParserConfigurationTypepublic final class JSXParserConfiguration extends java.lang.Object implements JSXParserConfigurationType
| Modifier and Type | Class | Description |
|---|---|---|
static class |
JSXParserConfiguration.Builder |
Builds instances of type
JSXParserConfiguration. |
| Modifier and Type | Method | Description |
|---|---|---|
static JSXParserConfiguration.Builder |
builder() |
Creates a builder for
JSXParserConfiguration. |
static JSXParserConfiguration |
copyOf(JSXParserConfigurationType instance) |
Creates an immutable copy of a
JSXParserConfigurationType value. |
boolean |
equals(java.lang.Object another) |
This instance is equal to all instances of
JSXParserConfiguration that have equal attribute values. |
int |
hashCode() |
Computes a hash code from attributes:
preserveLexical. |
static JSXParserConfiguration |
of(boolean preserveLexical) |
Construct a new immutable
JSXParserConfiguration instance. |
boolean |
preserveLexical() |
|
java.lang.String |
toString() |
Prints the immutable value
JSXParserConfiguration with attribute values. |
JSXParserConfiguration |
withPreserveLexical(boolean value) |
Copy the current immutable object by setting a value for the
preserveLexical attribute. |
public boolean preserveLexical()
preserveLexical in interface JSXParserConfigurationTypetrue iff lexical information should be preserved by the
parserpublic final JSXParserConfiguration withPreserveLexical(boolean value)
preserveLexical attribute.
A value equality check is used to prevent copying of the same value by returning this.value - A new value for preserveLexicalthis objectpublic boolean equals(java.lang.Object another)
JSXParserConfiguration that have equal attribute values.equals in class java.lang.Objecttrue if this is equal to another instancepublic int hashCode()
preserveLexical.hashCode in class java.lang.Objectpublic java.lang.String toString()
JSXParserConfiguration with attribute values.toString in class java.lang.Objectpublic static JSXParserConfiguration of(boolean preserveLexical)
JSXParserConfiguration instance.preserveLexical - The value for the preserveLexical attributepublic static JSXParserConfiguration copyOf(JSXParserConfigurationType instance)
JSXParserConfigurationType 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 JSXParserConfiguration.Builder builder()
JSXParserConfiguration.Copyright © 2017 <code@io7m.com> http://io7m.com