@Generated(value={"Immutables.generator","Node"}) public final class ImmutableNode extends Node
Node.
Use the builder to create immutable instances:
ImmutableNode.builder().
| Modifier and Type | Class and Description |
|---|---|
static class |
ImmutableNode.Builder
Builds instances of type
ImmutableNode. |
| Modifier and Type | Method and Description |
|---|---|
static ImmutableNode.Builder |
builder()
Creates a builder for
ImmutableNode. |
static ImmutableNode |
copyOf(Node instance)
Creates an immutable copy of a
Node value. |
boolean |
equals(Object another)
This instance is equal to all instances of
ImmutableNode that have equal attribute values. |
String |
getAddress() |
String |
getNode() |
TaggedAddresses |
getTaggedAddresses() |
int |
hashCode()
Computes a hash code from attributes:
node, address, taggedAddresses. |
String |
toString()
Prints the immutable value
Node with attribute values. |
ImmutableNode |
withAddress(String value)
Copy the current immutable object by setting a value for the
address attribute. |
ImmutableNode |
withNode(String value)
Copy the current immutable object by setting a value for the
node attribute. |
ImmutableNode |
withTaggedAddresses(TaggedAddresses value)
Copy the current immutable object by setting a value for the
taggedAddresses attribute. |
public String getNode()
public String getAddress()
getAddress in class Nodeaddress attributepublic TaggedAddresses getTaggedAddresses()
getTaggedAddresses in class NodetaggedAddresses attributepublic final ImmutableNode withNode(String value)
node attribute.
An equals check used to prevent copying of the same value by returning this.value - A new value for nodethis objectpublic final ImmutableNode withAddress(String value)
address attribute.
An equals check used to prevent copying of the same value by returning this.value - A new value for addressthis objectpublic final ImmutableNode withTaggedAddresses(TaggedAddresses value)
taggedAddresses attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.value - A new value for taggedAddressesthis objectpublic boolean equals(Object another)
ImmutableNode that have equal attribute values.public int hashCode()
node, address, taggedAddresses.public String toString()
Node with attribute values.public static ImmutableNode copyOf(Node instance)
Node 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 ImmutableNode.Builder builder()
ImmutableNode.Copyright © 2016. All rights reserved.