Record Class FlightData
java.lang.Object
java.lang.Record
org.deltava.service.logbook.FlightData
- Record Components:
PIREP- the FlightReportaircraft- the Aircraft usedpositions- a Collection of RouteEntry objectserror- an optional error string
record FlightData(FlightReport PIREP, Aircraft aircraft, SequencedCollection<RouteEntry> positions, String error)
extends Record
A record to store Flight Data for serialization.
- Since:
- 12.4
- Version:
- 12.4
- Author:
- Luke
-
Constructor Summary
ConstructorsConstructorDescriptionFlightData(FlightReport PIREP, Aircraft aircraft, SequencedCollection<RouteEntry> positions, String error) Creates an instance of aFlightDatarecord class. -
Method Summary
Modifier and TypeMethodDescriptionaircraft()Returns the value of theaircraftrecord component.final booleanIndicates whether some other object is "equal to" this one.error()Returns the value of theerrorrecord component.intgetID()Returns the Flight ID.final inthashCode()Returns a hash code value for this object.PIREP()Returns the value of thePIREPrecord component.Returns the value of thepositionsrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
FlightData
FlightData(FlightReport PIREP, Aircraft aircraft, SequencedCollection<RouteEntry> positions, String error) Creates an instance of aFlightDatarecord class.
-
-
Method Details
-
getID
public int getID()Returns the Flight ID.- Returns:
- the ID
-
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). -
PIREP
-
aircraft
-
positions
-
error
-