Record Class Leg
java.lang.Object
java.lang.Record
id.klacak.bus_navigator.Leg
- Record Components:
boardStop- stop where the passenger boardsroute- route used for the ridealightStop- stop where the passenger leaves the route
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thealightStoprecord component.Returns the value of theboardStoprecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.route()Returns the value of therouterecord component.toString()Formats this ride as a short Indonesian-language itinerary description.
-
Constructor Details
-
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). -
boardStop
-
route
-
alightStop
Returns the value of thealightStoprecord component.- Returns:
- the value of the
alightStoprecord component
-