Record Class Message.Format.QuestionAnswer.Question
java.lang.Object
java.lang.Record
net.flectone.pulse.config.Message.Format.QuestionAnswer.Question
- All Implemented Interfaces:
CooldownConfigSetting, SoundConfigSetting
- Enclosing class:
Message.Format.QuestionAnswer
public static record Message.Format.QuestionAnswer.Question(Range range, Destination destination, Cooldown cooldown, Sound sound, String target)
extends Record
implements CooldownConfigSetting, SoundConfigSetting
- Since:
- 1.7.1
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuilder()cooldown()Returns the value of thecooldownrecord component.Returns the value of thedestinationrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.range()Returns the value of therangerecord component.sound()Returns the value of thesoundrecord component.target()Returns the value of thetargetrecord component.final StringtoString()Returns a string representation of this record class.withCooldown(Cooldown cooldown) withDestination(Destination destination) withTarget(String target)
-
Constructor Details
-
Question
public Question(Range range, Destination destination, Cooldown cooldown, Sound sound, String target) Creates an instance of aQuestionrecord class.- Parameters:
range- the value for therangerecord componentdestination- the value for thedestinationrecord componentcooldown- the value for thecooldownrecord componentsound- the value for thesoundrecord componenttarget- the value for thetargetrecord component
-
-
Method Details
-
builder
-
toBuilder
-
withRange
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withDestination
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withCooldown
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withSound
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withTarget
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
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). -
range
Returns the value of therangerecord component.- Returns:
- the value of the
rangerecord component
-
destination
Returns the value of thedestinationrecord component.- Returns:
- the value of the
destinationrecord component
-
cooldown
Returns the value of thecooldownrecord component.- Specified by:
cooldownin interfaceCooldownConfigSetting- Returns:
- the value of the
cooldownrecord component - See Also:
-
sound
Returns the value of thesoundrecord component.- Specified by:
soundin interfaceSoundConfigSetting- Returns:
- the value of the
soundrecord component - See Also:
-
target
Returns the value of thetargetrecord component.- Returns:
- the value of the
targetrecord component
-