Record Class AsyncChannel
java.lang.Object
java.lang.Record
com.arc_e_tect.gradle.apionly.transcriberj.model.AsyncChannel
- Record Components:
key- its key underchannels, as the bundler chose itprovenance- where the channel fragment came fromaddress-address, the address on the broker, ornulltitle-title, ornulldescription-description, ornullmessages- the messages it carries, in declaration orderlocation- the JSON pointer of the channel in its document
public record AsyncChannel(String key, Provenance provenance, String address, String title, String description, List<AsyncMessage> messages, String location)
extends Record
A channel of an AsyncAPI contract: an address messages travel over.
-
Constructor Summary
ConstructorsConstructorDescriptionAsyncChannel(String key, Provenance provenance, String address, String title, String description, List<AsyncMessage> messages, String location) Creates an instance of aAsyncChannelrecord class. -
Method Summary
Modifier and TypeMethodDescriptionaddress()Returns the value of theaddressrecord component.Returns the value of thedescriptionrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.key()Returns the value of thekeyrecord component.location()Returns the value of thelocationrecord component.messages()Returns the value of themessagesrecord component.Returns the value of theprovenancerecord component.title()Returns the value of thetitlerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
AsyncChannel
public AsyncChannel(String key, Provenance provenance, String address, String title, String description, List<AsyncMessage> messages, String location) Creates an instance of aAsyncChannelrecord class.- Parameters:
key- the value for thekeyrecord componentprovenance- the value for theprovenancerecord componentaddress- the value for theaddressrecord componenttitle- the value for thetitlerecord componentdescription- the value for thedescriptionrecord componentmessages- the value for themessagesrecord componentlocation- the value for thelocationrecord 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). -
key
Returns the value of thekeyrecord component.- Returns:
- the value of the
keyrecord component
-
provenance
Returns the value of theprovenancerecord component.- Returns:
- the value of the
provenancerecord component
-
address
Returns the value of theaddressrecord component.- Returns:
- the value of the
addressrecord component
-
title
Returns the value of thetitlerecord component.- Returns:
- the value of the
titlerecord component
-
description
Returns the value of thedescriptionrecord component.- Returns:
- the value of the
descriptionrecord component
-
messages
Returns the value of themessagesrecord component.- Returns:
- the value of the
messagesrecord component
-
location
Returns the value of thelocationrecord component.- Returns:
- the value of the
locationrecord component
-