Record Class SlackRoute
java.lang.Object
java.lang.Record
io.jenkins.plugins.changeinvestigator.slack.transport.SlackRoute
Resolved workspace and conversation identity, never a token or configurable URL.
-
Constructor Summary
ConstructorsConstructorDescriptionSlackRoute(String teamId, String channelId) Creates an instance of aSlackRouterecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thechannelIdrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.teamId()Returns the value of theteamIdrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
SlackRoute
Creates an instance of aSlackRouterecord class.- Parameters:
teamId- the value for theteamIdrecord componentchannelId- the value for thechannelIdrecord 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). -
teamId
Returns the value of theteamIdrecord component.- Returns:
- the value of the
teamIdrecord component
-
channelId
Returns the value of thechannelIdrecord component.- Returns:
- the value of the
channelIdrecord component
-