Package gg.xp.xivsupport.events.fflogs
Record Class FflogsFight
java.lang.Object
java.lang.Record
gg.xp.xivsupport.events.fflogs.FflogsFight
-
Constructor Summary
ConstructorDescriptionFflogsFight
(XivZone zone, double fightPercentage, boolean kill, int id, long startTime, long endTime) Creates an instance of aFflogsFight
record class. -
Method Summary
Modifier and TypeMethodDescriptionduration()
long
endTime()
Returns the value of theendTime
record component.final boolean
Indicates whether some other object is "equal to" this one.double
Returns the value of thefightPercentage
record component.static FflogsFight
fromJson
(Map<String, Object> gameZone, double fightPercentage, boolean kill, int id, long startTime, long endTime) final int
hashCode()
Returns a hash code value for this object.int
id()
Returns the value of theid
record component.boolean
kill()
Returns the value of thekill
record component.long
Returns the value of thestartTime
record component.final String
toString()
Returns a string representation of this record class.zone()
Returns the value of thezone
record component.
-
Constructor Details
-
FflogsFight
public FflogsFight(XivZone zone, double fightPercentage, boolean kill, int id, long startTime, long endTime) Creates an instance of aFflogsFight
record class.- Parameters:
zone
- the value for thezone
record componentfightPercentage
- the value for thefightPercentage
record componentkill
- the value for thekill
record componentid
- the value for theid
record componentstartTime
- the value for thestartTime
record componentendTime
- the value for theendTime
record 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 thezone
record component.- Returns:
- the value of the
zone
record component
-
fightPercentage
public double fightPercentage()Returns the value of thefightPercentage
record component.- Returns:
- the value of the
fightPercentage
record component
-
kill
public boolean kill()Returns the value of thekill
record component.- Returns:
- the value of the
kill
record component
-
id
public int id()Returns the value of theid
record component.- Returns:
- the value of the
id
record component
-
startTime
public long startTime()Returns the value of thestartTime
record component.- Returns:
- the value of the
startTime
record component
-
endTime
public long endTime()Returns the value of theendTime
record component.- Returns:
- the value of the
endTime
record component
-