java.lang.Object
java.lang.Record
dev.hloth.zgztransport.Route
- Record Components:
id- the route id;0on top ups made off board
Route id of the operator's GTFS feed, byte 7 of a transaction.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intid()Returns the value of theidrecord component.toString()The name the operator prints: buses keep their number,11to14areCi1toCi4,111to117areN1toN7and the tram isL1.
-
Field Details
-
TRAM
The tram, printed asL1.
-
-
Constructor Details
-
Route
public Route(int id) Creates an instance of aRouterecord class.- Parameters:
id- the value for theidrecord component
-
-
Method Details
-
toString
The name the operator prints: buses keep their number,11to14areCi1toCi4,111to117areN1toN7and the tram isL1. -
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 with '=='. -
id
public int id()Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-