Record Class DeathsFeedRecord

java.lang.Object
java.lang.Record
com.zenith.database.dto.records.DeathsFeedRecord

public record DeathsFeedRecord(OffsetDateTime time, String deathMessage, String victimPlayerName, UUID victimPlayerUuid, String killerPlayerName, UUID killerPlayerUuid, String weaponName, String killerMob, String component) extends Record
  • Constructor Details

    • DeathsFeedRecord

      public DeathsFeedRecord(OffsetDateTime time, String deathMessage, String victimPlayerName, UUID victimPlayerUuid, String killerPlayerName, UUID killerPlayerUuid, String weaponName, String killerMob, String component)
      Creates an instance of a DeathsFeedRecord record class.
      Parameters:
      time - the value for the time record component
      deathMessage - the value for the deathMessage record component
      victimPlayerName - the value for the victimPlayerName record component
      victimPlayerUuid - the value for the victimPlayerUuid record component
      killerPlayerName - the value for the killerPlayerName record component
      killerPlayerUuid - the value for the killerPlayerUuid record component
      weaponName - the value for the weaponName record component
      killerMob - the value for the killerMob record component
      component - the value for the component 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. All components in this record class are compared with Objects::equals(Object,Object).
      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.
    • time

      public OffsetDateTime time()
      Returns the value of the time record component.
      Returns:
      the value of the time record component
    • deathMessage

      public String deathMessage()
      Returns the value of the deathMessage record component.
      Returns:
      the value of the deathMessage record component
    • victimPlayerName

      public String victimPlayerName()
      Returns the value of the victimPlayerName record component.
      Returns:
      the value of the victimPlayerName record component
    • victimPlayerUuid

      public UUID victimPlayerUuid()
      Returns the value of the victimPlayerUuid record component.
      Returns:
      the value of the victimPlayerUuid record component
    • killerPlayerName

      public String killerPlayerName()
      Returns the value of the killerPlayerName record component.
      Returns:
      the value of the killerPlayerName record component
    • killerPlayerUuid

      public UUID killerPlayerUuid()
      Returns the value of the killerPlayerUuid record component.
      Returns:
      the value of the killerPlayerUuid record component
    • weaponName

      public String weaponName()
      Returns the value of the weaponName record component.
      Returns:
      the value of the weaponName record component
    • killerMob

      public String killerMob()
      Returns the value of the killerMob record component.
      Returns:
      the value of the killerMob record component
    • component

      public String component()
      Returns the value of the component record component.
      Returns:
      the value of the component record component