Package mekhq.gui
Record Class ExperimentalMapView.HpgNetwork
java.lang.Object
java.lang.Record
mekhq.gui.ExperimentalMapView.HpgNetwork
- Enclosing interface:
ExperimentalMapView
public static record ExperimentalMapView.HpgNetwork(LocalDate date, InterstellarMapPanel.HpgNetworkDetail detail, List<HPGLink> links, List<ExperimentalMapView.HpgStation> stations)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionHpgNetwork(LocalDate date, InterstellarMapPanel.HpgNetworkDetail detail, List<HPGLink> links, List<ExperimentalMapView.HpgStation> stations) Creates an instance of aHpgNetworkrecord class. -
Method Summary
Modifier and TypeMethodDescriptiondate()Returns the value of thedaterecord component.detail()Returns the value of thedetailrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.links()Returns the value of thelinksrecord component.stations()Returns the value of thestationsrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
HpgNetwork
public HpgNetwork(LocalDate date, InterstellarMapPanel.HpgNetworkDetail detail, List<HPGLink> links, List<ExperimentalMapView.HpgStation> stations) Creates an instance of aHpgNetworkrecord class.- Parameters:
date- the value for thedaterecord componentdetail- the value for thedetailrecord componentlinks- the value for thelinksrecord componentstations- the value for thestationsrecord component
-
-
Method Details
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
date
Returns the value of thedaterecord component.- Returns:
- the value of the
daterecord component
-
detail
Returns the value of thedetailrecord component.- Returns:
- the value of the
detailrecord component
-
links
Returns the value of thelinksrecord component.- Returns:
- the value of the
linksrecord component
-
stations
Returns the value of thestationsrecord component.- Returns:
- the value of the
stationsrecord component
-