Record Class DeathMessageParseResult
java.lang.Object
java.lang.Record
com.zenith.feature.deathmessages.DeathMessageParseResult
-
Constructor Summary
ConstructorsConstructorDescriptionDeathMessageParseResult(String victim, Optional<Killer> killer, Optional<String> weapon, DeathMessageSchemaInstance deathMessageSchemaInstance) Creates an instance of aDeathMessageParseResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedeathMessageSchemaInstancerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.killer()Returns the value of thekillerrecord component.final StringtoString()Returns a string representation of this record class.victim()Returns the value of thevictimrecord component.weapon()Returns the value of theweaponrecord component.
-
Constructor Details
-
DeathMessageParseResult
public DeathMessageParseResult(String victim, Optional<Killer> killer, Optional<String> weapon, DeathMessageSchemaInstance deathMessageSchemaInstance) Creates an instance of aDeathMessageParseResultrecord class.- Parameters:
victim- the value for thevictimrecord componentkiller- the value for thekillerrecord componentweapon- the value for theweaponrecord componentdeathMessageSchemaInstance- the value for thedeathMessageSchemaInstancerecord 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. All components in this record class are compared withObjects::equals(Object,Object). -
victim
Returns the value of thevictimrecord component.- Returns:
- the value of the
victimrecord component
-
killer
-
weapon
-
deathMessageSchemaInstance
Returns the value of thedeathMessageSchemaInstancerecord component.- Returns:
- the value of the
deathMessageSchemaInstancerecord component
-