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.
tags - 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 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 a MailpitAppInformation record class.
      Parameters:
      version - the value for the version record component
      latestVersion - the value for the latestVersion record component
      database - the value for the database record component
      databaseSize - the value for the databaseSize record component
      messages - the value for the messages record component
      unread - the value for the unread record component
      tags - the value for the tags record component
      runtimeStats - the value for the runtimeStats record component
  • Method Details

    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object); primitive components are compared with the compare method from their corresponding wrapper classes.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • version

      public @Nullable String version()
      Returns the value of the version record component.
      Returns:
      the value of the version record component
    • latestVersion

      public @Nullable String latestVersion()
      Returns the value of the latestVersion record component.
      Returns:
      the value of the latestVersion record component
    • database

      public @Nullable String database()
      Returns the value of the database record component.
      Returns:
      the value of the database record component
    • databaseSize

      public long databaseSize()
      Returns the value of the databaseSize record component.
      Returns:
      the value of the databaseSize record component
    • messages

      public long messages()
      Returns the value of the messages record component.
      Returns:
      the value of the messages record component
    • unread

      public long unread()
      Returns the value of the unread record component.
      Returns:
      the value of the unread record component
    • tags

      public @Nullable Map<String,Long> tags()
      Returns the value of the tags record component.
      Returns:
      the value of the tags record component
    • runtimeStats

      public @Nullable MailpitRuntimeStats runtimeStats()
      Returns the value of the runtimeStats record component.
      Returns:
      the value of the runtimeStats record component