Record Class JoinMetadata<L extends LocalizationSetting>
java.lang.Object
java.lang.Record
net.flectone.pulse.module.message.join.model.JoinMetadata<L>
- All Implemented Interfaces:
EventMetadata<L>, VanishMetadata<L>
public record JoinMetadata<L extends LocalizationSetting>(@NonNull BaseEventMetadata<L extends LocalizationSetting> base, boolean playedBefore, boolean fakeMessage, boolean vanished)
extends Record
implements VanishMetadata<L>
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classNested classes/interfaces inherited from interface EventMetadata
EventMetadata.Builder<L> -
Constructor Summary
ConstructorsConstructorDescriptionJoinMetadata(@NonNull BaseEventMetadata<L> base, boolean playedBefore, boolean fakeMessage, boolean vanished) Creates an instance of aJoinMetadatarecord class. -
Method Summary
Modifier and TypeMethodDescription@NonNull BaseEventMetadata<L> base()Returns the value of thebaserecord component.static <L extends LocalizationSetting>
JoinMetadata.JoinMetadataBuilder<L> builder()final booleanIndicates whether some other object is "equal to" this one.booleanReturns the value of thefakeMessagerecord component.final inthashCode()Returns a hash code value for this object.booleanReturns the value of theplayedBeforerecord component.final StringtoString()Returns a string representation of this record class.booleanvanished()Returns the value of thevanishedrecord component.withBase(@NonNull BaseEventMetadata<L> base) withFakeMessage(boolean fakeMessage) withPlayedBefore(boolean playedBefore) withVanished(boolean vanished) Methods inherited from interface EventMetadata
destination, filter, flags, format, integrationMetadata, message, proxy, range, receivers, resolveFormat, resolveTags, sender, sound, tagResolvers, uuid
-
Constructor Details
-
JoinMetadata
public JoinMetadata(@NonNull BaseEventMetadata<L> base, boolean playedBefore, boolean fakeMessage, boolean vanished) Creates an instance of aJoinMetadatarecord class.- Parameters:
base- the value for thebaserecord componentplayedBefore- the value for theplayedBeforerecord componentfakeMessage- the value for thefakeMessagerecord componentvanished- the value for thevanishedrecord component
-
-
Method Details
-
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).
-
withPlayedBefore
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withFakeMessage
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withVanished
- 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
base
Returns the value of thebaserecord component.- Specified by:
basein interfaceEventMetadata<L extends LocalizationSetting>- Returns:
- the value of the
baserecord component
-
playedBefore
public boolean playedBefore()Returns the value of theplayedBeforerecord component.- Returns:
- the value of the
playedBeforerecord component
-
fakeMessage
public boolean fakeMessage()Returns the value of thefakeMessagerecord component.- Specified by:
fakeMessagein interfaceVanishMetadata<L extends LocalizationSetting>- Returns:
- the value of the
fakeMessagerecord component
-
vanished
public boolean vanished()Returns the value of thevanishedrecord component.- Specified by:
vanishedin interfaceVanishMetadata<L extends LocalizationSetting>- Returns:
- the value of the
vanishedrecord component
-