Record Class MessagePipelineCtx
java.lang.Object
java.lang.Record
com.winterhavenmc.library.messagebuilder.core.context.MessagePipelineCtx
public record MessagePipelineCtx(MessageRetriever messageRetriever, Processor messageProcessor, CooldownMap cooldownMap, List<Sender> senders)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionMessagePipelineCtx(MessageRetriever messageRetriever, Processor messageProcessor, CooldownMap cooldownMap, List<Sender> senders) Creates an instance of aMessagePipelineCtxrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecooldownMaprecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of themessageProcessorrecord component.Returns the value of themessageRetrieverrecord component.senders()Returns the value of thesendersrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
MessagePipelineCtx
public MessagePipelineCtx(MessageRetriever messageRetriever, Processor messageProcessor, CooldownMap cooldownMap, List<Sender> senders) Creates an instance of aMessagePipelineCtxrecord class.- Parameters:
messageRetriever- the value for themessageRetrieverrecord componentmessageProcessor- the value for themessageProcessorrecord componentcooldownMap- the value for thecooldownMaprecord componentsenders- the value for thesendersrecord 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). -
messageRetriever
Returns the value of themessageRetrieverrecord component.- Returns:
- the value of the
messageRetrieverrecord component
-
messageProcessor
Returns the value of themessageProcessorrecord component.- Returns:
- the value of the
messageProcessorrecord component
-
cooldownMap
Returns the value of thecooldownMaprecord component.- Returns:
- the value of the
cooldownMaprecord component
-
senders
Returns the value of thesendersrecord component.- Returns:
- the value of the
sendersrecord component
-