Record Class ChannelScope
java.lang.Object
java.lang.Record
ai.redouble.examples.scopes.ChannelScope
- All Implemented Interfaces:
Scope
The channel axis: which channel's work this is (email, phone). Independent of the case
axis, which is why the two can bind one flow side by side without knowing of each other.
- Since:
- 0.1 (2026-09-28)
- Author:
- Andrey Santrosyan
-
Constructor Summary
ConstructorsConstructorDescriptionChannelScope(String channel) Creates an instance of aChannelScoperecord class. -
Method Summary
Modifier and TypeMethodDescriptionchannel()Returns the value of thechannelrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ChannelScope
Creates an instance of aChannelScoperecord class.- Parameters:
channel- the value for thechannelrecord 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). -
channel
Returns the value of thechannelrecord component.- Returns:
- the value of the
channelrecord component
-