Record Class Graph
java.lang.Object
java.lang.Record
org.springframework.integration.graph.Graph
- Record Components:
contentDescriptor- the Spring Integration application attributes.nodes- the Spring Integration application endpoints.links- the Spring Integration application message channels between endpoints.
public record Graph(Map<String,Object> contentDescriptor, Collection<IntegrationNode> nodes, Collection<LinkNode> links)
extends Record
This object can be exposed, for example, as a JSON object over HTTP.
- Since:
- 4.3
- Author:
- Andy Clement, Gary Russell, Artem Bilan
-
Constructor Summary
ConstructorsConstructorDescriptionGraph(Map<String, Object> contentDescriptor, Collection<IntegrationNode> nodes, Collection<LinkNode> links) Creates an instance of aGraphrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecontentDescriptorrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.links()Returns the value of thelinksrecord component.nodes()Returns the value of thenodesrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Graph
public Graph(Map<String, Object> contentDescriptor, Collection<IntegrationNode> nodes, Collection<LinkNode> links) Creates an instance of aGraphrecord class.- Parameters:
contentDescriptor- the value for thecontentDescriptorrecord componentnodes- the value for thenodesrecord componentlinks- the value for thelinksrecord component
-
-
Method Details
-
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). -
contentDescriptor
Returns the value of thecontentDescriptorrecord component.- Returns:
- the value of the
contentDescriptorrecord component
-
nodes
Returns the value of thenodesrecord component.- Returns:
- the value of the
nodesrecord component
-
links
Returns the value of thelinksrecord component.- Returns:
- the value of the
linksrecord component
-