Record Class AssetRecognition
java.lang.Object
java.lang.Record
name.jurgenei.gradle.ooxml.recognizer.AssetRecognition
public record AssetRecognition(List<DiagramNode> nodes, List<DiagramEdge> edges, List<DiagramGroup> groups, List<DiagramAnnotation> annotations)
extends Record
Result of format-specific diagram recognition.
-
Constructor Summary
ConstructorsConstructorDescriptionAssetRecognition(List<DiagramNode> nodes, List<DiagramEdge> edges, List<DiagramGroup> groups, List<DiagramAnnotation> annotations) Creates an instance of aAssetRecognitionrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theannotationsrecord component.edges()Returns the value of theedgesrecord component.static AssetRecognitionempty()final booleanIndicates whether some other object is "equal to" this one.groups()Returns the value of thegroupsrecord component.final inthashCode()Returns a hash code value for this object.nodes()Returns the value of thenodesrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
AssetRecognition
public AssetRecognition(List<DiagramNode> nodes, List<DiagramEdge> edges, List<DiagramGroup> groups, List<DiagramAnnotation> annotations) Creates an instance of aAssetRecognitionrecord class.- Parameters:
nodes- the value for thenodesrecord componentedges- the value for theedgesrecord componentgroups- the value for thegroupsrecord componentannotations- the value for theannotationsrecord component
-
-
Method Details
-
empty
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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). -
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
-
groups
Returns the value of thegroupsrecord component.- Returns:
- the value of the
groupsrecord component
-
annotations
Returns the value of theannotationsrecord component.- Returns:
- the value of the
annotationsrecord component
-