Package hydra.graphviz.dot
Class EdgeStmt
- java.lang.Object
-
- hydra.graphviz.dot.EdgeStmt
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<EdgeStmt>
public class EdgeStmt extends java.lang.Object implements java.io.Serializable, java.lang.Comparable<EdgeStmt>
A Graphviz DOT edge statement connecting a chain of nodes or subgraphs- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classEdgeStmt.BuilderA fluent builder forEdgeStmt.
-
Field Summary
Fields Modifier and Type Field Description Optional<AttrList>attributesstatic NameATTRIBUTESName of thehydra.graphviz.dot.EdgeStmt.attributesfield.NodeOrSubgraphleftstatic NameLEFTName of thehydra.graphviz.dot.EdgeStmt.leftfield.java.util.List<NodeOrSubgraph>rightstatic NameRIGHTName of thehydra.graphviz.dot.EdgeStmt.rightfield.static NameTYPE_Name of thehydra.graphviz.dot.EdgeStmttype.
-
Constructor Summary
Constructors Constructor Description EdgeStmt(NodeOrSubgraph left, java.util.List<NodeOrSubgraph> right, Optional<AttrList> attributes)Constructs an immutableEdgeStmt.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static EdgeStmt.Builderbuilder()Creates a new fluent builder forEdgeStmt.intcompareTo(EdgeStmt other)booleanequals(java.lang.Object other)inthashCode()java.lang.StringtoString()EdgeStmtwithAttributes(Optional<AttrList> attributes)Returns a copy of thisEdgeStmtwithattributesreplaced.EdgeStmtwithLeft(NodeOrSubgraph left)Returns a copy of thisEdgeStmtwithleftreplaced.EdgeStmtwithRight(java.util.List<NodeOrSubgraph> right)Returns a copy of thisEdgeStmtwithrightreplaced.
-
-
-
Field Detail
-
TYPE_
public static final Name TYPE_
Name of thehydra.graphviz.dot.EdgeStmttype.
-
LEFT
public static final Name LEFT
Name of thehydra.graphviz.dot.EdgeStmt.leftfield.
-
RIGHT
public static final Name RIGHT
Name of thehydra.graphviz.dot.EdgeStmt.rightfield.
-
ATTRIBUTES
public static final Name ATTRIBUTES
Name of thehydra.graphviz.dot.EdgeStmt.attributesfield.
-
left
public final NodeOrSubgraph left
-
right
public final java.util.List<NodeOrSubgraph> right
-
-
Constructor Detail
-
EdgeStmt
public EdgeStmt(NodeOrSubgraph left, java.util.List<NodeOrSubgraph> right, Optional<AttrList> attributes)
Constructs an immutableEdgeStmt.
-
-
Method Detail
-
equals
public boolean equals(java.lang.Object other)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
compareTo
public int compareTo(EdgeStmt other)
- Specified by:
compareToin interfacejava.lang.Comparable<EdgeStmt>
-
withLeft
public EdgeStmt withLeft(NodeOrSubgraph left)
Returns a copy of thisEdgeStmtwithleftreplaced.
-
withRight
public EdgeStmt withRight(java.util.List<NodeOrSubgraph> right)
Returns a copy of thisEdgeStmtwithrightreplaced.
-
withAttributes
public EdgeStmt withAttributes(Optional<AttrList> attributes)
Returns a copy of thisEdgeStmtwithattributesreplaced.
-
builder
public static EdgeStmt.Builder builder()
Creates a new fluent builder forEdgeStmt.
-
-