Record Class VanillaMetadata<L extends LocalizationSetting>
java.lang.Object
java.lang.Record
net.flectone.pulse.module.message.vanilla.model.VanillaMetadata<L>
- All Implemented Interfaces:
EventMetadata<L>, VanishMetadata<L>
public record VanillaMetadata<L extends LocalizationSetting>(@NonNull BaseEventMetadata<L extends LocalizationSetting> base, ParsedComponent parsedComponent, 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
ConstructorsConstructorDescriptionVanillaMetadata(@NonNull BaseEventMetadata<L> base, ParsedComponent parsedComponent, boolean fakeMessage, boolean vanished) Creates an instance of aVanillaMetadatarecord class. -
Method Summary
Modifier and TypeMethodDescription@NonNull BaseEventMetadata<L> base()Returns the value of thebaserecord component.static <L extends LocalizationSetting>
VanillaMetadata.VanillaMetadataBuilder<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.Returns the value of theparsedComponentrecord 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) withParsedComponent(ParsedComponent parsedComponent) 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
-
VanillaMetadata
public VanillaMetadata(@NonNull BaseEventMetadata<L> base, ParsedComponent parsedComponent, boolean fakeMessage, boolean vanished) Creates an instance of aVanillaMetadatarecord class.- Parameters:
base- the value for thebaserecord componentparsedComponent- the value for theparsedComponentrecord 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).
-
withParsedComponent
- 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
-
parsedComponent
Returns the value of theparsedComponentrecord component.- Returns:
- the value of the
parsedComponentrecord 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
-