Record Class IgnoreMetadata<L extends LocalizationSetting>
java.lang.Object
java.lang.Record
net.flectone.pulse.module.command.ignore.model.IgnoreMetadata<L>
- All Implemented Interfaces:
EventMetadata<L>
public record IgnoreMetadata<L extends LocalizationSetting>(@NonNull BaseEventMetadata<L extends LocalizationSetting> base, @NonNull Ignore ignore, boolean ignored)
extends Record
implements EventMetadata<L>
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classNested classes/interfaces inherited from interface EventMetadata
EventMetadata.Builder<L> -
Constructor Summary
ConstructorsConstructorDescriptionIgnoreMetadata(@NonNull BaseEventMetadata<L> base, @NonNull Ignore ignore, boolean ignored) Creates an instance of aIgnoreMetadatarecord class. -
Method Summary
Modifier and TypeMethodDescription@NonNull BaseEventMetadata<L> base()Returns the value of thebaserecord component.static <L extends LocalizationSetting>
IgnoreMetadata.IgnoreMetadataBuilder<L> builder()final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.@NonNull Ignoreignore()Returns the value of theignorerecord component.booleanignored()Returns the value of theignoredrecord component.final StringtoString()Returns a string representation of this record class.withBase(@NonNull BaseEventMetadata<L> base) withIgnore(@NonNull Ignore ignore) withIgnored(boolean ignored) Methods inherited from interface EventMetadata
destination, filter, flags, format, integrationMetadata, message, proxy, range, receivers, resolveFormat, resolveTags, sender, sound, tagResolvers, uuid
-
Constructor Details
-
IgnoreMetadata
Creates an instance of aIgnoreMetadatarecord class.- Parameters:
base- the value for thebaserecord componentignore- the value for theignorerecord componentignored- the value for theignoredrecord 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).
-
withIgnore
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withIgnored
- 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
-
ignore
Returns the value of theignorerecord component.- Returns:
- the value of the
ignorerecord component
-
ignored
public boolean ignored()Returns the value of theignoredrecord component.- Returns:
- the value of the
ignoredrecord component
-