Package gg.xp.xivsupport.events.fflogs
Record Class FflogsFight
java.lang.Object
java.lang.Record
gg.xp.xivsupport.events.fflogs.FflogsFight
-
Constructor Summary
ConstructorsConstructorDescriptionFflogsFight(XivZone zone, double fightPercentage, boolean kill, int id, long startTime, long endTime) Creates an instance of aFflogsFightrecord class. -
Method Summary
Modifier and TypeMethodDescriptionduration()longendTime()Returns the value of theendTimerecord component.final booleanIndicates whether some other object is "equal to" this one.doubleReturns the value of thefightPercentagerecord component.static FflogsFightfromJson(Map<String, Object> gameZone, double fightPercentage, boolean kill, int id, long startTime, long endTime) final inthashCode()Returns a hash code value for this object.intid()Returns the value of theidrecord component.booleankill()Returns the value of thekillrecord component.longReturns the value of thestartTimerecord component.final StringtoString()Returns a string representation of this record class.zone()Returns the value of thezonerecord component.
-
Constructor Details
-
FflogsFight
public FflogsFight(XivZone zone, double fightPercentage, boolean kill, int id, long startTime, long endTime) Creates an instance of aFflogsFightrecord class.- Parameters:
zone- the value for thezonerecord componentfightPercentage- the value for thefightPercentagerecord componentkill- the value for thekillrecord componentid- the value for theidrecord componentstartTime- the value for thestartTimerecord componentendTime- the value for theendTimerecord component
-
-
Method Details
-
duration
-
fromJson
public static FflogsFight fromJson(Map<String, Object> gameZone, double fightPercentage, boolean kill, int id, long startTime, long endTime) -
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. -
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. -
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 '=='. -
zone
Returns the value of thezonerecord component.- Returns:
- the value of the
zonerecord component
-
fightPercentage
public double fightPercentage()Returns the value of thefightPercentagerecord component.- Returns:
- the value of the
fightPercentagerecord component
-
kill
public boolean kill()Returns the value of thekillrecord component.- Returns:
- the value of the
killrecord component
-
id
public int id()Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
startTime
public long startTime()Returns the value of thestartTimerecord component.- Returns:
- the value of the
startTimerecord component
-
endTime
public long endTime()Returns the value of theendTimerecord component.- Returns:
- the value of the
endTimerecord component
-