Record Class RockPaperScissorsMetadata<L extends LocalizationSetting>
java.lang.Object
java.lang.Record
net.flectone.pulse.module.command.rockpaperscissors.model.RockPaperScissorsMetadata<L>
- All Implemented Interfaces:
EventMetadata<L>
public record RockPaperScissorsMetadata<L extends LocalizationSetting>(@NonNull BaseEventMetadata<L extends LocalizationSetting> base, @NonNull RockPaperScissors rockPaperScissors, @NonNull RockpaperscissorsModule.GamePhase gamePhase)
extends Record
implements EventMetadata<L>
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classNested classes/interfaces inherited from interface EventMetadata
EventMetadata.Builder<L> -
Constructor Summary
ConstructorsConstructorDescriptionRockPaperScissorsMetadata(@NonNull BaseEventMetadata<L> base, @NonNull RockPaperScissors rockPaperScissors, @NonNull RockpaperscissorsModule.GamePhase gamePhase) Creates an instance of aRockPaperScissorsMetadatarecord class. -
Method Summary
Modifier and TypeMethodDescription@NonNull BaseEventMetadata<L> base()Returns the value of thebaserecord component.static <L extends LocalizationSetting>
RockPaperScissorsMetadata.RockPaperScissorsMetadataBuilder<L> builder()final booleanIndicates whether some other object is "equal to" this one.@NonNull RockpaperscissorsModule.GamePhaseReturns the value of thegamePhaserecord component.final inthashCode()Returns a hash code value for this object.@NonNull RockPaperScissorsReturns the value of therockPaperScissorsrecord component.final StringtoString()Returns a string representation of this record class.withBase(@NonNull BaseEventMetadata<L> base) withGamePhase(@NonNull RockpaperscissorsModule.GamePhase gamePhase) withRockPaperScissors(@NonNull RockPaperScissors rockPaperScissors) Methods inherited from interface EventMetadata
destination, filter, flags, format, integrationMetadata, message, proxy, range, receivers, resolveFormat, resolveTags, sender, sound, tagResolvers, uuid
-
Constructor Details
-
RockPaperScissorsMetadata
public RockPaperScissorsMetadata(@NonNull BaseEventMetadata<L> base, @NonNull RockPaperScissors rockPaperScissors, @NonNull RockpaperscissorsModule.GamePhase gamePhase) Creates an instance of aRockPaperScissorsMetadatarecord class.- Parameters:
base- the value for thebaserecord componentrockPaperScissors- the value for therockPaperScissorsrecord componentgamePhase- the value for thegamePhaserecord component
-
-
Method Details
-
builder
public static <L extends LocalizationSetting> RockPaperScissorsMetadata.RockPaperScissorsMetadataBuilder<L> builder() -
withBase
- Specified by:
withBasein interfaceEventMetadata<L extends LocalizationSetting>- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withRockPaperScissors
public RockPaperScissorsMetadata<L> withRockPaperScissors(@NonNull RockPaperScissors rockPaperScissors) - Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withGamePhase
public RockPaperScissorsMetadata<L> withGamePhase(@NonNull RockpaperscissorsModule.GamePhase gamePhase) - 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). -
base
Returns the value of thebaserecord component.- Specified by:
basein interfaceEventMetadata<L extends LocalizationSetting>- Returns:
- the value of the
baserecord component
-
rockPaperScissors
Returns the value of therockPaperScissorsrecord component.- Returns:
- the value of the
rockPaperScissorsrecord component
-
gamePhase
Returns the value of thegamePhaserecord component.- Returns:
- the value of the
gamePhaserecord component
-