Record Class MailpitAppInformation
java.lang.Object
java.lang.Record
io.micronaut.email.mailpit.client.model.MailpitAppInformation
- Record Components:
version- Current Mailpit version.latestVersion- Latest available Mailpit version.database- Database path.databaseSize- Database size in bytes.messages- Total message count.unread- Total unread message count.- Message totals by tag.runtimeStats- Runtime statistics.
public record MailpitAppInformation(@Nullable String version, @Nullable String latestVersion, @Nullable String database, long databaseSize, long messages, long unread, @Nullable Map<String,Long> tags, @Nullable MailpitRuntimeStats runtimeStats)
extends Record
Mailpit application information.
- Since:
- 3.1.0
-
Constructor Summary
ConstructorsConstructorDescriptionMailpitAppInformation(@Nullable String version, @Nullable String latestVersion, @Nullable String database, long databaseSize, long messages, long unread, @Nullable Map<String, Long> tags, @Nullable MailpitRuntimeStats runtimeStats) Creates an instance of aMailpitAppInformationrecord class. -
Method Summary
Modifier and TypeMethodDescription@Nullable Stringdatabase()Returns the value of thedatabaserecord component.longReturns the value of thedatabaseSizerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.@Nullable StringReturns the value of thelatestVersionrecord component.longmessages()Returns the value of themessagesrecord component.@Nullable MailpitRuntimeStatsReturns the value of theruntimeStatsrecord component.tags()Returns the value of thetagsrecord component.final StringtoString()Returns a string representation of this record class.longunread()Returns the value of theunreadrecord component.@Nullable Stringversion()Returns the value of theversionrecord component.
-
Constructor Details
-
MailpitAppInformation
public MailpitAppInformation(@Nullable String version, @Nullable String latestVersion, @Nullable String database, long databaseSize, long messages, long unread, @Nullable Map<String, Long> tags, @Nullable MailpitRuntimeStats runtimeStats) Creates an instance of aMailpitAppInformationrecord class.- Parameters:
version- the value for theversionrecord componentlatestVersion- the value for thelatestVersionrecord componentdatabase- the value for thedatabaserecord componentdatabaseSize- the value for thedatabaseSizerecord componentmessages- the value for themessagesrecord componentunread- the value for theunreadrecord componenttags- the value for thetagsrecord componentruntimeStats- the value for theruntimeStatsrecord component
-
-
Method Details
-
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. -
version
-
latestVersion
Returns the value of thelatestVersionrecord component.- Returns:
- the value of the
latestVersionrecord component
-
database
-
databaseSize
public long databaseSize()Returns the value of thedatabaseSizerecord component.- Returns:
- the value of the
databaseSizerecord component
-
messages
-
unread
-
tags
-
runtimeStats
Returns the value of theruntimeStatsrecord component.- Returns:
- the value of the
runtimeStatsrecord component
-