Record Class DetourRouteDirection
java.lang.Object
java.lang.Record
com.cta4j.model.bus.DetourRouteDirection
- Record Components:
route- the bus route identifierdirection- the direction of the bus route (e.g., "Northbound", "Southbound")
-
Constructor Summary
ConstructorsConstructorDescriptionDetourRouteDirection(String route, String direction) Creates an instance of aDetourRouteDirectionrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedirectionrecord 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.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
DetourRouteDirection
-
-
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). -
route
-
direction
-