Record Class SpyMetadata<L extends LocalizationSetting>
java.lang.Object
java.lang.Record
net.flectone.pulse.module.command.spy.model.SpyMetadata<L>
- All Implemented Interfaces:
EventMetadata<L>
public record SpyMetadata<L extends LocalizationSetting>(@NonNull BaseEventMetadata<L extends LocalizationSetting> base, boolean turned, @NonNull String action)
extends Record
implements EventMetadata<L>
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classNested classes/interfaces inherited from interface EventMetadata
EventMetadata.Builder<L> -
Constructor Summary
ConstructorsConstructorDescriptionSpyMetadata(@NonNull BaseEventMetadata<L> base, boolean turned, @NonNull String action) Creates an instance of aSpyMetadatarecord class. -
Method Summary
Modifier and TypeMethodDescription@NonNull Stringaction()Returns the value of theactionrecord component.@NonNull BaseEventMetadata<L> base()Returns the value of thebaserecord component.static <L extends LocalizationSetting>
SpyMetadata.SpyMetadataBuilder<L> builder()final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.booleanturned()Returns the value of theturnedrecord component.withAction(@NonNull String action) withBase(@NonNull BaseEventMetadata<L> base) withTurned(boolean turned) Methods inherited from interface EventMetadata
destination, filter, flags, format, integrationMetadata, message, proxy, range, receivers, resolveFormat, resolveTags, sender, sound, tagResolvers, uuid
-
Constructor Details
-
SpyMetadata
Creates an instance of aSpyMetadatarecord class.- Parameters:
base- the value for thebaserecord componentturned- the value for theturnedrecord componentaction- the value for theactionrecord 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).
-
withTurned
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withAction
- 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
-
turned
public boolean turned()Returns the value of theturnedrecord component.- Returns:
- the value of the
turnedrecord component
-
action
Returns the value of theactionrecord component.- Returns:
- the value of the
actionrecord component
-