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 aGraph
record class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecontentDescriptor
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.links()
Returns the value of thelinks
record component.nodes()
Returns the value of thenodes
record component.final String
toString()
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 aGraph
record class.- Parameters:
contentDescriptor
- the value for thecontentDescriptor
record componentnodes
- the value for thenodes
record componentlinks
- the value for thelinks
record component
-
-
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)
. -
contentDescriptor
Returns the value of thecontentDescriptor
record component.- Returns:
- the value of the
contentDescriptor
record component
-
nodes
-
links
-