@Generated(value="org.immutables.processor.ProxyProcessor") public final class ImmutableGraphAsDot<T> extends Object implements GraphAsDot<T>
GraphAsDot.
Use the builder to create immutable instances:
ImmutableGraphAsDot.builder().
| Modifier and Type | Class and Description |
|---|---|
static class |
ImmutableGraphAsDot.Builder<T>
Builds instances of type
ImmutableGraphAsDot. |
| Modifier and Type | Method and Description |
|---|---|
static <T> ImmutableGraphAsDot.Builder<T> |
builder(Function<T,String> nodeAsString)
Creates a builder for
ImmutableGraphAsDot. |
static <T> ImmutableGraphAsDot<T> |
copyOf(GraphAsDot<T> instance)
Creates an immutable copy of a
GraphAsDot value. |
BiFunction<T,T,Map<String,String>> |
edgeAttributes() |
boolean |
equals(Object another)
This instance is equal to all instances of
ImmutableGraphAsDot that have equal attribute values. |
int |
hashCode()
Computes a hash code from attributes:
nodeAsString, edgeAttributes, nodeAttributes, label. |
String |
label() |
Function<T,String> |
nodeAsString() |
Function<T,Map<String,String>> |
nodeAttributes() |
String |
toString()
Prints the immutable value
GraphAsDot with attribute values. |
ImmutableGraphAsDot<T> |
withEdgeAttributes(BiFunction<T,T,Map<String,String>> value)
Copy the current immutable object by setting a value for the
edgeAttributes attribute. |
ImmutableGraphAsDot<T> |
withLabel(String value)
Copy the current immutable object by setting a value for the
label attribute. |
ImmutableGraphAsDot<T> |
withNodeAsString(Function<T,String> value)
Copy the current immutable object by setting a value for the
nodeAsString attribute. |
ImmutableGraphAsDot<T> |
withNodeAttributes(Function<T,Map<String,String>> value)
Copy the current immutable object by setting a value for the
nodeAttributes attribute. |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitasDot, asNodeAttributes, quotepublic Function<T,String> nodeAsString()
nodeAsString in interface GraphAsDot<T>nodeAsString attributepublic BiFunction<T,T,Map<String,String>> edgeAttributes()
edgeAttributes in interface GraphAsDot<T>edgeAttributes attributepublic Function<T,Map<String,String>> nodeAttributes()
nodeAttributes in interface GraphAsDot<T>nodeAttributes attributepublic String label()
label in interface GraphAsDot<T>label attributepublic final ImmutableGraphAsDot<T> withNodeAsString(Function<T,String> value)
nodeAsString attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.value - A new value for nodeAsStringthis objectpublic final ImmutableGraphAsDot<T> withEdgeAttributes(BiFunction<T,T,Map<String,String>> value)
edgeAttributes attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.value - A new value for edgeAttributesthis objectpublic final ImmutableGraphAsDot<T> withNodeAttributes(Function<T,Map<String,String>> value)
nodeAttributes attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.value - A new value for nodeAttributesthis objectpublic final ImmutableGraphAsDot<T> withLabel(String value)
label attribute.
An equals check used to prevent copying of the same value by returning this.value - A new value for labelthis objectpublic boolean equals(Object another)
ImmutableGraphAsDot that have equal attribute values.public int hashCode()
nodeAsString, edgeAttributes, nodeAttributes, label.public String toString()
GraphAsDot with attribute values.public static <T> ImmutableGraphAsDot<T> copyOf(GraphAsDot<T> instance)
GraphAsDot value.
Uses accessors to get values to initialize the new immutable instance.
If an instance is already immutable, it is returned as is.T - generic parameter Tinstance - The instance to copypublic static <T> ImmutableGraphAsDot.Builder<T> builder(Function<T,String> nodeAsString)
ImmutableGraphAsDot.
ImmutableGraphAsDot.<T>builder()
.nodeAsString(function.Function<T, String>) // required nodeAsString
.edgeAttributes(function.BiFunction<T, T, Map<String, String>>) // optional edgeAttributes
.nodeAttributes(function.Function<T, Map<String, String>>) // optional nodeAttributes
.label(String) // optional label
.build();
builder in interface GraphAsDot<T>T - generic parameter TnodeAsString - nodeAsString parameterCopyright © 2019. All rights reserved.