Record Class AFKMetadata<L extends LocalizationSetting>
java.lang.Object
java.lang.Record
net.flectone.pulse.module.message.afk.model.AFKMetadata<L>
- All Implemented Interfaces:
EventMetadata<L>, VanishMetadata<L>
public record AFKMetadata<L extends LocalizationSetting>(@NonNull BaseEventMetadata<L extends LocalizationSetting> base, boolean newStatus, 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
ConstructorsConstructorDescriptionAFKMetadata(@NonNull BaseEventMetadata<L> base, boolean newStatus, boolean fakeMessage, boolean vanished) Creates an instance of aAFKMetadatarecord class. -
Method Summary
Modifier and TypeMethodDescription@NonNull BaseEventMetadata<L> base()Returns the value of thebaserecord component.static <L extends LocalizationSetting>
AFKMetadata.AFKMetadataBuilder<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 thenewStatusrecord 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) withNewStatus(boolean newStatus) 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
-
AFKMetadata
public AFKMetadata(@NonNull BaseEventMetadata<L> base, boolean newStatus, boolean fakeMessage, boolean vanished) Creates an instance of aAFKMetadatarecord class.- Parameters:
base- the value for thebaserecord componentnewStatus- the value for thenewStatusrecord 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).
-
withNewStatus
- 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
-
newStatus
public boolean newStatus()Returns the value of thenewStatusrecord component.- Returns:
- the value of the
newStatusrecord 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
-