Record Class GraphSnapshot
java.lang.Object
java.lang.Record
dev.archunitjava.report.GraphSnapshot
public record GraphSnapshot(String schemaVersion, SnapshotQueryMetadata query, List<SnapshotNode> nodes, List<SnapshotEdge> edges)
extends Record
Versioned immutable graph snapshot consumed verbatim by all report renderers.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionGraphSnapshot(SnapshotQueryMetadata query, List<SnapshotNode> nodes, List<SnapshotEdge> edges) GraphSnapshot(String schemaVersion, SnapshotQueryMetadata query, List<SnapshotNode> nodes, List<SnapshotEdge> edges) Creates an instance of aGraphSnapshotrecord class. -
Method Summary
Modifier and TypeMethodDescriptionedges()Returns the value of theedgesrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.nodes()Returns the value of thenodesrecord component.query()Returns the value of thequeryrecord component.Returns the value of theschemaVersionrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
SCHEMA_VERSION
- See Also:
-
-
Constructor Details
-
GraphSnapshot
public GraphSnapshot(String schemaVersion, SnapshotQueryMetadata query, List<SnapshotNode> nodes, List<SnapshotEdge> edges) Creates an instance of aGraphSnapshotrecord class.- Parameters:
schemaVersion- the value for theschemaVersionrecord componentquery- the value for thequeryrecord componentnodes- the value for thenodesrecord componentedges- the value for theedgesrecord component
-
GraphSnapshot
public GraphSnapshot(SnapshotQueryMetadata query, List<SnapshotNode> nodes, List<SnapshotEdge> edges)
-
-
Method Details
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
schemaVersion
Returns the value of theschemaVersionrecord component.- Returns:
- the value of the
schemaVersionrecord component
-
query
Returns the value of thequeryrecord component.- Returns:
- the value of the
queryrecord component
-
nodes
Returns the value of thenodesrecord component.- Returns:
- the value of the
nodesrecord component
-
edges
Returns the value of theedgesrecord component.- Returns:
- the value of the
edgesrecord component
-