Record Class ParsedComponent
java.lang.Object
java.lang.Record
net.flectone.pulse.module.message.vanilla.model.ParsedComponent
- Record Components:
translationKey- the vanilla translation keyvanillaMessage- the matching config entryarguments- the translation arguments, keyed by position
-
Constructor Summary
ConstructorsConstructorDescriptionParsedComponent(String translationKey, Message.Vanilla.VanillaMessage vanillaMessage, Map<Integer, Object> arguments) Creates an instance of aParsedComponentrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theargumentsrecord 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.Returns the value of thetranslationKeyrecord component.Returns the value of thevanillaMessagerecord component.
-
Constructor Details
-
ParsedComponent
public ParsedComponent(String translationKey, Message.Vanilla.VanillaMessage vanillaMessage, Map<Integer, Object> arguments) Creates an instance of aParsedComponentrecord class.- Parameters:
translationKey- the value for thetranslationKeyrecord componentvanillaMessage- the value for thevanillaMessagerecord componentarguments- the value for theargumentsrecord 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). -
translationKey
Returns the value of thetranslationKeyrecord component.- Returns:
- the value of the
translationKeyrecord component
-
vanillaMessage
Returns the value of thevanillaMessagerecord component.- Returns:
- the value of the
vanillaMessagerecord component
-
arguments
-