Record Class UpdateMessageMetadata<L extends LocalizationSetting>
java.lang.Object
java.lang.Record
net.flectone.pulse.module.message.update.model.UpdateMessageMetadata<L>
- All Implemented Interfaces:
EventMetadata<L>
public record UpdateMessageMetadata<L extends LocalizationSetting>(@NonNull BaseEventMetadata<L extends LocalizationSetting> base, @NonNull String latestVersion, @NonNull String currentVersion)
extends Record
implements EventMetadata<L>
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classNested classes/interfaces inherited from interface EventMetadata
EventMetadata.Builder<L> -
Constructor Summary
ConstructorsConstructorDescriptionUpdateMessageMetadata(@NonNull BaseEventMetadata<L> base, @NonNull String latestVersion, @NonNull String currentVersion) Creates an instance of aUpdateMessageMetadatarecord class. -
Method Summary
Modifier and TypeMethodDescription@NonNull BaseEventMetadata<L> base()Returns the value of thebaserecord component.static <L extends LocalizationSetting>
UpdateMessageMetadata.UpdateMessageMetadataBuilder<L> builder()@NonNull StringReturns the value of thecurrentVersionrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.@NonNull StringReturns the value of thelatestVersionrecord component.final StringtoString()Returns a string representation of this record class.withBase(@NonNull BaseEventMetadata<L> base) withCurrentVersion(@NonNull String currentVersion) withLatestVersion(@NonNull String latestVersion) Methods inherited from interface EventMetadata
destination, filter, flags, format, integrationMetadata, message, proxy, range, receivers, resolveFormat, resolveTags, sender, sound, tagResolvers, uuid
-
Constructor Details
-
UpdateMessageMetadata
public UpdateMessageMetadata(@NonNull BaseEventMetadata<L> base, @NonNull String latestVersion, @NonNull String currentVersion) Creates an instance of aUpdateMessageMetadatarecord class.- Parameters:
base- the value for thebaserecord componentlatestVersion- the value for thelatestVersionrecord componentcurrentVersion- the value for thecurrentVersionrecord component
-
-
Method Details
-
builder
public static <L extends LocalizationSetting> UpdateMessageMetadata.UpdateMessageMetadataBuilder<L> 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).
-
withLatestVersion
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withCurrentVersion
- 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. All components in this record class are compared withObjects::equals(Object,Object). -
base
Returns the value of thebaserecord component.- Specified by:
basein interfaceEventMetadata<L extends LocalizationSetting>- Returns:
- the value of the
baserecord component
-
latestVersion
Returns the value of thelatestVersionrecord component.- Returns:
- the value of the
latestVersionrecord component
-
currentVersion
Returns the value of thecurrentVersionrecord component.- Returns:
- the value of the
currentVersionrecord component
-