@Generated(value="org.immutables.processor.ProxyProcessor") public final class ImmutableGraphAsDot<T> extends 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. |
GraphAsDot.AsComparable<T,C extends Comparable<C>>, GraphAsDot.SubGraph<T>| Modifier and Type | Method and Description |
|---|---|
static <T> ImmutableGraphAsDot.Builder<T> |
builder(Function<T,String> nodeAsId)
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:
nodeAsId, subGraphIdSeparator, nodeAsLabel, edgeAttributes, nodeAttributes, subGraph, sortedBy, label. |
String |
label() |
Function<T,String> |
nodeAsId() |
Function<T,String> |
nodeAsLabel() |
Function<T,Map<String,String>> |
nodeAttributes() |
Optional<GraphAsDot.AsComparable<T,?>> |
sortedBy() |
Function<T,Optional<GraphAsDot.SubGraph<T>>> |
subGraph() |
String |
subGraphIdSeparator() |
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> |
withNodeAsId(Function<T,String> value)
Copy the current immutable object by setting a value for the
nodeAsId attribute. |
ImmutableGraphAsDot<T> |
withNodeAsLabel(Function<T,String> value)
Copy the current immutable object by setting a value for the
nodeAsLabel attribute. |
ImmutableGraphAsDot<T> |
withNodeAttributes(Function<T,Map<String,String>> value)
Copy the current immutable object by setting a value for the
nodeAttributes attribute. |
ImmutableGraphAsDot<T> |
withSortedBy(GraphAsDot.AsComparable<T,?> value)
Copy the current immutable object by setting a present value for the optional
sortedBy attribute. |
ImmutableGraphAsDot<T> |
withSortedBy(Optional<? extends GraphAsDot.AsComparable<T,?>> optional)
Copy the current immutable object by setting an optional value for the
sortedBy attribute. |
ImmutableGraphAsDot<T> |
withSubGraph(Function<T,Optional<GraphAsDot.SubGraph<T>>> value)
Copy the current immutable object by setting a value for the
subGraph attribute. |
ImmutableGraphAsDot<T> |
withSubGraphIdSeparator(String value)
Copy the current immutable object by setting a value for the
subGraphIdSeparator attribute. |
asDotpublic Function<T,String> nodeAsId()
nodeAsId in class GraphAsDot<T>nodeAsId attributepublic String subGraphIdSeparator()
subGraphIdSeparator in class GraphAsDot<T>subGraphIdSeparator attributepublic Function<T,String> nodeAsLabel()
nodeAsLabel in class GraphAsDot<T>nodeAsLabel attributepublic BiFunction<T,T,Map<String,String>> edgeAttributes()
edgeAttributes in class GraphAsDot<T>edgeAttributes attributepublic Function<T,Map<String,String>> nodeAttributes()
nodeAttributes in class GraphAsDot<T>nodeAttributes attributepublic Function<T,Optional<GraphAsDot.SubGraph<T>>> subGraph()
subGraph in class GraphAsDot<T>subGraph attributepublic Optional<GraphAsDot.AsComparable<T,?>> sortedBy()
sortedBy in class GraphAsDot<T>sortedBy attributepublic String label()
label in class GraphAsDot<T>label attributepublic final ImmutableGraphAsDot<T> withNodeAsId(Function<T,String> value)
nodeAsId attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.value - A new value for nodeAsIdthis objectpublic final ImmutableGraphAsDot<T> withSubGraphIdSeparator(String value)
subGraphIdSeparator attribute.
An equals check used to prevent copying of the same value by returning this.value - A new value for subGraphIdSeparatorthis objectpublic final ImmutableGraphAsDot<T> withNodeAsLabel(Function<T,String> value)
nodeAsLabel attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.value - A new value for nodeAsLabelthis 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> withSubGraph(Function<T,Optional<GraphAsDot.SubGraph<T>>> value)
subGraph attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.value - A new value for subGraphthis objectpublic final ImmutableGraphAsDot<T> withSortedBy(GraphAsDot.AsComparable<T,?> value)
sortedBy attribute.value - The value for sortedBythis objectpublic final ImmutableGraphAsDot<T> withSortedBy(Optional<? extends GraphAsDot.AsComparable<T,?>> optional)
sortedBy 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 sortedBythis 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()
nodeAsId, subGraphIdSeparator, nodeAsLabel, edgeAttributes, nodeAttributes, subGraph, sortedBy, 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> nodeAsId)
ImmutableGraphAsDot.
ImmutableGraphAsDot.<T>builder()
.nodeAsId(function.Function<T, String>) // required nodeAsId
.subGraphIdSeparator(String) // optional subGraphIdSeparator
.nodeAsLabel(function.Function<T, String>) // optional nodeAsLabel
.edgeAttributes(function.BiFunction<T, T, Map<String, String>>) // optional edgeAttributes
.nodeAttributes(function.Function<T, Map<String, String>>) // optional nodeAttributes
.subGraph(function.Function<T, Optional<de.flapdoodle.graph.GraphAsDot.SubGraph<T>>>) // optional subGraph
.sortedBy(de.flapdoodle.graph.GraphAsDot.AsComparable<T, ?>) // optional sortedBy
.label(String) // optional label
.build();
T - generic parameter TnodeAsId - nodeAsId parameterCopyright © 2022. All rights reserved.