From ca7150a121355cdf5fc7c22ae283c9e680a5de61 Mon Sep 17 00:00:00 2001 From: Stainless Bot Date: Thu, 3 Oct 2024 15:43:04 +0000 Subject: [PATCH 1/3] chore(internal): codegen related update (#7) --- .../AgenciesWithCoverageListResponse.kt | 196 +-- .../models/AgencyRetrieveResponse.kt | 216 +-- .../models/ArrivalAndDepartureListResponse.kt | 620 ++++----- .../ArrivalAndDepartureRetrieveResponse.kt | 582 ++++---- .../models/BlockRetrieveResponse.kt | 436 +++--- .../models/ConfigRetrieveResponse.kt | 320 ++--- .../models/CurrentTimeRetrieveResponse.kt | 180 +-- .../org/onebusaway/models/References.kt | 1166 ++++++++--------- .../org/onebusaway/models/ResponseWrapper.kt | 64 +- .../models/RouteIdsForAgencyListResponse.kt | 128 +- .../models/RouteRetrieveResponse.kt | 212 +-- .../models/RoutesForAgencyListResponse.kt | 216 +-- .../models/RoutesForLocationListResponse.kt | 220 ++-- .../ScheduleForRouteRetrieveResponse.kt | 572 ++++---- .../models/ScheduleForStopRetrieveResponse.kt | 448 +++---- .../models/SearchForRouteListResponse.kt | 220 ++-- .../models/SearchForStopListResponse.kt | 224 ++-- .../models/ShapeRetrieveResponse.kt | 184 +-- .../models/StopIdsForAgencyListResponse.kt | 128 +- .../onebusaway/models/StopRetrieveResponse.kt | 216 +-- .../models/StopsForLocationListResponse.kt | 220 ++-- .../models/StopsForRouteListResponse.kt | 432 +++--- .../models/TripDetailRetrieveResponse.kt | 606 ++++----- .../models/TripForVehicleRetrieveResponse.kt | 606 ++++----- .../onebusaway/models/TripRetrieveResponse.kt | 216 +-- .../models/TripsForLocationListResponse.kt | 614 ++++----- .../models/TripsForRouteListResponse.kt | 610 ++++----- .../models/VehiclesForAgencyListResponse.kt | 546 ++++---- 28 files changed, 5200 insertions(+), 5198 deletions(-) diff --git a/onebusaway-sdk-java-core/src/main/kotlin/org/onebusaway/models/AgenciesWithCoverageListResponse.kt b/onebusaway-sdk-java-core/src/main/kotlin/org/onebusaway/models/AgenciesWithCoverageListResponse.kt index 1c3733e..d1fe604 100644 --- a/onebusaway-sdk-java-core/src/main/kotlin/org/onebusaway/models/AgenciesWithCoverageListResponse.kt +++ b/onebusaway-sdk-java-core/src/main/kotlin/org/onebusaway/models/AgenciesWithCoverageListResponse.kt @@ -28,8 +28,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - fun code(): Long = code.getRequired("code") fun currentTime(): Long = currentTime.getRequired("currentTime") @@ -75,38 +73,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is AgenciesWithCoverageListResponse && - this.code == other.code && - this.currentTime == other.currentTime && - this.text == other.text && - this.version == other.version && - this.data == other.data && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - code, - currentTime, - text, - version, - data, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "AgenciesWithCoverageListResponse{code=$code, currentTime=$currentTime, text=$text, version=$version, data=$data, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -199,8 +165,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - fun limitExceeded(): Boolean = limitExceeded.getRequired("limitExceeded") fun list(): kotlin.collections.List = list.getRequired("list") @@ -228,34 +192,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is Data && - this.limitExceeded == other.limitExceeded && - this.list == other.list && - this.references == other.references && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - limitExceeded, - list, - references, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "Data{limitExceeded=$limitExceeded, list=$list, references=$references, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -335,8 +271,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - fun agencyId(): String = agencyId.getRequired("agencyId") fun lat(): Double = lat.getRequired("lat") @@ -374,38 +308,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is List && - this.agencyId == other.agencyId && - this.lat == other.lat && - this.latSpan == other.latSpan && - this.lon == other.lon && - this.lonSpan == other.lonSpan && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - agencyId, - lat, - latSpan, - lon, - lonSpan, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "List{agencyId=$agencyId, lat=$lat, latSpan=$latSpan, lon=$lon, lonSpan=$lonSpan, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -485,6 +387,104 @@ private constructor( additionalProperties.toUnmodifiable(), ) } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is List && + this.agencyId == other.agencyId && + this.lat == other.lat && + this.latSpan == other.latSpan && + this.lon == other.lon && + this.lonSpan == other.lonSpan && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + agencyId, + lat, + latSpan, + lon, + lonSpan, + additionalProperties, + ) + } + return hashCode + } + + override fun toString() = + "List{agencyId=$agencyId, lat=$lat, latSpan=$latSpan, lon=$lon, lonSpan=$lonSpan, additionalProperties=$additionalProperties}" + } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is Data && + this.limitExceeded == other.limitExceeded && + this.list == other.list && + this.references == other.references && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + limitExceeded, + list, + references, + additionalProperties, + ) + } + return hashCode } + + override fun toString() = + "Data{limitExceeded=$limitExceeded, list=$list, references=$references, additionalProperties=$additionalProperties}" } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is AgenciesWithCoverageListResponse && + this.code == other.code && + this.currentTime == other.currentTime && + this.text == other.text && + this.version == other.version && + this.data == other.data && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + code, + currentTime, + text, + version, + data, + additionalProperties, + ) + } + return hashCode + } + + override fun toString() = + "AgenciesWithCoverageListResponse{code=$code, currentTime=$currentTime, text=$text, version=$version, data=$data, additionalProperties=$additionalProperties}" } diff --git a/onebusaway-sdk-java-core/src/main/kotlin/org/onebusaway/models/AgencyRetrieveResponse.kt b/onebusaway-sdk-java-core/src/main/kotlin/org/onebusaway/models/AgencyRetrieveResponse.kt index cc7060b..c0a335d 100644 --- a/onebusaway-sdk-java-core/src/main/kotlin/org/onebusaway/models/AgencyRetrieveResponse.kt +++ b/onebusaway-sdk-java-core/src/main/kotlin/org/onebusaway/models/AgencyRetrieveResponse.kt @@ -29,8 +29,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - fun code(): Long = code.getRequired("code") fun currentTime(): Long = currentTime.getRequired("currentTime") @@ -76,38 +74,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is AgencyRetrieveResponse && - this.code == other.code && - this.currentTime == other.currentTime && - this.text == other.text && - this.version == other.version && - this.data == other.data && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - code, - currentTime, - text, - version, - data, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "AgencyRetrieveResponse{code=$code, currentTime=$currentTime, text=$text, version=$version, data=$data, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -199,8 +165,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - fun limitExceeded(): Boolean = limitExceeded.getRequired("limitExceeded") fun entry(): Entry = entry.getRequired("entry") @@ -228,34 +192,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is Data && - this.limitExceeded == other.limitExceeded && - this.entry == other.entry && - this.references == other.references && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - limitExceeded, - entry, - references, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "Data{limitExceeded=$limitExceeded, entry=$entry, references=$references, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -340,8 +276,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - fun disclaimer(): Optional = Optional.ofNullable(disclaimer.getNullable("disclaimer")) @@ -406,48 +340,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is Entry && - this.disclaimer == other.disclaimer && - this.email == other.email && - this.fareUrl == other.fareUrl && - this.id == other.id && - this.lang == other.lang && - this.name == other.name && - this.phone == other.phone && - this.privateService == other.privateService && - this.timezone == other.timezone && - this.url == other.url && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - disclaimer, - email, - fareUrl, - id, - lang, - name, - phone, - privateService, - timezone, - url, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "Entry{disclaimer=$disclaimer, email=$email, fareUrl=$fareUrl, id=$id, lang=$lang, name=$name, phone=$phone, privateService=$privateService, timezone=$timezone, url=$url, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -577,6 +469,114 @@ private constructor( additionalProperties.toUnmodifiable(), ) } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is Entry && + this.disclaimer == other.disclaimer && + this.email == other.email && + this.fareUrl == other.fareUrl && + this.id == other.id && + this.lang == other.lang && + this.name == other.name && + this.phone == other.phone && + this.privateService == other.privateService && + this.timezone == other.timezone && + this.url == other.url && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + disclaimer, + email, + fareUrl, + id, + lang, + name, + phone, + privateService, + timezone, + url, + additionalProperties, + ) + } + return hashCode + } + + override fun toString() = + "Entry{disclaimer=$disclaimer, email=$email, fareUrl=$fareUrl, id=$id, lang=$lang, name=$name, phone=$phone, privateService=$privateService, timezone=$timezone, url=$url, additionalProperties=$additionalProperties}" + } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is Data && + this.limitExceeded == other.limitExceeded && + this.entry == other.entry && + this.references == other.references && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + limitExceeded, + entry, + references, + additionalProperties, + ) + } + return hashCode + } + + override fun toString() = + "Data{limitExceeded=$limitExceeded, entry=$entry, references=$references, additionalProperties=$additionalProperties}" + } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is AgencyRetrieveResponse && + this.code == other.code && + this.currentTime == other.currentTime && + this.text == other.text && + this.version == other.version && + this.data == other.data && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + code, + currentTime, + text, + version, + data, + additionalProperties, + ) } + return hashCode } + + override fun toString() = + "AgencyRetrieveResponse{code=$code, currentTime=$currentTime, text=$text, version=$version, data=$data, additionalProperties=$additionalProperties}" } diff --git a/onebusaway-sdk-java-core/src/main/kotlin/org/onebusaway/models/ArrivalAndDepartureListResponse.kt b/onebusaway-sdk-java-core/src/main/kotlin/org/onebusaway/models/ArrivalAndDepartureListResponse.kt index f36f75f..5eaa97c 100644 --- a/onebusaway-sdk-java-core/src/main/kotlin/org/onebusaway/models/ArrivalAndDepartureListResponse.kt +++ b/onebusaway-sdk-java-core/src/main/kotlin/org/onebusaway/models/ArrivalAndDepartureListResponse.kt @@ -29,8 +29,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - fun code(): Long = code.getRequired("code") fun currentTime(): Long = currentTime.getRequired("currentTime") @@ -76,38 +74,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is ArrivalAndDepartureListResponse && - this.code == other.code && - this.currentTime == other.currentTime && - this.text == other.text && - this.version == other.version && - this.data == other.data && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - code, - currentTime, - text, - version, - data, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "ArrivalAndDepartureListResponse{code=$code, currentTime=$currentTime, text=$text, version=$version, data=$data, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -199,8 +165,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - fun entry(): Entry = entry.getRequired("entry") fun references(): References = references.getRequired("references") @@ -223,32 +187,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is Data && - this.entry == other.entry && - this.references == other.references && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - entry, - references, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "Data{entry=$entry, references=$references, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -313,8 +251,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - fun arrivalsAndDepartures(): List = arrivalsAndDepartures.getRequired("arrivalsAndDepartures") @@ -335,26 +271,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is Entry && - this.arrivalsAndDepartures == other.arrivalsAndDepartures && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = Objects.hash(arrivalsAndDepartures, additionalProperties) - } - return hashCode - } - - override fun toString() = - "Entry{arrivalsAndDepartures=$arrivalsAndDepartures, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -446,8 +362,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - /** The actual track information of the arriving transit vehicle. */ fun actualTrack(): Optional = Optional.ofNullable(actualTrack.getNullable("actualTrack")) @@ -815,96 +729,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is ArrivalsAndDeparture && - this.actualTrack == other.actualTrack && - this.arrivalEnabled == other.arrivalEnabled && - this.blockTripSequence == other.blockTripSequence && - this.departureEnabled == other.departureEnabled && - this.distanceFromStop == other.distanceFromStop && - this.frequency == other.frequency && - this.historicalOccupancy == other.historicalOccupancy && - this.lastUpdateTime == other.lastUpdateTime && - this.numberOfStopsAway == other.numberOfStopsAway && - this.occupancyStatus == other.occupancyStatus && - this.predicted == other.predicted && - this.predictedArrivalInterval == other.predictedArrivalInterval && - this.predictedArrivalTime == other.predictedArrivalTime && - this.predictedDepartureInterval == other.predictedDepartureInterval && - this.predictedDepartureTime == other.predictedDepartureTime && - this.predictedOccupancy == other.predictedOccupancy && - this.routeId == other.routeId && - this.routeLongName == other.routeLongName && - this.routeShortName == other.routeShortName && - this.scheduledArrivalInterval == other.scheduledArrivalInterval && - this.scheduledArrivalTime == other.scheduledArrivalTime && - this.scheduledDepartureInterval == other.scheduledDepartureInterval && - this.scheduledDepartureTime == other.scheduledDepartureTime && - this.scheduledTrack == other.scheduledTrack && - this.serviceDate == other.serviceDate && - this.situationIds == other.situationIds && - this.status == other.status && - this.stopId == other.stopId && - this.stopSequence == other.stopSequence && - this.totalStopsInTrip == other.totalStopsInTrip && - this.tripHeadsign == other.tripHeadsign && - this.tripId == other.tripId && - this.tripStatus == other.tripStatus && - this.vehicleId == other.vehicleId && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - actualTrack, - arrivalEnabled, - blockTripSequence, - departureEnabled, - distanceFromStop, - frequency, - historicalOccupancy, - lastUpdateTime, - numberOfStopsAway, - occupancyStatus, - predicted, - predictedArrivalInterval, - predictedArrivalTime, - predictedDepartureInterval, - predictedDepartureTime, - predictedOccupancy, - routeId, - routeLongName, - routeShortName, - scheduledArrivalInterval, - scheduledArrivalTime, - scheduledDepartureInterval, - scheduledDepartureTime, - scheduledTrack, - serviceDate, - situationIds, - status, - stopId, - stopSequence, - totalStopsInTrip, - tripHeadsign, - tripId, - tripStatus, - vehicleId, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "ArrivalsAndDeparture{actualTrack=$actualTrack, arrivalEnabled=$arrivalEnabled, blockTripSequence=$blockTripSequence, departureEnabled=$departureEnabled, distanceFromStop=$distanceFromStop, frequency=$frequency, historicalOccupancy=$historicalOccupancy, lastUpdateTime=$lastUpdateTime, numberOfStopsAway=$numberOfStopsAway, occupancyStatus=$occupancyStatus, predicted=$predicted, predictedArrivalInterval=$predictedArrivalInterval, predictedArrivalTime=$predictedArrivalTime, predictedDepartureInterval=$predictedDepartureInterval, predictedDepartureTime=$predictedDepartureTime, predictedOccupancy=$predictedOccupancy, routeId=$routeId, routeLongName=$routeLongName, routeShortName=$routeShortName, scheduledArrivalInterval=$scheduledArrivalInterval, scheduledArrivalTime=$scheduledArrivalTime, scheduledDepartureInterval=$scheduledDepartureInterval, scheduledDepartureTime=$scheduledDepartureTime, scheduledTrack=$scheduledTrack, serviceDate=$serviceDate, situationIds=$situationIds, status=$status, stopId=$stopId, stopSequence=$stopSequence, totalStopsInTrip=$totalStopsInTrip, tripHeadsign=$tripHeadsign, tripId=$tripId, tripStatus=$tripStatus, vehicleId=$vehicleId, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -1494,8 +1318,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - /** Trip ID of the trip the vehicle is actively serving. */ fun activeTripId(): String = activeTripId.getRequired("activeTripId") @@ -1803,82 +1625,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is TripStatus && - this.activeTripId == other.activeTripId && - this.blockTripSequence == other.blockTripSequence && - this.closestStop == other.closestStop && - this.closestStopTimeOffset == other.closestStopTimeOffset && - this.distanceAlongTrip == other.distanceAlongTrip && - this.frequency == other.frequency && - this.lastKnownDistanceAlongTrip == other.lastKnownDistanceAlongTrip && - this.lastKnownLocation == other.lastKnownLocation && - this.lastKnownOrientation == other.lastKnownOrientation && - this.lastLocationUpdateTime == other.lastLocationUpdateTime && - this.lastUpdateTime == other.lastUpdateTime && - this.nextStop == other.nextStop && - this.nextStopTimeOffset == other.nextStopTimeOffset && - this.occupancyCapacity == other.occupancyCapacity && - this.occupancyCount == other.occupancyCount && - this.occupancyStatus == other.occupancyStatus && - this.orientation == other.orientation && - this.phase == other.phase && - this.position == other.position && - this.predicted == other.predicted && - this.scheduleDeviation == other.scheduleDeviation && - this.scheduledDistanceAlongTrip == other.scheduledDistanceAlongTrip && - this.serviceDate == other.serviceDate && - this.situationIds == other.situationIds && - this.status == other.status && - this.totalDistanceAlongTrip == other.totalDistanceAlongTrip && - this.vehicleId == other.vehicleId && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - activeTripId, - blockTripSequence, - closestStop, - closestStopTimeOffset, - distanceAlongTrip, - frequency, - lastKnownDistanceAlongTrip, - lastKnownLocation, - lastKnownOrientation, - lastLocationUpdateTime, - lastUpdateTime, - nextStop, - nextStopTimeOffset, - occupancyCapacity, - occupancyCount, - occupancyStatus, - orientation, - phase, - position, - predicted, - scheduleDeviation, - scheduledDistanceAlongTrip, - serviceDate, - situationIds, - status, - totalDistanceAlongTrip, - vehicleId, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "TripStatus{activeTripId=$activeTripId, blockTripSequence=$blockTripSequence, closestStop=$closestStop, closestStopTimeOffset=$closestStopTimeOffset, distanceAlongTrip=$distanceAlongTrip, frequency=$frequency, lastKnownDistanceAlongTrip=$lastKnownDistanceAlongTrip, lastKnownLocation=$lastKnownLocation, lastKnownOrientation=$lastKnownOrientation, lastLocationUpdateTime=$lastLocationUpdateTime, lastUpdateTime=$lastUpdateTime, nextStop=$nextStop, nextStopTimeOffset=$nextStopTimeOffset, occupancyCapacity=$occupancyCapacity, occupancyCount=$occupancyCount, occupancyStatus=$occupancyStatus, orientation=$orientation, phase=$phase, position=$position, predicted=$predicted, scheduleDeviation=$scheduleDeviation, scheduledDistanceAlongTrip=$scheduledDistanceAlongTrip, serviceDate=$serviceDate, situationIds=$situationIds, status=$status, totalDistanceAlongTrip=$totalDistanceAlongTrip, vehicleId=$vehicleId, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -2371,8 +2117,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - /** Latitude of the last known location of the transit vehicle. */ fun lat(): Optional = Optional.ofNullable(lat.getNullable("lat")) @@ -2399,32 +2143,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is LastKnownLocation && - this.lat == other.lat && - this.lon == other.lon && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - lat, - lon, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "LastKnownLocation{lat=$lat, lon=$lon, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -2482,6 +2200,34 @@ private constructor( additionalProperties.toUnmodifiable(), ) } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is LastKnownLocation && + this.lat == other.lat && + this.lon == other.lon && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + lat, + lon, + additionalProperties, + ) + } + return hashCode + } + + override fun toString() = + "LastKnownLocation{lat=$lat, lon=$lon, additionalProperties=$additionalProperties}" } /** Current position of the transit vehicle. */ @@ -2496,8 +2242,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - /** Latitude of the current position of the transit vehicle. */ fun lat(): Optional = Optional.ofNullable(lat.getNullable("lat")) @@ -2524,32 +2268,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is Position && - this.lat == other.lat && - this.lon == other.lon && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - lat, - lon, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "Position{lat=$lat, lon=$lon, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -2607,9 +2325,291 @@ private constructor( additionalProperties.toUnmodifiable(), ) } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is Position && + this.lat == other.lat && + this.lon == other.lon && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + lat, + lon, + additionalProperties, + ) + } + return hashCode + } + + override fun toString() = + "Position{lat=$lat, lon=$lon, additionalProperties=$additionalProperties}" + } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is TripStatus && + this.activeTripId == other.activeTripId && + this.blockTripSequence == other.blockTripSequence && + this.closestStop == other.closestStop && + this.closestStopTimeOffset == other.closestStopTimeOffset && + this.distanceAlongTrip == other.distanceAlongTrip && + this.frequency == other.frequency && + this.lastKnownDistanceAlongTrip == other.lastKnownDistanceAlongTrip && + this.lastKnownLocation == other.lastKnownLocation && + this.lastKnownOrientation == other.lastKnownOrientation && + this.lastLocationUpdateTime == other.lastLocationUpdateTime && + this.lastUpdateTime == other.lastUpdateTime && + this.nextStop == other.nextStop && + this.nextStopTimeOffset == other.nextStopTimeOffset && + this.occupancyCapacity == other.occupancyCapacity && + this.occupancyCount == other.occupancyCount && + this.occupancyStatus == other.occupancyStatus && + this.orientation == other.orientation && + this.phase == other.phase && + this.position == other.position && + this.predicted == other.predicted && + this.scheduleDeviation == other.scheduleDeviation && + this.scheduledDistanceAlongTrip == other.scheduledDistanceAlongTrip && + this.serviceDate == other.serviceDate && + this.situationIds == other.situationIds && + this.status == other.status && + this.totalDistanceAlongTrip == other.totalDistanceAlongTrip && + this.vehicleId == other.vehicleId && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + activeTripId, + blockTripSequence, + closestStop, + closestStopTimeOffset, + distanceAlongTrip, + frequency, + lastKnownDistanceAlongTrip, + lastKnownLocation, + lastKnownOrientation, + lastLocationUpdateTime, + lastUpdateTime, + nextStop, + nextStopTimeOffset, + occupancyCapacity, + occupancyCount, + occupancyStatus, + orientation, + phase, + position, + predicted, + scheduleDeviation, + scheduledDistanceAlongTrip, + serviceDate, + situationIds, + status, + totalDistanceAlongTrip, + vehicleId, + additionalProperties, + ) + } + return hashCode + } + + override fun toString() = + "TripStatus{activeTripId=$activeTripId, blockTripSequence=$blockTripSequence, closestStop=$closestStop, closestStopTimeOffset=$closestStopTimeOffset, distanceAlongTrip=$distanceAlongTrip, frequency=$frequency, lastKnownDistanceAlongTrip=$lastKnownDistanceAlongTrip, lastKnownLocation=$lastKnownLocation, lastKnownOrientation=$lastKnownOrientation, lastLocationUpdateTime=$lastLocationUpdateTime, lastUpdateTime=$lastUpdateTime, nextStop=$nextStop, nextStopTimeOffset=$nextStopTimeOffset, occupancyCapacity=$occupancyCapacity, occupancyCount=$occupancyCount, occupancyStatus=$occupancyStatus, orientation=$orientation, phase=$phase, position=$position, predicted=$predicted, scheduleDeviation=$scheduleDeviation, scheduledDistanceAlongTrip=$scheduledDistanceAlongTrip, serviceDate=$serviceDate, situationIds=$situationIds, status=$status, totalDistanceAlongTrip=$totalDistanceAlongTrip, vehicleId=$vehicleId, additionalProperties=$additionalProperties}" + } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is ArrivalsAndDeparture && + this.actualTrack == other.actualTrack && + this.arrivalEnabled == other.arrivalEnabled && + this.blockTripSequence == other.blockTripSequence && + this.departureEnabled == other.departureEnabled && + this.distanceFromStop == other.distanceFromStop && + this.frequency == other.frequency && + this.historicalOccupancy == other.historicalOccupancy && + this.lastUpdateTime == other.lastUpdateTime && + this.numberOfStopsAway == other.numberOfStopsAway && + this.occupancyStatus == other.occupancyStatus && + this.predicted == other.predicted && + this.predictedArrivalInterval == other.predictedArrivalInterval && + this.predictedArrivalTime == other.predictedArrivalTime && + this.predictedDepartureInterval == other.predictedDepartureInterval && + this.predictedDepartureTime == other.predictedDepartureTime && + this.predictedOccupancy == other.predictedOccupancy && + this.routeId == other.routeId && + this.routeLongName == other.routeLongName && + this.routeShortName == other.routeShortName && + this.scheduledArrivalInterval == other.scheduledArrivalInterval && + this.scheduledArrivalTime == other.scheduledArrivalTime && + this.scheduledDepartureInterval == other.scheduledDepartureInterval && + this.scheduledDepartureTime == other.scheduledDepartureTime && + this.scheduledTrack == other.scheduledTrack && + this.serviceDate == other.serviceDate && + this.situationIds == other.situationIds && + this.status == other.status && + this.stopId == other.stopId && + this.stopSequence == other.stopSequence && + this.totalStopsInTrip == other.totalStopsInTrip && + this.tripHeadsign == other.tripHeadsign && + this.tripId == other.tripId && + this.tripStatus == other.tripStatus && + this.vehicleId == other.vehicleId && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + actualTrack, + arrivalEnabled, + blockTripSequence, + departureEnabled, + distanceFromStop, + frequency, + historicalOccupancy, + lastUpdateTime, + numberOfStopsAway, + occupancyStatus, + predicted, + predictedArrivalInterval, + predictedArrivalTime, + predictedDepartureInterval, + predictedDepartureTime, + predictedOccupancy, + routeId, + routeLongName, + routeShortName, + scheduledArrivalInterval, + scheduledArrivalTime, + scheduledDepartureInterval, + scheduledDepartureTime, + scheduledTrack, + serviceDate, + situationIds, + status, + stopId, + stopSequence, + totalStopsInTrip, + tripHeadsign, + tripId, + tripStatus, + vehicleId, + additionalProperties, + ) } + return hashCode + } + + override fun toString() = + "ArrivalsAndDeparture{actualTrack=$actualTrack, arrivalEnabled=$arrivalEnabled, blockTripSequence=$blockTripSequence, departureEnabled=$departureEnabled, distanceFromStop=$distanceFromStop, frequency=$frequency, historicalOccupancy=$historicalOccupancy, lastUpdateTime=$lastUpdateTime, numberOfStopsAway=$numberOfStopsAway, occupancyStatus=$occupancyStatus, predicted=$predicted, predictedArrivalInterval=$predictedArrivalInterval, predictedArrivalTime=$predictedArrivalTime, predictedDepartureInterval=$predictedDepartureInterval, predictedDepartureTime=$predictedDepartureTime, predictedOccupancy=$predictedOccupancy, routeId=$routeId, routeLongName=$routeLongName, routeShortName=$routeShortName, scheduledArrivalInterval=$scheduledArrivalInterval, scheduledArrivalTime=$scheduledArrivalTime, scheduledDepartureInterval=$scheduledDepartureInterval, scheduledDepartureTime=$scheduledDepartureTime, scheduledTrack=$scheduledTrack, serviceDate=$serviceDate, situationIds=$situationIds, status=$status, stopId=$stopId, stopSequence=$stopSequence, totalStopsInTrip=$totalStopsInTrip, tripHeadsign=$tripHeadsign, tripId=$tripId, tripStatus=$tripStatus, vehicleId=$vehicleId, additionalProperties=$additionalProperties}" + } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is Entry && + this.arrivalsAndDepartures == other.arrivalsAndDepartures && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = Objects.hash(arrivalsAndDepartures, additionalProperties) } + return hashCode } + + override fun toString() = + "Entry{arrivalsAndDepartures=$arrivalsAndDepartures, additionalProperties=$additionalProperties}" } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is Data && + this.entry == other.entry && + this.references == other.references && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + entry, + references, + additionalProperties, + ) + } + return hashCode + } + + override fun toString() = + "Data{entry=$entry, references=$references, additionalProperties=$additionalProperties}" } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is ArrivalAndDepartureListResponse && + this.code == other.code && + this.currentTime == other.currentTime && + this.text == other.text && + this.version == other.version && + this.data == other.data && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + code, + currentTime, + text, + version, + data, + additionalProperties, + ) + } + return hashCode + } + + override fun toString() = + "ArrivalAndDepartureListResponse{code=$code, currentTime=$currentTime, text=$text, version=$version, data=$data, additionalProperties=$additionalProperties}" } diff --git a/onebusaway-sdk-java-core/src/main/kotlin/org/onebusaway/models/ArrivalAndDepartureRetrieveResponse.kt b/onebusaway-sdk-java-core/src/main/kotlin/org/onebusaway/models/ArrivalAndDepartureRetrieveResponse.kt index 213bc24..7e914d3 100644 --- a/onebusaway-sdk-java-core/src/main/kotlin/org/onebusaway/models/ArrivalAndDepartureRetrieveResponse.kt +++ b/onebusaway-sdk-java-core/src/main/kotlin/org/onebusaway/models/ArrivalAndDepartureRetrieveResponse.kt @@ -29,8 +29,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - fun code(): Long = code.getRequired("code") fun currentTime(): Long = currentTime.getRequired("currentTime") @@ -76,38 +74,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is ArrivalAndDepartureRetrieveResponse && - this.code == other.code && - this.currentTime == other.currentTime && - this.text == other.text && - this.version == other.version && - this.data == other.data && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - code, - currentTime, - text, - version, - data, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "ArrivalAndDepartureRetrieveResponse{code=$code, currentTime=$currentTime, text=$text, version=$version, data=$data, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -200,8 +166,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - fun entry(): Entry = entry.getRequired("entry") fun references(): References = references.getRequired("references") @@ -224,32 +188,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is Data && - this.entry == other.entry && - this.references == other.references && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - entry, - references, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "Data{entry=$entry, references=$references, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -347,8 +285,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - /** The actual track information of the arriving transit vehicle. */ fun actualTrack(): Optional = Optional.ofNullable(actualTrack.getNullable("actualTrack")) @@ -706,96 +642,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is Entry && - this.actualTrack == other.actualTrack && - this.arrivalEnabled == other.arrivalEnabled && - this.blockTripSequence == other.blockTripSequence && - this.departureEnabled == other.departureEnabled && - this.distanceFromStop == other.distanceFromStop && - this.frequency == other.frequency && - this.historicalOccupancy == other.historicalOccupancy && - this.lastUpdateTime == other.lastUpdateTime && - this.numberOfStopsAway == other.numberOfStopsAway && - this.occupancyStatus == other.occupancyStatus && - this.predicted == other.predicted && - this.predictedArrivalInterval == other.predictedArrivalInterval && - this.predictedArrivalTime == other.predictedArrivalTime && - this.predictedDepartureInterval == other.predictedDepartureInterval && - this.predictedDepartureTime == other.predictedDepartureTime && - this.predictedOccupancy == other.predictedOccupancy && - this.routeId == other.routeId && - this.routeLongName == other.routeLongName && - this.routeShortName == other.routeShortName && - this.scheduledArrivalInterval == other.scheduledArrivalInterval && - this.scheduledArrivalTime == other.scheduledArrivalTime && - this.scheduledDepartureInterval == other.scheduledDepartureInterval && - this.scheduledDepartureTime == other.scheduledDepartureTime && - this.scheduledTrack == other.scheduledTrack && - this.serviceDate == other.serviceDate && - this.situationIds == other.situationIds && - this.status == other.status && - this.stopId == other.stopId && - this.stopSequence == other.stopSequence && - this.totalStopsInTrip == other.totalStopsInTrip && - this.tripHeadsign == other.tripHeadsign && - this.tripId == other.tripId && - this.tripStatus == other.tripStatus && - this.vehicleId == other.vehicleId && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - actualTrack, - arrivalEnabled, - blockTripSequence, - departureEnabled, - distanceFromStop, - frequency, - historicalOccupancy, - lastUpdateTime, - numberOfStopsAway, - occupancyStatus, - predicted, - predictedArrivalInterval, - predictedArrivalTime, - predictedDepartureInterval, - predictedDepartureTime, - predictedOccupancy, - routeId, - routeLongName, - routeShortName, - scheduledArrivalInterval, - scheduledArrivalTime, - scheduledDepartureInterval, - scheduledDepartureTime, - scheduledTrack, - serviceDate, - situationIds, - status, - stopId, - stopSequence, - totalStopsInTrip, - tripHeadsign, - tripId, - tripStatus, - vehicleId, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "Entry{actualTrack=$actualTrack, arrivalEnabled=$arrivalEnabled, blockTripSequence=$blockTripSequence, departureEnabled=$departureEnabled, distanceFromStop=$distanceFromStop, frequency=$frequency, historicalOccupancy=$historicalOccupancy, lastUpdateTime=$lastUpdateTime, numberOfStopsAway=$numberOfStopsAway, occupancyStatus=$occupancyStatus, predicted=$predicted, predictedArrivalInterval=$predictedArrivalInterval, predictedArrivalTime=$predictedArrivalTime, predictedDepartureInterval=$predictedDepartureInterval, predictedDepartureTime=$predictedDepartureTime, predictedOccupancy=$predictedOccupancy, routeId=$routeId, routeLongName=$routeLongName, routeShortName=$routeShortName, scheduledArrivalInterval=$scheduledArrivalInterval, scheduledArrivalTime=$scheduledArrivalTime, scheduledDepartureInterval=$scheduledDepartureInterval, scheduledDepartureTime=$scheduledDepartureTime, scheduledTrack=$scheduledTrack, serviceDate=$serviceDate, situationIds=$situationIds, status=$status, stopId=$stopId, stopSequence=$stopSequence, totalStopsInTrip=$totalStopsInTrip, tripHeadsign=$tripHeadsign, tripId=$tripId, tripStatus=$tripStatus, vehicleId=$vehicleId, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -1368,8 +1214,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - /** Trip ID of the trip the vehicle is actively serving. */ fun activeTripId(): String = activeTripId.getRequired("activeTripId") @@ -1659,82 +1503,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is TripStatus && - this.activeTripId == other.activeTripId && - this.blockTripSequence == other.blockTripSequence && - this.closestStop == other.closestStop && - this.closestStopTimeOffset == other.closestStopTimeOffset && - this.distanceAlongTrip == other.distanceAlongTrip && - this.frequency == other.frequency && - this.lastKnownDistanceAlongTrip == other.lastKnownDistanceAlongTrip && - this.lastKnownLocation == other.lastKnownLocation && - this.lastKnownOrientation == other.lastKnownOrientation && - this.lastLocationUpdateTime == other.lastLocationUpdateTime && - this.lastUpdateTime == other.lastUpdateTime && - this.nextStop == other.nextStop && - this.nextStopTimeOffset == other.nextStopTimeOffset && - this.occupancyCapacity == other.occupancyCapacity && - this.occupancyCount == other.occupancyCount && - this.occupancyStatus == other.occupancyStatus && - this.orientation == other.orientation && - this.phase == other.phase && - this.position == other.position && - this.predicted == other.predicted && - this.scheduleDeviation == other.scheduleDeviation && - this.scheduledDistanceAlongTrip == other.scheduledDistanceAlongTrip && - this.serviceDate == other.serviceDate && - this.situationIds == other.situationIds && - this.status == other.status && - this.totalDistanceAlongTrip == other.totalDistanceAlongTrip && - this.vehicleId == other.vehicleId && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - activeTripId, - blockTripSequence, - closestStop, - closestStopTimeOffset, - distanceAlongTrip, - frequency, - lastKnownDistanceAlongTrip, - lastKnownLocation, - lastKnownOrientation, - lastLocationUpdateTime, - lastUpdateTime, - nextStop, - nextStopTimeOffset, - occupancyCapacity, - occupancyCount, - occupancyStatus, - orientation, - phase, - position, - predicted, - scheduleDeviation, - scheduledDistanceAlongTrip, - serviceDate, - situationIds, - status, - totalDistanceAlongTrip, - vehicleId, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "TripStatus{activeTripId=$activeTripId, blockTripSequence=$blockTripSequence, closestStop=$closestStop, closestStopTimeOffset=$closestStopTimeOffset, distanceAlongTrip=$distanceAlongTrip, frequency=$frequency, lastKnownDistanceAlongTrip=$lastKnownDistanceAlongTrip, lastKnownLocation=$lastKnownLocation, lastKnownOrientation=$lastKnownOrientation, lastLocationUpdateTime=$lastLocationUpdateTime, lastUpdateTime=$lastUpdateTime, nextStop=$nextStop, nextStopTimeOffset=$nextStopTimeOffset, occupancyCapacity=$occupancyCapacity, occupancyCount=$occupancyCount, occupancyStatus=$occupancyStatus, orientation=$orientation, phase=$phase, position=$position, predicted=$predicted, scheduleDeviation=$scheduleDeviation, scheduledDistanceAlongTrip=$scheduledDistanceAlongTrip, serviceDate=$serviceDate, situationIds=$situationIds, status=$status, totalDistanceAlongTrip=$totalDistanceAlongTrip, vehicleId=$vehicleId, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -2196,8 +1964,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - /** Latitude of the last known location of the transit vehicle. */ fun lat(): Optional = Optional.ofNullable(lat.getNullable("lat")) @@ -2224,38 +1990,12 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } + companion object { - return other is LastKnownLocation && - this.lat == other.lat && - this.lon == other.lon && - this.additionalProperties == other.additionalProperties + @JvmStatic fun builder() = Builder() } - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - lat, - lon, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "LastKnownLocation{lat=$lat, lon=$lon, additionalProperties=$additionalProperties}" - - companion object { - - @JvmStatic fun builder() = Builder() - } - - class Builder { + class Builder { private var lat: JsonField = JsonMissing.of() private var lon: JsonField = JsonMissing.of() @@ -2307,6 +2047,34 @@ private constructor( additionalProperties.toUnmodifiable(), ) } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is LastKnownLocation && + this.lat == other.lat && + this.lon == other.lon && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + lat, + lon, + additionalProperties, + ) + } + return hashCode + } + + override fun toString() = + "LastKnownLocation{lat=$lat, lon=$lon, additionalProperties=$additionalProperties}" } /** Current position of the transit vehicle. */ @@ -2321,8 +2089,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - /** Latitude of the current position of the transit vehicle. */ fun lat(): Optional = Optional.ofNullable(lat.getNullable("lat")) @@ -2349,32 +2115,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is Position && - this.lat == other.lat && - this.lon == other.lon && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - lat, - lon, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "Position{lat=$lat, lon=$lon, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -2432,8 +2172,268 @@ private constructor( additionalProperties.toUnmodifiable(), ) } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is Position && + this.lat == other.lat && + this.lon == other.lon && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + lat, + lon, + additionalProperties, + ) + } + return hashCode + } + + override fun toString() = + "Position{lat=$lat, lon=$lon, additionalProperties=$additionalProperties}" + } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is TripStatus && + this.activeTripId == other.activeTripId && + this.blockTripSequence == other.blockTripSequence && + this.closestStop == other.closestStop && + this.closestStopTimeOffset == other.closestStopTimeOffset && + this.distanceAlongTrip == other.distanceAlongTrip && + this.frequency == other.frequency && + this.lastKnownDistanceAlongTrip == other.lastKnownDistanceAlongTrip && + this.lastKnownLocation == other.lastKnownLocation && + this.lastKnownOrientation == other.lastKnownOrientation && + this.lastLocationUpdateTime == other.lastLocationUpdateTime && + this.lastUpdateTime == other.lastUpdateTime && + this.nextStop == other.nextStop && + this.nextStopTimeOffset == other.nextStopTimeOffset && + this.occupancyCapacity == other.occupancyCapacity && + this.occupancyCount == other.occupancyCount && + this.occupancyStatus == other.occupancyStatus && + this.orientation == other.orientation && + this.phase == other.phase && + this.position == other.position && + this.predicted == other.predicted && + this.scheduleDeviation == other.scheduleDeviation && + this.scheduledDistanceAlongTrip == other.scheduledDistanceAlongTrip && + this.serviceDate == other.serviceDate && + this.situationIds == other.situationIds && + this.status == other.status && + this.totalDistanceAlongTrip == other.totalDistanceAlongTrip && + this.vehicleId == other.vehicleId && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + activeTripId, + blockTripSequence, + closestStop, + closestStopTimeOffset, + distanceAlongTrip, + frequency, + lastKnownDistanceAlongTrip, + lastKnownLocation, + lastKnownOrientation, + lastLocationUpdateTime, + lastUpdateTime, + nextStop, + nextStopTimeOffset, + occupancyCapacity, + occupancyCount, + occupancyStatus, + orientation, + phase, + position, + predicted, + scheduleDeviation, + scheduledDistanceAlongTrip, + serviceDate, + situationIds, + status, + totalDistanceAlongTrip, + vehicleId, + additionalProperties, + ) + } + return hashCode } + + override fun toString() = + "TripStatus{activeTripId=$activeTripId, blockTripSequence=$blockTripSequence, closestStop=$closestStop, closestStopTimeOffset=$closestStopTimeOffset, distanceAlongTrip=$distanceAlongTrip, frequency=$frequency, lastKnownDistanceAlongTrip=$lastKnownDistanceAlongTrip, lastKnownLocation=$lastKnownLocation, lastKnownOrientation=$lastKnownOrientation, lastLocationUpdateTime=$lastLocationUpdateTime, lastUpdateTime=$lastUpdateTime, nextStop=$nextStop, nextStopTimeOffset=$nextStopTimeOffset, occupancyCapacity=$occupancyCapacity, occupancyCount=$occupancyCount, occupancyStatus=$occupancyStatus, orientation=$orientation, phase=$phase, position=$position, predicted=$predicted, scheduleDeviation=$scheduleDeviation, scheduledDistanceAlongTrip=$scheduledDistanceAlongTrip, serviceDate=$serviceDate, situationIds=$situationIds, status=$status, totalDistanceAlongTrip=$totalDistanceAlongTrip, vehicleId=$vehicleId, additionalProperties=$additionalProperties}" + } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is Entry && + this.actualTrack == other.actualTrack && + this.arrivalEnabled == other.arrivalEnabled && + this.blockTripSequence == other.blockTripSequence && + this.departureEnabled == other.departureEnabled && + this.distanceFromStop == other.distanceFromStop && + this.frequency == other.frequency && + this.historicalOccupancy == other.historicalOccupancy && + this.lastUpdateTime == other.lastUpdateTime && + this.numberOfStopsAway == other.numberOfStopsAway && + this.occupancyStatus == other.occupancyStatus && + this.predicted == other.predicted && + this.predictedArrivalInterval == other.predictedArrivalInterval && + this.predictedArrivalTime == other.predictedArrivalTime && + this.predictedDepartureInterval == other.predictedDepartureInterval && + this.predictedDepartureTime == other.predictedDepartureTime && + this.predictedOccupancy == other.predictedOccupancy && + this.routeId == other.routeId && + this.routeLongName == other.routeLongName && + this.routeShortName == other.routeShortName && + this.scheduledArrivalInterval == other.scheduledArrivalInterval && + this.scheduledArrivalTime == other.scheduledArrivalTime && + this.scheduledDepartureInterval == other.scheduledDepartureInterval && + this.scheduledDepartureTime == other.scheduledDepartureTime && + this.scheduledTrack == other.scheduledTrack && + this.serviceDate == other.serviceDate && + this.situationIds == other.situationIds && + this.status == other.status && + this.stopId == other.stopId && + this.stopSequence == other.stopSequence && + this.totalStopsInTrip == other.totalStopsInTrip && + this.tripHeadsign == other.tripHeadsign && + this.tripId == other.tripId && + this.tripStatus == other.tripStatus && + this.vehicleId == other.vehicleId && + this.additionalProperties == other.additionalProperties } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + actualTrack, + arrivalEnabled, + blockTripSequence, + departureEnabled, + distanceFromStop, + frequency, + historicalOccupancy, + lastUpdateTime, + numberOfStopsAway, + occupancyStatus, + predicted, + predictedArrivalInterval, + predictedArrivalTime, + predictedDepartureInterval, + predictedDepartureTime, + predictedOccupancy, + routeId, + routeLongName, + routeShortName, + scheduledArrivalInterval, + scheduledArrivalTime, + scheduledDepartureInterval, + scheduledDepartureTime, + scheduledTrack, + serviceDate, + situationIds, + status, + stopId, + stopSequence, + totalStopsInTrip, + tripHeadsign, + tripId, + tripStatus, + vehicleId, + additionalProperties, + ) + } + return hashCode + } + + override fun toString() = + "Entry{actualTrack=$actualTrack, arrivalEnabled=$arrivalEnabled, blockTripSequence=$blockTripSequence, departureEnabled=$departureEnabled, distanceFromStop=$distanceFromStop, frequency=$frequency, historicalOccupancy=$historicalOccupancy, lastUpdateTime=$lastUpdateTime, numberOfStopsAway=$numberOfStopsAway, occupancyStatus=$occupancyStatus, predicted=$predicted, predictedArrivalInterval=$predictedArrivalInterval, predictedArrivalTime=$predictedArrivalTime, predictedDepartureInterval=$predictedDepartureInterval, predictedDepartureTime=$predictedDepartureTime, predictedOccupancy=$predictedOccupancy, routeId=$routeId, routeLongName=$routeLongName, routeShortName=$routeShortName, scheduledArrivalInterval=$scheduledArrivalInterval, scheduledArrivalTime=$scheduledArrivalTime, scheduledDepartureInterval=$scheduledDepartureInterval, scheduledDepartureTime=$scheduledDepartureTime, scheduledTrack=$scheduledTrack, serviceDate=$serviceDate, situationIds=$situationIds, status=$status, stopId=$stopId, stopSequence=$stopSequence, totalStopsInTrip=$totalStopsInTrip, tripHeadsign=$tripHeadsign, tripId=$tripId, tripStatus=$tripStatus, vehicleId=$vehicleId, additionalProperties=$additionalProperties}" } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is Data && + this.entry == other.entry && + this.references == other.references && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + entry, + references, + additionalProperties, + ) + } + return hashCode + } + + override fun toString() = + "Data{entry=$entry, references=$references, additionalProperties=$additionalProperties}" + } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is ArrivalAndDepartureRetrieveResponse && + this.code == other.code && + this.currentTime == other.currentTime && + this.text == other.text && + this.version == other.version && + this.data == other.data && + this.additionalProperties == other.additionalProperties } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + code, + currentTime, + text, + version, + data, + additionalProperties, + ) + } + return hashCode + } + + override fun toString() = + "ArrivalAndDepartureRetrieveResponse{code=$code, currentTime=$currentTime, text=$text, version=$version, data=$data, additionalProperties=$additionalProperties}" } diff --git a/onebusaway-sdk-java-core/src/main/kotlin/org/onebusaway/models/BlockRetrieveResponse.kt b/onebusaway-sdk-java-core/src/main/kotlin/org/onebusaway/models/BlockRetrieveResponse.kt index 3f3e42d..34a9405 100644 --- a/onebusaway-sdk-java-core/src/main/kotlin/org/onebusaway/models/BlockRetrieveResponse.kt +++ b/onebusaway-sdk-java-core/src/main/kotlin/org/onebusaway/models/BlockRetrieveResponse.kt @@ -29,8 +29,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - fun code(): Long = code.getRequired("code") fun currentTime(): Long = currentTime.getRequired("currentTime") @@ -76,38 +74,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is BlockRetrieveResponse && - this.code == other.code && - this.currentTime == other.currentTime && - this.text == other.text && - this.version == other.version && - this.data == other.data && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - code, - currentTime, - text, - version, - data, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "BlockRetrieveResponse{code=$code, currentTime=$currentTime, text=$text, version=$version, data=$data, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -198,8 +164,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - fun entry(): Entry = entry.getRequired("entry") fun references(): References = references.getRequired("references") @@ -222,32 +186,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is Data && - this.entry == other.entry && - this.references == other.references && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - entry, - references, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "Data{entry=$entry, references=$references, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -313,8 +251,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - fun id(): String = id.getRequired("id") fun configurations(): List = configurations.getRequired("configurations") @@ -337,32 +273,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is Entry && - this.id == other.id && - this.configurations == other.configurations && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - id, - configurations, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "Entry{id=$id, configurations=$configurations, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -431,8 +341,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - fun activeServiceIds(): List = activeServiceIds.getRequired("activeServiceIds") @@ -466,34 +374,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is Configuration && - this.activeServiceIds == other.activeServiceIds && - this.inactiveServiceIds == other.inactiveServiceIds && - this.trips == other.trips && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - activeServiceIds, - inactiveServiceIds, - trips, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "Configuration{activeServiceIds=$activeServiceIds, inactiveServiceIds=$inactiveServiceIds, trips=$trips, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -575,8 +455,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - fun tripId(): String = tripId.getRequired("tripId") fun distanceAlongBlock(): Double = @@ -618,36 +496,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is Trip && - this.tripId == other.tripId && - this.distanceAlongBlock == other.distanceAlongBlock && - this.accumulatedSlackTime == other.accumulatedSlackTime && - this.blockStopTimes == other.blockStopTimes && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - tripId, - distanceAlongBlock, - accumulatedSlackTime, - blockStopTimes, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "Trip{tripId=$tripId, distanceAlongBlock=$distanceAlongBlock, accumulatedSlackTime=$accumulatedSlackTime, blockStopTimes=$blockStopTimes, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -743,8 +591,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - fun blockSequence(): Long = blockSequence.getRequired("blockSequence") fun distanceAlongBlock(): Double = @@ -785,36 +631,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is BlockStopTime && - this.blockSequence == other.blockSequence && - this.distanceAlongBlock == other.distanceAlongBlock && - this.accumulatedSlackTime == other.accumulatedSlackTime && - this.stopTime == other.stopTime && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - blockSequence, - distanceAlongBlock, - accumulatedSlackTime, - stopTime, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "BlockStopTime{blockSequence=$blockSequence, distanceAlongBlock=$distanceAlongBlock, accumulatedSlackTime=$accumulatedSlackTime, stopTime=$stopTime, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -913,8 +729,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - fun stopId(): String = stopId.getRequired("stopId") fun arrivalTime(): Long = arrivalTime.getRequired("arrivalTime") @@ -963,38 +777,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is StopTime && - this.stopId == other.stopId && - this.arrivalTime == other.arrivalTime && - this.departureTime == other.departureTime && - this.pickupType == other.pickupType && - this.dropOffType == other.dropOffType && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - stopId, - arrivalTime, - departureTime, - pickupType, - dropOffType, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "StopTime{stopId=$stopId, arrivalTime=$arrivalTime, departureTime=$departureTime, pickupType=$pickupType, dropOffType=$dropOffType, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -1090,10 +872,228 @@ private constructor( additionalProperties.toUnmodifiable(), ) } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is StopTime && + this.stopId == other.stopId && + this.arrivalTime == other.arrivalTime && + this.departureTime == other.departureTime && + this.pickupType == other.pickupType && + this.dropOffType == other.dropOffType && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + stopId, + arrivalTime, + departureTime, + pickupType, + dropOffType, + additionalProperties, + ) + } + return hashCode + } + + override fun toString() = + "StopTime{stopId=$stopId, arrivalTime=$arrivalTime, departureTime=$departureTime, pickupType=$pickupType, dropOffType=$dropOffType, additionalProperties=$additionalProperties}" } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is BlockStopTime && + this.blockSequence == other.blockSequence && + this.distanceAlongBlock == other.distanceAlongBlock && + this.accumulatedSlackTime == other.accumulatedSlackTime && + this.stopTime == other.stopTime && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + blockSequence, + distanceAlongBlock, + accumulatedSlackTime, + stopTime, + additionalProperties, + ) + } + return hashCode + } + + override fun toString() = + "BlockStopTime{blockSequence=$blockSequence, distanceAlongBlock=$distanceAlongBlock, accumulatedSlackTime=$accumulatedSlackTime, stopTime=$stopTime, additionalProperties=$additionalProperties}" + } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is Trip && + this.tripId == other.tripId && + this.distanceAlongBlock == other.distanceAlongBlock && + this.accumulatedSlackTime == other.accumulatedSlackTime && + this.blockStopTimes == other.blockStopTimes && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + tripId, + distanceAlongBlock, + accumulatedSlackTime, + blockStopTimes, + additionalProperties, + ) + } + return hashCode + } + + override fun toString() = + "Trip{tripId=$tripId, distanceAlongBlock=$distanceAlongBlock, accumulatedSlackTime=$accumulatedSlackTime, blockStopTimes=$blockStopTimes, additionalProperties=$additionalProperties}" + } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is Configuration && + this.activeServiceIds == other.activeServiceIds && + this.inactiveServiceIds == other.inactiveServiceIds && + this.trips == other.trips && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + activeServiceIds, + inactiveServiceIds, + trips, + additionalProperties, + ) } + return hashCode } + + override fun toString() = + "Configuration{activeServiceIds=$activeServiceIds, inactiveServiceIds=$inactiveServiceIds, trips=$trips, additionalProperties=$additionalProperties}" } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is Entry && + this.id == other.id && + this.configurations == other.configurations && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + id, + configurations, + additionalProperties, + ) + } + return hashCode + } + + override fun toString() = + "Entry{id=$id, configurations=$configurations, additionalProperties=$additionalProperties}" } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is Data && + this.entry == other.entry && + this.references == other.references && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + entry, + references, + additionalProperties, + ) + } + return hashCode + } + + override fun toString() = + "Data{entry=$entry, references=$references, additionalProperties=$additionalProperties}" + } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is BlockRetrieveResponse && + this.code == other.code && + this.currentTime == other.currentTime && + this.text == other.text && + this.version == other.version && + this.data == other.data && + this.additionalProperties == other.additionalProperties } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + code, + currentTime, + text, + version, + data, + additionalProperties, + ) + } + return hashCode + } + + override fun toString() = + "BlockRetrieveResponse{code=$code, currentTime=$currentTime, text=$text, version=$version, data=$data, additionalProperties=$additionalProperties}" } diff --git a/onebusaway-sdk-java-core/src/main/kotlin/org/onebusaway/models/ConfigRetrieveResponse.kt b/onebusaway-sdk-java-core/src/main/kotlin/org/onebusaway/models/ConfigRetrieveResponse.kt index f1443dd..e2256f4 100644 --- a/onebusaway-sdk-java-core/src/main/kotlin/org/onebusaway/models/ConfigRetrieveResponse.kt +++ b/onebusaway-sdk-java-core/src/main/kotlin/org/onebusaway/models/ConfigRetrieveResponse.kt @@ -29,8 +29,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - fun code(): Long = code.getRequired("code") fun currentTime(): Long = currentTime.getRequired("currentTime") @@ -76,38 +74,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is ConfigRetrieveResponse && - this.code == other.code && - this.currentTime == other.currentTime && - this.text == other.text && - this.version == other.version && - this.data == other.data && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - code, - currentTime, - text, - version, - data, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "ConfigRetrieveResponse{code=$code, currentTime=$currentTime, text=$text, version=$version, data=$data, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -198,8 +164,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - fun entry(): Entry = entry.getRequired("entry") fun references(): References = references.getRequired("references") @@ -222,32 +186,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is Data && - this.entry == other.entry && - this.references == other.references && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - entry, - references, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "Data{entry=$entry, references=$references, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -316,8 +254,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - fun gitProperties(): Optional = Optional.ofNullable(gitProperties.getNullable("gitProperties")) @@ -360,38 +296,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is Entry && - this.gitProperties == other.gitProperties && - this.id == other.id && - this.name == other.name && - this.serviceDateFrom == other.serviceDateFrom && - this.serviceDateTo == other.serviceDateTo && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - gitProperties, - id, - name, - serviceDateFrom, - serviceDateTo, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "Entry{gitProperties=$gitProperties, id=$id, name=$name, serviceDateFrom=$serviceDateFrom, serviceDateTo=$serviceDateTo, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -510,8 +414,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - fun gitBranch(): Optional = Optional.ofNullable(gitBranch.getNullable("git.branch")) @@ -678,68 +580,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is GitProperties && - this.gitBranch == other.gitBranch && - this.gitBuildHost == other.gitBuildHost && - this.gitBuildTime == other.gitBuildTime && - this.gitBuildUserEmail == other.gitBuildUserEmail && - this.gitBuildUserName == other.gitBuildUserName && - this.gitBuildVersion == other.gitBuildVersion && - this.gitClosestTagCommitCount == other.gitClosestTagCommitCount && - this.gitClosestTagName == other.gitClosestTagName && - this.gitCommitId == other.gitCommitId && - this.gitCommitIdAbbrev == other.gitCommitIdAbbrev && - this.gitCommitIdDescribe == other.gitCommitIdDescribe && - this.gitCommitIdDescribeShort == other.gitCommitIdDescribeShort && - this.gitCommitMessageFull == other.gitCommitMessageFull && - this.gitCommitMessageShort == other.gitCommitMessageShort && - this.gitCommitTime == other.gitCommitTime && - this.gitCommitUserEmail == other.gitCommitUserEmail && - this.gitCommitUserName == other.gitCommitUserName && - this.gitDirty == other.gitDirty && - this.gitRemoteOriginUrl == other.gitRemoteOriginUrl && - this.gitTags == other.gitTags && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - gitBranch, - gitBuildHost, - gitBuildTime, - gitBuildUserEmail, - gitBuildUserName, - gitBuildVersion, - gitClosestTagCommitCount, - gitClosestTagName, - gitCommitId, - gitCommitIdAbbrev, - gitCommitIdDescribe, - gitCommitIdDescribeShort, - gitCommitMessageFull, - gitCommitMessageShort, - gitCommitTime, - gitCommitUserEmail, - gitCommitUserName, - gitDirty, - gitRemoteOriginUrl, - gitTags, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "GitProperties{gitBranch=$gitBranch, gitBuildHost=$gitBuildHost, gitBuildTime=$gitBuildTime, gitBuildUserEmail=$gitBuildUserEmail, gitBuildUserName=$gitBuildUserName, gitBuildVersion=$gitBuildVersion, gitClosestTagCommitCount=$gitClosestTagCommitCount, gitClosestTagName=$gitClosestTagName, gitCommitId=$gitCommitId, gitCommitIdAbbrev=$gitCommitIdAbbrev, gitCommitIdDescribe=$gitCommitIdDescribe, gitCommitIdDescribeShort=$gitCommitIdDescribeShort, gitCommitMessageFull=$gitCommitMessageFull, gitCommitMessageShort=$gitCommitMessageShort, gitCommitTime=$gitCommitTime, gitCommitUserEmail=$gitCommitUserEmail, gitCommitUserName=$gitCommitUserName, gitDirty=$gitDirty, gitRemoteOriginUrl=$gitRemoteOriginUrl, gitTags=$gitTags, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -1008,7 +848,167 @@ private constructor( additionalProperties.toUnmodifiable(), ) } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is GitProperties && + this.gitBranch == other.gitBranch && + this.gitBuildHost == other.gitBuildHost && + this.gitBuildTime == other.gitBuildTime && + this.gitBuildUserEmail == other.gitBuildUserEmail && + this.gitBuildUserName == other.gitBuildUserName && + this.gitBuildVersion == other.gitBuildVersion && + this.gitClosestTagCommitCount == other.gitClosestTagCommitCount && + this.gitClosestTagName == other.gitClosestTagName && + this.gitCommitId == other.gitCommitId && + this.gitCommitIdAbbrev == other.gitCommitIdAbbrev && + this.gitCommitIdDescribe == other.gitCommitIdDescribe && + this.gitCommitIdDescribeShort == other.gitCommitIdDescribeShort && + this.gitCommitMessageFull == other.gitCommitMessageFull && + this.gitCommitMessageShort == other.gitCommitMessageShort && + this.gitCommitTime == other.gitCommitTime && + this.gitCommitUserEmail == other.gitCommitUserEmail && + this.gitCommitUserName == other.gitCommitUserName && + this.gitDirty == other.gitDirty && + this.gitRemoteOriginUrl == other.gitRemoteOriginUrl && + this.gitTags == other.gitTags && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + gitBranch, + gitBuildHost, + gitBuildTime, + gitBuildUserEmail, + gitBuildUserName, + gitBuildVersion, + gitClosestTagCommitCount, + gitClosestTagName, + gitCommitId, + gitCommitIdAbbrev, + gitCommitIdDescribe, + gitCommitIdDescribeShort, + gitCommitMessageFull, + gitCommitMessageShort, + gitCommitTime, + gitCommitUserEmail, + gitCommitUserName, + gitDirty, + gitRemoteOriginUrl, + gitTags, + additionalProperties, + ) + } + return hashCode + } + + override fun toString() = + "GitProperties{gitBranch=$gitBranch, gitBuildHost=$gitBuildHost, gitBuildTime=$gitBuildTime, gitBuildUserEmail=$gitBuildUserEmail, gitBuildUserName=$gitBuildUserName, gitBuildVersion=$gitBuildVersion, gitClosestTagCommitCount=$gitClosestTagCommitCount, gitClosestTagName=$gitClosestTagName, gitCommitId=$gitCommitId, gitCommitIdAbbrev=$gitCommitIdAbbrev, gitCommitIdDescribe=$gitCommitIdDescribe, gitCommitIdDescribeShort=$gitCommitIdDescribeShort, gitCommitMessageFull=$gitCommitMessageFull, gitCommitMessageShort=$gitCommitMessageShort, gitCommitTime=$gitCommitTime, gitCommitUserEmail=$gitCommitUserEmail, gitCommitUserName=$gitCommitUserName, gitDirty=$gitDirty, gitRemoteOriginUrl=$gitRemoteOriginUrl, gitTags=$gitTags, additionalProperties=$additionalProperties}" + } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is Entry && + this.gitProperties == other.gitProperties && + this.id == other.id && + this.name == other.name && + this.serviceDateFrom == other.serviceDateFrom && + this.serviceDateTo == other.serviceDateTo && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + gitProperties, + id, + name, + serviceDateFrom, + serviceDateTo, + additionalProperties, + ) + } + return hashCode + } + + override fun toString() = + "Entry{gitProperties=$gitProperties, id=$id, name=$name, serviceDateFrom=$serviceDateFrom, serviceDateTo=$serviceDateTo, additionalProperties=$additionalProperties}" + } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is Data && + this.entry == other.entry && + this.references == other.references && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + entry, + references, + additionalProperties, + ) } + return hashCode + } + + override fun toString() = + "Data{entry=$entry, references=$references, additionalProperties=$additionalProperties}" + } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is ConfigRetrieveResponse && + this.code == other.code && + this.currentTime == other.currentTime && + this.text == other.text && + this.version == other.version && + this.data == other.data && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + code, + currentTime, + text, + version, + data, + additionalProperties, + ) } + return hashCode } + + override fun toString() = + "ConfigRetrieveResponse{code=$code, currentTime=$currentTime, text=$text, version=$version, data=$data, additionalProperties=$additionalProperties}" } diff --git a/onebusaway-sdk-java-core/src/main/kotlin/org/onebusaway/models/CurrentTimeRetrieveResponse.kt b/onebusaway-sdk-java-core/src/main/kotlin/org/onebusaway/models/CurrentTimeRetrieveResponse.kt index dc7ebd8..578c052 100644 --- a/onebusaway-sdk-java-core/src/main/kotlin/org/onebusaway/models/CurrentTimeRetrieveResponse.kt +++ b/onebusaway-sdk-java-core/src/main/kotlin/org/onebusaway/models/CurrentTimeRetrieveResponse.kt @@ -29,8 +29,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - fun code(): Long = code.getRequired("code") fun currentTime(): Long = currentTime.getRequired("currentTime") @@ -76,38 +74,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is CurrentTimeRetrieveResponse && - this.code == other.code && - this.currentTime == other.currentTime && - this.text == other.text && - this.version == other.version && - this.data == other.data && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - code, - currentTime, - text, - version, - data, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "CurrentTimeRetrieveResponse{code=$code, currentTime=$currentTime, text=$text, version=$version, data=$data, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -198,8 +164,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - fun entry(): Entry = entry.getRequired("entry") fun references(): References = references.getRequired("references") @@ -222,32 +186,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is Data && - this.entry == other.entry && - this.references == other.references && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - entry, - references, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "Data{entry=$entry, references=$references, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -313,8 +251,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - fun readableTime(): Optional = Optional.ofNullable(readableTime.getNullable("readableTime")) @@ -338,32 +274,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is Entry && - this.readableTime == other.readableTime && - this.time == other.time && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - readableTime, - time, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "Entry{readableTime=$readableTime, time=$time, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -418,6 +328,96 @@ private constructor( additionalProperties.toUnmodifiable(), ) } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is Entry && + this.readableTime == other.readableTime && + this.time == other.time && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + readableTime, + time, + additionalProperties, + ) + } + return hashCode + } + + override fun toString() = + "Entry{readableTime=$readableTime, time=$time, additionalProperties=$additionalProperties}" + } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is Data && + this.entry == other.entry && + this.references == other.references && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + entry, + references, + additionalProperties, + ) + } + return hashCode } + + override fun toString() = + "Data{entry=$entry, references=$references, additionalProperties=$additionalProperties}" } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is CurrentTimeRetrieveResponse && + this.code == other.code && + this.currentTime == other.currentTime && + this.text == other.text && + this.version == other.version && + this.data == other.data && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + code, + currentTime, + text, + version, + data, + additionalProperties, + ) + } + return hashCode + } + + override fun toString() = + "CurrentTimeRetrieveResponse{code=$code, currentTime=$currentTime, text=$text, version=$version, data=$data, additionalProperties=$additionalProperties}" } diff --git a/onebusaway-sdk-java-core/src/main/kotlin/org/onebusaway/models/References.kt b/onebusaway-sdk-java-core/src/main/kotlin/org/onebusaway/models/References.kt index 6457db7..b721ae1 100644 --- a/onebusaway-sdk-java-core/src/main/kotlin/org/onebusaway/models/References.kt +++ b/onebusaway-sdk-java-core/src/main/kotlin/org/onebusaway/models/References.kt @@ -33,8 +33,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - fun agencies(): List = agencies.getRequired("agencies") fun routes(): List = routes.getRequired("routes") @@ -77,40 +75,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is References && - this.agencies == other.agencies && - this.routes == other.routes && - this.situations == other.situations && - this.stopTimes == other.stopTimes && - this.stops == other.stops && - this.trips == other.trips && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - agencies, - routes, - situations, - stopTimes, - stops, - trips, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "References{agencies=$agencies, routes=$routes, situations=$situations, stopTimes=$stopTimes, stops=$stops, trips=$trips, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -220,8 +184,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - fun disclaimer(): Optional = Optional.ofNullable(disclaimer.getNullable("disclaimer")) @@ -286,48 +248,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is Agency && - this.disclaimer == other.disclaimer && - this.email == other.email && - this.fareUrl == other.fareUrl && - this.id == other.id && - this.lang == other.lang && - this.name == other.name && - this.phone == other.phone && - this.privateService == other.privateService && - this.timezone == other.timezone && - this.url == other.url && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - disclaimer, - email, - fareUrl, - id, - lang, - name, - phone, - privateService, - timezone, - url, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "Agency{disclaimer=$disclaimer, email=$email, fareUrl=$fareUrl, id=$id, lang=$lang, name=$name, phone=$phone, privateService=$privateService, timezone=$timezone, url=$url, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -454,6 +374,50 @@ private constructor( additionalProperties.toUnmodifiable(), ) } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is Agency && + this.disclaimer == other.disclaimer && + this.email == other.email && + this.fareUrl == other.fareUrl && + this.id == other.id && + this.lang == other.lang && + this.name == other.name && + this.phone == other.phone && + this.privateService == other.privateService && + this.timezone == other.timezone && + this.url == other.url && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + disclaimer, + email, + fareUrl, + id, + lang, + name, + phone, + privateService, + timezone, + url, + additionalProperties, + ) + } + return hashCode + } + + override fun toString() = + "Agency{disclaimer=$disclaimer, email=$email, fareUrl=$fareUrl, id=$id, lang=$lang, name=$name, phone=$phone, privateService=$privateService, timezone=$timezone, url=$url, additionalProperties=$additionalProperties}" } @JsonDeserialize(builder = Route.Builder::class) @@ -475,8 +439,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - fun agencyId(): String = agencyId.getRequired("agencyId") fun color(): Optional = Optional.ofNullable(color.getNullable("color")) @@ -543,48 +505,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is Route && - this.agencyId == other.agencyId && - this.color == other.color && - this.description == other.description && - this.id == other.id && - this.longName == other.longName && - this.nullSafeShortName == other.nullSafeShortName && - this.shortName == other.shortName && - this.textColor == other.textColor && - this.type == other.type && - this.url == other.url && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - agencyId, - color, - description, - id, - longName, - nullSafeShortName, - shortName, - textColor, - type, - url, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "Route{agencyId=$agencyId, color=$color, description=$description, id=$id, longName=$longName, nullSafeShortName=$nullSafeShortName, shortName=$shortName, textColor=$textColor, type=$type, url=$url, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -713,6 +633,50 @@ private constructor( additionalProperties.toUnmodifiable(), ) } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is Route && + this.agencyId == other.agencyId && + this.color == other.color && + this.description == other.description && + this.id == other.id && + this.longName == other.longName && + this.nullSafeShortName == other.nullSafeShortName && + this.shortName == other.shortName && + this.textColor == other.textColor && + this.type == other.type && + this.url == other.url && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + agencyId, + color, + description, + id, + longName, + nullSafeShortName, + shortName, + textColor, + type, + url, + additionalProperties, + ) + } + return hashCode + } + + override fun toString() = + "Route{agencyId=$agencyId, color=$color, description=$description, id=$id, longName=$longName, nullSafeShortName=$nullSafeShortName, shortName=$shortName, textColor=$textColor, type=$type, url=$url, additionalProperties=$additionalProperties}" } @JsonDeserialize(builder = Situation.Builder::class) @@ -736,8 +700,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - /** Unique identifier for the situation. */ fun id(): String = id.getRequired("id") @@ -830,58 +792,12 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } + companion object { - return other is Situation && - this.id == other.id && - this.creationTime == other.creationTime && - this.reason == other.reason && - this.summary == other.summary && - this.description == other.description && - this.url == other.url && - this.activeWindows == other.activeWindows && - this.allAffects == other.allAffects && - this.consequences == other.consequences && - this.publicationWindows == other.publicationWindows && - this.severity == other.severity && - this.consequenceMessage == other.consequenceMessage && - this.additionalProperties == other.additionalProperties + @JvmStatic fun builder() = Builder() } - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - id, - creationTime, - reason, - summary, - description, - url, - activeWindows, - allAffects, - consequences, - publicationWindows, - severity, - consequenceMessage, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "Situation{id=$id, creationTime=$creationTime, reason=$reason, summary=$summary, description=$description, url=$url, activeWindows=$activeWindows, allAffects=$allAffects, consequences=$consequences, publicationWindows=$publicationWindows, severity=$severity, consequenceMessage=$consequenceMessage, additionalProperties=$additionalProperties}" - - companion object { - - @JvmStatic fun builder() = Builder() - } - - class Builder { + class Builder { private var id: JsonField = JsonMissing.of() private var creationTime: JsonField = JsonMissing.of() @@ -1057,8 +973,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - /** Start time of the active window as a Unix timestamp. */ fun from(): Optional = Optional.ofNullable(from.getNullable("from")) @@ -1085,32 +999,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is ActiveWindow && - this.from == other.from && - this.to == other.to && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - from, - to, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "ActiveWindow{from=$from, to=$to, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -1167,6 +1055,34 @@ private constructor( additionalProperties.toUnmodifiable(), ) } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is ActiveWindow && + this.from == other.from && + this.to == other.to && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + from, + to, + additionalProperties, + ) + } + return hashCode + } + + override fun toString() = + "ActiveWindow{from=$from, to=$to, additionalProperties=$additionalProperties}" } @JsonDeserialize(builder = AllAffect.Builder::class) @@ -1184,8 +1100,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - /** Identifier for the agency. */ fun agencyId(): Optional = Optional.ofNullable(agencyId.getNullable("agencyId")) @@ -1242,40 +1156,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is AllAffect && - this.agencyId == other.agencyId && - this.applicationId == other.applicationId && - this.directionId == other.directionId && - this.routeId == other.routeId && - this.stopId == other.stopId && - this.tripId == other.tripId && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - agencyId, - applicationId, - directionId, - routeId, - stopId, - tripId, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "AllAffect{agencyId=$agencyId, applicationId=$applicationId, directionId=$directionId, routeId=$routeId, stopId=$stopId, tripId=$tripId, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -1381,6 +1261,42 @@ private constructor( additionalProperties.toUnmodifiable(), ) } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is AllAffect && + this.agencyId == other.agencyId && + this.applicationId == other.applicationId && + this.directionId == other.directionId && + this.routeId == other.routeId && + this.stopId == other.stopId && + this.tripId == other.tripId && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + agencyId, + applicationId, + directionId, + routeId, + stopId, + tripId, + additionalProperties, + ) + } + return hashCode + } + + override fun toString() = + "AllAffect{agencyId=$agencyId, applicationId=$applicationId, directionId=$directionId, routeId=$routeId, stopId=$stopId, tripId=$tripId, additionalProperties=$additionalProperties}" } @JsonDeserialize(builder = Consequence.Builder::class) @@ -1394,8 +1310,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - /** Condition of the consequence. */ fun condition(): Optional = Optional.ofNullable(condition.getNullable("condition")) @@ -1424,32 +1338,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is Consequence && - this.condition == other.condition && - this.conditionDetails == other.conditionDetails && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - condition, - conditionDetails, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "Consequence{condition=$condition, conditionDetails=$conditionDetails, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -1519,8 +1407,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - fun diversionPath(): Optional = Optional.ofNullable(diversionPath.getNullable("diversionPath")) @@ -1547,32 +1433,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is ConditionDetails && - this.diversionPath == other.diversionPath && - this.diversionStopIds == other.diversionStopIds && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - diversionPath, - diversionStopIds, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "ConditionDetails{diversionPath=$diversionPath, diversionStopIds=$diversionStopIds, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -1644,8 +1504,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - /** Length of the diversion path. */ fun length(): Optional = Optional.ofNullable(length.getNullable("length")) @@ -1681,34 +1539,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is DiversionPath && - this.length == other.length && - this.levels == other.levels && - this.points == other.points && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - length, - levels, - points, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "DiversionPath{length=$length, levels=$levels, points=$points, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -1777,66 +1607,86 @@ private constructor( additionalProperties.toUnmodifiable(), ) } - } - } - } - - @JsonDeserialize(builder = Description.Builder::class) - @NoAutoDetect - class Description - private constructor( - private val lang: JsonField, - private val value: JsonField, - private val additionalProperties: Map, - ) { - private var validated: Boolean = false - - private var hashCode: Int = 0 + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } - /** Language of the description. */ - fun lang(): Optional = Optional.ofNullable(lang.getNullable("lang")) + return other is DiversionPath && + this.length == other.length && + this.levels == other.levels && + this.points == other.points && + this.additionalProperties == other.additionalProperties + } - /** Longer description of the situation. */ - fun value(): Optional = Optional.ofNullable(value.getNullable("value")) + private var hashCode: Int = 0 - /** Language of the description. */ - @JsonProperty("lang") @ExcludeMissing fun _lang() = lang + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + length, + levels, + points, + additionalProperties, + ) + } + return hashCode + } - /** Longer description of the situation. */ - @JsonProperty("value") @ExcludeMissing fun _value() = value + override fun toString() = + "DiversionPath{length=$length, levels=$levels, points=$points, additionalProperties=$additionalProperties}" + } - @JsonAnyGetter - @ExcludeMissing - fun _additionalProperties(): Map = additionalProperties + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } - fun validate(): Description = apply { - if (!validated) { - lang() - value() - validated = true + return other is ConditionDetails && + this.diversionPath == other.diversionPath && + this.diversionStopIds == other.diversionStopIds && + this.additionalProperties == other.additionalProperties } - } - fun toBuilder() = Builder().from(this) + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + diversionPath, + diversionStopIds, + additionalProperties, + ) + } + return hashCode + } + + override fun toString() = + "ConditionDetails{diversionPath=$diversionPath, diversionStopIds=$diversionStopIds, additionalProperties=$additionalProperties}" + } override fun equals(other: Any?): Boolean { if (this === other) { return true } - return other is Description && - this.lang == other.lang && - this.value == other.value && + return other is Consequence && + this.condition == other.condition && + this.conditionDetails == other.conditionDetails && this.additionalProperties == other.additionalProperties } + private var hashCode: Int = 0 + override fun hashCode(): Int { if (hashCode == 0) { hashCode = Objects.hash( - lang, - value, + condition, + conditionDetails, additionalProperties, ) } @@ -1844,7 +1694,45 @@ private constructor( } override fun toString() = - "Description{lang=$lang, value=$value, additionalProperties=$additionalProperties}" + "Consequence{condition=$condition, conditionDetails=$conditionDetails, additionalProperties=$additionalProperties}" + } + + @JsonDeserialize(builder = Description.Builder::class) + @NoAutoDetect + class Description + private constructor( + private val lang: JsonField, + private val value: JsonField, + private val additionalProperties: Map, + ) { + + private var validated: Boolean = false + + /** Language of the description. */ + fun lang(): Optional = Optional.ofNullable(lang.getNullable("lang")) + + /** Longer description of the situation. */ + fun value(): Optional = Optional.ofNullable(value.getNullable("value")) + + /** Language of the description. */ + @JsonProperty("lang") @ExcludeMissing fun _lang() = lang + + /** Longer description of the situation. */ + @JsonProperty("value") @ExcludeMissing fun _value() = value + + @JsonAnyGetter + @ExcludeMissing + fun _additionalProperties(): Map = additionalProperties + + fun validate(): Description = apply { + if (!validated) { + lang() + value() + validated = true + } + } + + fun toBuilder() = Builder().from(this) companion object { @@ -1902,6 +1790,34 @@ private constructor( additionalProperties.toUnmodifiable(), ) } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is Description && + this.lang == other.lang && + this.value == other.value && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + lang, + value, + additionalProperties, + ) + } + return hashCode + } + + override fun toString() = + "Description{lang=$lang, value=$value, additionalProperties=$additionalProperties}" } @JsonDeserialize(builder = PublicationWindow.Builder::class) @@ -1915,8 +1831,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - /** Start time of the time window as a Unix timestamp. */ fun from(): Long = from.getRequired("from") @@ -1943,32 +1857,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is PublicationWindow && - this.from == other.from && - this.to == other.to && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - from, - to, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "PublicationWindow{from=$from, to=$to, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -2025,6 +1913,34 @@ private constructor( additionalProperties.toUnmodifiable(), ) } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is PublicationWindow && + this.from == other.from && + this.to == other.to && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + from, + to, + additionalProperties, + ) + } + return hashCode + } + + override fun toString() = + "PublicationWindow{from=$from, to=$to, additionalProperties=$additionalProperties}" } class Reason @@ -2113,8 +2029,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - /** Language of the summary. */ fun lang(): Optional = Optional.ofNullable(lang.getNullable("lang")) @@ -2141,32 +2055,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is Summary && - this.lang == other.lang && - this.value == other.value && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - lang, - value, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "Summary{lang=$lang, value=$value, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -2223,6 +2111,34 @@ private constructor( additionalProperties.toUnmodifiable(), ) } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is Summary && + this.lang == other.lang && + this.value == other.value && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + lang, + value, + additionalProperties, + ) + } + return hashCode + } + + override fun toString() = + "Summary{lang=$lang, value=$value, additionalProperties=$additionalProperties}" } @JsonDeserialize(builder = Url.Builder::class) @@ -2236,8 +2152,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - /** Language of the URL. */ fun lang(): Optional = Optional.ofNullable(lang.getNullable("lang")) @@ -2264,32 +2178,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is Url && - this.lang == other.lang && - this.value == other.value && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - lang, - value, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "Url{lang=$lang, value=$value, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -2346,7 +2234,83 @@ private constructor( additionalProperties.toUnmodifiable(), ) } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is Url && + this.lang == other.lang && + this.value == other.value && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + lang, + value, + additionalProperties, + ) + } + return hashCode + } + + override fun toString() = + "Url{lang=$lang, value=$value, additionalProperties=$additionalProperties}" + } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is Situation && + this.id == other.id && + this.creationTime == other.creationTime && + this.reason == other.reason && + this.summary == other.summary && + this.description == other.description && + this.url == other.url && + this.activeWindows == other.activeWindows && + this.allAffects == other.allAffects && + this.consequences == other.consequences && + this.publicationWindows == other.publicationWindows && + this.severity == other.severity && + this.consequenceMessage == other.consequenceMessage && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + id, + creationTime, + reason, + summary, + description, + url, + activeWindows, + allAffects, + consequences, + publicationWindows, + severity, + consequenceMessage, + additionalProperties, + ) + } + return hashCode } + + override fun toString() = + "Situation{id=$id, creationTime=$creationTime, reason=$reason, summary=$summary, description=$description, url=$url, activeWindows=$activeWindows, allAffects=$allAffects, consequences=$consequences, publicationWindows=$publicationWindows, severity=$severity, consequenceMessage=$consequenceMessage, additionalProperties=$additionalProperties}" } @JsonDeserialize(builder = Stop.Builder::class) @@ -2369,8 +2333,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - fun code(): String = code.getRequired("code") fun direction(): Optional = Optional.ofNullable(direction.getNullable("direction")) @@ -2433,60 +2395,16 @@ private constructor( lat() locationType() lon() - name() - parent() - routeIds() - staticRouteIds() - wheelchairBoarding() - validated = true - } - } - - fun toBuilder() = Builder().from(this) - - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is Stop && - this.code == other.code && - this.direction == other.direction && - this.id == other.id && - this.lat == other.lat && - this.locationType == other.locationType && - this.lon == other.lon && - this.name == other.name && - this.parent == other.parent && - this.routeIds == other.routeIds && - this.staticRouteIds == other.staticRouteIds && - this.wheelchairBoarding == other.wheelchairBoarding && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - code, - direction, - id, - lat, - locationType, - lon, - name, - parent, - routeIds, - staticRouteIds, - wheelchairBoarding, - additionalProperties, - ) + name() + parent() + routeIds() + staticRouteIds() + wheelchairBoarding() + validated = true } - return hashCode } - override fun toString() = - "Stop{code=$code, direction=$direction, id=$id, lat=$lat, locationType=$locationType, lon=$lon, name=$name, parent=$parent, routeIds=$routeIds, staticRouteIds=$staticRouteIds, wheelchairBoarding=$wheelchairBoarding, additionalProperties=$additionalProperties}" + fun toBuilder() = Builder().from(this) companion object { @@ -2628,6 +2546,52 @@ private constructor( additionalProperties.toUnmodifiable(), ) } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is Stop && + this.code == other.code && + this.direction == other.direction && + this.id == other.id && + this.lat == other.lat && + this.locationType == other.locationType && + this.lon == other.lon && + this.name == other.name && + this.parent == other.parent && + this.routeIds == other.routeIds && + this.staticRouteIds == other.staticRouteIds && + this.wheelchairBoarding == other.wheelchairBoarding && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + code, + direction, + id, + lat, + locationType, + lon, + name, + parent, + routeIds, + staticRouteIds, + wheelchairBoarding, + additionalProperties, + ) + } + return hashCode + } + + override fun toString() = + "Stop{code=$code, direction=$direction, id=$id, lat=$lat, locationType=$locationType, lon=$lon, name=$name, parent=$parent, routeIds=$routeIds, staticRouteIds=$staticRouteIds, wheelchairBoarding=$wheelchairBoarding, additionalProperties=$additionalProperties}" } @JsonDeserialize(builder = StopTime.Builder::class) @@ -2645,8 +2609,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - fun arrivalTime(): Optional = Optional.ofNullable(arrivalTime.getNullable("arrivalTime")) @@ -2698,40 +2660,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is StopTime && - this.arrivalTime == other.arrivalTime && - this.departureTime == other.departureTime && - this.distanceAlongTrip == other.distanceAlongTrip && - this.historicalOccupancy == other.historicalOccupancy && - this.stopHeadsign == other.stopHeadsign && - this.stopId == other.stopId && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - arrivalTime, - departureTime, - distanceAlongTrip, - historicalOccupancy, - stopHeadsign, - stopId, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "StopTime{arrivalTime=$arrivalTime, departureTime=$departureTime, distanceAlongTrip=$distanceAlongTrip, historicalOccupancy=$historicalOccupancy, stopHeadsign=$stopHeadsign, stopId=$stopId, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -2829,6 +2757,42 @@ private constructor( additionalProperties.toUnmodifiable(), ) } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is StopTime && + this.arrivalTime == other.arrivalTime && + this.departureTime == other.departureTime && + this.distanceAlongTrip == other.distanceAlongTrip && + this.historicalOccupancy == other.historicalOccupancy && + this.stopHeadsign == other.stopHeadsign && + this.stopId == other.stopId && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + arrivalTime, + departureTime, + distanceAlongTrip, + historicalOccupancy, + stopHeadsign, + stopId, + additionalProperties, + ) + } + return hashCode + } + + override fun toString() = + "StopTime{arrivalTime=$arrivalTime, departureTime=$departureTime, distanceAlongTrip=$distanceAlongTrip, historicalOccupancy=$historicalOccupancy, stopHeadsign=$stopHeadsign, stopId=$stopId, additionalProperties=$additionalProperties}" } @JsonDeserialize(builder = Trip.Builder::class) @@ -2851,8 +2815,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - fun blockId(): Optional = Optional.ofNullable(blockId.getNullable("blockId")) fun directionId(): Optional = @@ -2925,50 +2887,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is Trip && - this.blockId == other.blockId && - this.directionId == other.directionId && - this.id == other.id && - this.peakOffpeak == other.peakOffpeak && - this.routeId == other.routeId && - this.routeShortName == other.routeShortName && - this.serviceId == other.serviceId && - this.shapeId == other.shapeId && - this.timeZone == other.timeZone && - this.tripHeadsign == other.tripHeadsign && - this.tripShortName == other.tripShortName && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - blockId, - directionId, - id, - peakOffpeak, - routeId, - routeShortName, - serviceId, - shapeId, - timeZone, - tripHeadsign, - tripShortName, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "Trip{blockId=$blockId, directionId=$directionId, id=$id, peakOffpeak=$peakOffpeak, routeId=$routeId, routeShortName=$routeShortName, serviceId=$serviceId, shapeId=$shapeId, timeZone=$timeZone, tripHeadsign=$tripHeadsign, tripShortName=$tripShortName, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -3110,5 +3028,87 @@ private constructor( additionalProperties.toUnmodifiable(), ) } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is Trip && + this.blockId == other.blockId && + this.directionId == other.directionId && + this.id == other.id && + this.peakOffpeak == other.peakOffpeak && + this.routeId == other.routeId && + this.routeShortName == other.routeShortName && + this.serviceId == other.serviceId && + this.shapeId == other.shapeId && + this.timeZone == other.timeZone && + this.tripHeadsign == other.tripHeadsign && + this.tripShortName == other.tripShortName && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + blockId, + directionId, + id, + peakOffpeak, + routeId, + routeShortName, + serviceId, + shapeId, + timeZone, + tripHeadsign, + tripShortName, + additionalProperties, + ) + } + return hashCode + } + + override fun toString() = + "Trip{blockId=$blockId, directionId=$directionId, id=$id, peakOffpeak=$peakOffpeak, routeId=$routeId, routeShortName=$routeShortName, serviceId=$serviceId, shapeId=$shapeId, timeZone=$timeZone, tripHeadsign=$tripHeadsign, tripShortName=$tripShortName, additionalProperties=$additionalProperties}" + } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is References && + this.agencies == other.agencies && + this.routes == other.routes && + this.situations == other.situations && + this.stopTimes == other.stopTimes && + this.stops == other.stops && + this.trips == other.trips && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + agencies, + routes, + situations, + stopTimes, + stops, + trips, + additionalProperties, + ) + } + return hashCode } + + override fun toString() = + "References{agencies=$agencies, routes=$routes, situations=$situations, stopTimes=$stopTimes, stops=$stops, trips=$trips, additionalProperties=$additionalProperties}" } diff --git a/onebusaway-sdk-java-core/src/main/kotlin/org/onebusaway/models/ResponseWrapper.kt b/onebusaway-sdk-java-core/src/main/kotlin/org/onebusaway/models/ResponseWrapper.kt index 23b8643..e74aa5b 100644 --- a/onebusaway-sdk-java-core/src/main/kotlin/org/onebusaway/models/ResponseWrapper.kt +++ b/onebusaway-sdk-java-core/src/main/kotlin/org/onebusaway/models/ResponseWrapper.kt @@ -27,8 +27,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - fun code(): Long = code.getRequired("code") fun currentTime(): Long = currentTime.getRequired("currentTime") @@ -61,36 +59,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is ResponseWrapper && - this.code == other.code && - this.currentTime == other.currentTime && - this.text == other.text && - this.version == other.version && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - code, - currentTime, - text, - version, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "ResponseWrapper{code=$code, currentTime=$currentTime, text=$text, version=$version, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -160,4 +128,36 @@ private constructor( additionalProperties.toUnmodifiable(), ) } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is ResponseWrapper && + this.code == other.code && + this.currentTime == other.currentTime && + this.text == other.text && + this.version == other.version && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + code, + currentTime, + text, + version, + additionalProperties, + ) + } + return hashCode + } + + override fun toString() = + "ResponseWrapper{code=$code, currentTime=$currentTime, text=$text, version=$version, additionalProperties=$additionalProperties}" } diff --git a/onebusaway-sdk-java-core/src/main/kotlin/org/onebusaway/models/RouteIdsForAgencyListResponse.kt b/onebusaway-sdk-java-core/src/main/kotlin/org/onebusaway/models/RouteIdsForAgencyListResponse.kt index 43cb51c..0e28862 100644 --- a/onebusaway-sdk-java-core/src/main/kotlin/org/onebusaway/models/RouteIdsForAgencyListResponse.kt +++ b/onebusaway-sdk-java-core/src/main/kotlin/org/onebusaway/models/RouteIdsForAgencyListResponse.kt @@ -28,8 +28,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - fun code(): Long = code.getRequired("code") fun currentTime(): Long = currentTime.getRequired("currentTime") @@ -75,38 +73,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is RouteIdsForAgencyListResponse && - this.code == other.code && - this.currentTime == other.currentTime && - this.text == other.text && - this.version == other.version && - this.data == other.data && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - code, - currentTime, - text, - version, - data, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "RouteIdsForAgencyListResponse{code=$code, currentTime=$currentTime, text=$text, version=$version, data=$data, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -198,8 +164,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - fun limitExceeded(): Boolean = limitExceeded.getRequired("limitExceeded") fun list(): List = list.getRequired("list") @@ -227,34 +191,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is Data && - this.limitExceeded == other.limitExceeded && - this.list == other.list && - this.references == other.references && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - limitExceeded, - list, - references, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "Data{limitExceeded=$limitExceeded, list=$list, references=$references, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -319,5 +255,69 @@ private constructor( additionalProperties.toUnmodifiable(), ) } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is Data && + this.limitExceeded == other.limitExceeded && + this.list == other.list && + this.references == other.references && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + limitExceeded, + list, + references, + additionalProperties, + ) + } + return hashCode + } + + override fun toString() = + "Data{limitExceeded=$limitExceeded, list=$list, references=$references, additionalProperties=$additionalProperties}" + } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is RouteIdsForAgencyListResponse && + this.code == other.code && + this.currentTime == other.currentTime && + this.text == other.text && + this.version == other.version && + this.data == other.data && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + code, + currentTime, + text, + version, + data, + additionalProperties, + ) + } + return hashCode } + + override fun toString() = + "RouteIdsForAgencyListResponse{code=$code, currentTime=$currentTime, text=$text, version=$version, data=$data, additionalProperties=$additionalProperties}" } diff --git a/onebusaway-sdk-java-core/src/main/kotlin/org/onebusaway/models/RouteRetrieveResponse.kt b/onebusaway-sdk-java-core/src/main/kotlin/org/onebusaway/models/RouteRetrieveResponse.kt index acda0c5..1d1ee45 100644 --- a/onebusaway-sdk-java-core/src/main/kotlin/org/onebusaway/models/RouteRetrieveResponse.kt +++ b/onebusaway-sdk-java-core/src/main/kotlin/org/onebusaway/models/RouteRetrieveResponse.kt @@ -29,8 +29,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - fun code(): Long = code.getRequired("code") fun currentTime(): Long = currentTime.getRequired("currentTime") @@ -76,38 +74,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is RouteRetrieveResponse && - this.code == other.code && - this.currentTime == other.currentTime && - this.text == other.text && - this.version == other.version && - this.data == other.data && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - code, - currentTime, - text, - version, - data, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "RouteRetrieveResponse{code=$code, currentTime=$currentTime, text=$text, version=$version, data=$data, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -198,8 +164,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - fun entry(): Entry = entry.getRequired("entry") fun references(): References = references.getRequired("references") @@ -222,32 +186,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is Data && - this.entry == other.entry && - this.references == other.references && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - entry, - references, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "Data{entry=$entry, references=$references, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -321,8 +259,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - fun agencyId(): String = agencyId.getRequired("agencyId") fun color(): Optional = Optional.ofNullable(color.getNullable("color")) @@ -391,48 +327,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is Entry && - this.agencyId == other.agencyId && - this.color == other.color && - this.description == other.description && - this.id == other.id && - this.longName == other.longName && - this.nullSafeShortName == other.nullSafeShortName && - this.shortName == other.shortName && - this.textColor == other.textColor && - this.type == other.type && - this.url == other.url && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - agencyId, - color, - description, - id, - longName, - nullSafeShortName, - shortName, - textColor, - type, - url, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "Entry{agencyId=$agencyId, color=$color, description=$description, id=$id, longName=$longName, nullSafeShortName=$nullSafeShortName, shortName=$shortName, textColor=$textColor, type=$type, url=$url, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -562,6 +456,112 @@ private constructor( additionalProperties.toUnmodifiable(), ) } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is Entry && + this.agencyId == other.agencyId && + this.color == other.color && + this.description == other.description && + this.id == other.id && + this.longName == other.longName && + this.nullSafeShortName == other.nullSafeShortName && + this.shortName == other.shortName && + this.textColor == other.textColor && + this.type == other.type && + this.url == other.url && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + agencyId, + color, + description, + id, + longName, + nullSafeShortName, + shortName, + textColor, + type, + url, + additionalProperties, + ) + } + return hashCode + } + + override fun toString() = + "Entry{agencyId=$agencyId, color=$color, description=$description, id=$id, longName=$longName, nullSafeShortName=$nullSafeShortName, shortName=$shortName, textColor=$textColor, type=$type, url=$url, additionalProperties=$additionalProperties}" + } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is Data && + this.entry == other.entry && + this.references == other.references && + this.additionalProperties == other.additionalProperties } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + entry, + references, + additionalProperties, + ) + } + return hashCode + } + + override fun toString() = + "Data{entry=$entry, references=$references, additionalProperties=$additionalProperties}" } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is RouteRetrieveResponse && + this.code == other.code && + this.currentTime == other.currentTime && + this.text == other.text && + this.version == other.version && + this.data == other.data && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + code, + currentTime, + text, + version, + data, + additionalProperties, + ) + } + return hashCode + } + + override fun toString() = + "RouteRetrieveResponse{code=$code, currentTime=$currentTime, text=$text, version=$version, data=$data, additionalProperties=$additionalProperties}" } diff --git a/onebusaway-sdk-java-core/src/main/kotlin/org/onebusaway/models/RoutesForAgencyListResponse.kt b/onebusaway-sdk-java-core/src/main/kotlin/org/onebusaway/models/RoutesForAgencyListResponse.kt index f399255..6cda44d 100644 --- a/onebusaway-sdk-java-core/src/main/kotlin/org/onebusaway/models/RoutesForAgencyListResponse.kt +++ b/onebusaway-sdk-java-core/src/main/kotlin/org/onebusaway/models/RoutesForAgencyListResponse.kt @@ -29,8 +29,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - fun code(): Long = code.getRequired("code") fun currentTime(): Long = currentTime.getRequired("currentTime") @@ -76,38 +74,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is RoutesForAgencyListResponse && - this.code == other.code && - this.currentTime == other.currentTime && - this.text == other.text && - this.version == other.version && - this.data == other.data && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - code, - currentTime, - text, - version, - data, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "RoutesForAgencyListResponse{code=$code, currentTime=$currentTime, text=$text, version=$version, data=$data, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -199,8 +165,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - fun limitExceeded(): Boolean = limitExceeded.getRequired("limitExceeded") fun list(): kotlin.collections.List = list.getRequired("list") @@ -228,34 +192,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is Data && - this.limitExceeded == other.limitExceeded && - this.list == other.list && - this.references == other.references && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - limitExceeded, - list, - references, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "Data{limitExceeded=$limitExceeded, list=$list, references=$references, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -340,8 +276,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - fun agencyId(): String = agencyId.getRequired("agencyId") fun color(): Optional = Optional.ofNullable(color.getNullable("color")) @@ -410,48 +344,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is List && - this.agencyId == other.agencyId && - this.color == other.color && - this.description == other.description && - this.id == other.id && - this.longName == other.longName && - this.nullSafeShortName == other.nullSafeShortName && - this.shortName == other.shortName && - this.textColor == other.textColor && - this.type == other.type && - this.url == other.url && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - agencyId, - color, - description, - id, - longName, - nullSafeShortName, - shortName, - textColor, - type, - url, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "List{agencyId=$agencyId, color=$color, description=$description, id=$id, longName=$longName, nullSafeShortName=$nullSafeShortName, shortName=$shortName, textColor=$textColor, type=$type, url=$url, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -581,6 +473,114 @@ private constructor( additionalProperties.toUnmodifiable(), ) } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is List && + this.agencyId == other.agencyId && + this.color == other.color && + this.description == other.description && + this.id == other.id && + this.longName == other.longName && + this.nullSafeShortName == other.nullSafeShortName && + this.shortName == other.shortName && + this.textColor == other.textColor && + this.type == other.type && + this.url == other.url && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + agencyId, + color, + description, + id, + longName, + nullSafeShortName, + shortName, + textColor, + type, + url, + additionalProperties, + ) + } + return hashCode + } + + override fun toString() = + "List{agencyId=$agencyId, color=$color, description=$description, id=$id, longName=$longName, nullSafeShortName=$nullSafeShortName, shortName=$shortName, textColor=$textColor, type=$type, url=$url, additionalProperties=$additionalProperties}" + } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is Data && + this.limitExceeded == other.limitExceeded && + this.list == other.list && + this.references == other.references && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + limitExceeded, + list, + references, + additionalProperties, + ) + } + return hashCode + } + + override fun toString() = + "Data{limitExceeded=$limitExceeded, list=$list, references=$references, additionalProperties=$additionalProperties}" + } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is RoutesForAgencyListResponse && + this.code == other.code && + this.currentTime == other.currentTime && + this.text == other.text && + this.version == other.version && + this.data == other.data && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + code, + currentTime, + text, + version, + data, + additionalProperties, + ) } + return hashCode } + + override fun toString() = + "RoutesForAgencyListResponse{code=$code, currentTime=$currentTime, text=$text, version=$version, data=$data, additionalProperties=$additionalProperties}" } diff --git a/onebusaway-sdk-java-core/src/main/kotlin/org/onebusaway/models/RoutesForLocationListResponse.kt b/onebusaway-sdk-java-core/src/main/kotlin/org/onebusaway/models/RoutesForLocationListResponse.kt index aed246e..f0a7bdd 100644 --- a/onebusaway-sdk-java-core/src/main/kotlin/org/onebusaway/models/RoutesForLocationListResponse.kt +++ b/onebusaway-sdk-java-core/src/main/kotlin/org/onebusaway/models/RoutesForLocationListResponse.kt @@ -29,8 +29,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - fun code(): Long = code.getRequired("code") fun currentTime(): Long = currentTime.getRequired("currentTime") @@ -76,38 +74,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is RoutesForLocationListResponse && - this.code == other.code && - this.currentTime == other.currentTime && - this.text == other.text && - this.version == other.version && - this.data == other.data && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - code, - currentTime, - text, - version, - data, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "RoutesForLocationListResponse{code=$code, currentTime=$currentTime, text=$text, version=$version, data=$data, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -200,8 +166,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - fun limitExceeded(): Boolean = limitExceeded.getRequired("limitExceeded") fun list(): kotlin.collections.List = list.getRequired("list") @@ -234,36 +198,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is Data && - this.limitExceeded == other.limitExceeded && - this.list == other.list && - this.outOfRange == other.outOfRange && - this.references == other.references && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - limitExceeded, - list, - outOfRange, - references, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "Data{limitExceeded=$limitExceeded, list=$list, outOfRange=$outOfRange, references=$references, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -357,8 +291,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - fun agencyId(): String = agencyId.getRequired("agencyId") fun color(): Optional = Optional.ofNullable(color.getNullable("color")) @@ -427,48 +359,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is List && - this.agencyId == other.agencyId && - this.color == other.color && - this.description == other.description && - this.id == other.id && - this.longName == other.longName && - this.nullSafeShortName == other.nullSafeShortName && - this.shortName == other.shortName && - this.textColor == other.textColor && - this.type == other.type && - this.url == other.url && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - agencyId, - color, - description, - id, - longName, - nullSafeShortName, - shortName, - textColor, - type, - url, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "List{agencyId=$agencyId, color=$color, description=$description, id=$id, longName=$longName, nullSafeShortName=$nullSafeShortName, shortName=$shortName, textColor=$textColor, type=$type, url=$url, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -598,6 +488,116 @@ private constructor( additionalProperties.toUnmodifiable(), ) } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is List && + this.agencyId == other.agencyId && + this.color == other.color && + this.description == other.description && + this.id == other.id && + this.longName == other.longName && + this.nullSafeShortName == other.nullSafeShortName && + this.shortName == other.shortName && + this.textColor == other.textColor && + this.type == other.type && + this.url == other.url && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + agencyId, + color, + description, + id, + longName, + nullSafeShortName, + shortName, + textColor, + type, + url, + additionalProperties, + ) + } + return hashCode + } + + override fun toString() = + "List{agencyId=$agencyId, color=$color, description=$description, id=$id, longName=$longName, nullSafeShortName=$nullSafeShortName, shortName=$shortName, textColor=$textColor, type=$type, url=$url, additionalProperties=$additionalProperties}" + } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is Data && + this.limitExceeded == other.limitExceeded && + this.list == other.list && + this.outOfRange == other.outOfRange && + this.references == other.references && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + limitExceeded, + list, + outOfRange, + references, + additionalProperties, + ) + } + return hashCode } + + override fun toString() = + "Data{limitExceeded=$limitExceeded, list=$list, outOfRange=$outOfRange, references=$references, additionalProperties=$additionalProperties}" } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is RoutesForLocationListResponse && + this.code == other.code && + this.currentTime == other.currentTime && + this.text == other.text && + this.version == other.version && + this.data == other.data && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + code, + currentTime, + text, + version, + data, + additionalProperties, + ) + } + return hashCode + } + + override fun toString() = + "RoutesForLocationListResponse{code=$code, currentTime=$currentTime, text=$text, version=$version, data=$data, additionalProperties=$additionalProperties}" } diff --git a/onebusaway-sdk-java-core/src/main/kotlin/org/onebusaway/models/ScheduleForRouteRetrieveResponse.kt b/onebusaway-sdk-java-core/src/main/kotlin/org/onebusaway/models/ScheduleForRouteRetrieveResponse.kt index 85b44f2..0f0f6d8 100644 --- a/onebusaway-sdk-java-core/src/main/kotlin/org/onebusaway/models/ScheduleForRouteRetrieveResponse.kt +++ b/onebusaway-sdk-java-core/src/main/kotlin/org/onebusaway/models/ScheduleForRouteRetrieveResponse.kt @@ -29,8 +29,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - fun code(): Long = code.getRequired("code") fun currentTime(): Long = currentTime.getRequired("currentTime") @@ -76,38 +74,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is ScheduleForRouteRetrieveResponse && - this.code == other.code && - this.currentTime == other.currentTime && - this.text == other.text && - this.version == other.version && - this.data == other.data && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - code, - currentTime, - text, - version, - data, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "ScheduleForRouteRetrieveResponse{code=$code, currentTime=$currentTime, text=$text, version=$version, data=$data, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -198,8 +164,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - fun entry(): Entry = entry.getRequired("entry") @JsonProperty("entry") @ExcludeMissing fun _entry() = entry @@ -217,25 +181,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is Data && - this.entry == other.entry && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = Objects.hash(entry, additionalProperties) - } - return hashCode - } - - override fun toString() = "Data{entry=$entry, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -290,8 +235,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - fun routeId(): String = routeId.getRequired("routeId") fun scheduleDate(): Long = scheduleDate.getRequired("scheduleDate") @@ -337,40 +280,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is Entry && - this.routeId == other.routeId && - this.scheduleDate == other.scheduleDate && - this.serviceIds == other.serviceIds && - this.stopTripGroupings == other.stopTripGroupings && - this.stops == other.stops && - this.trips == other.trips && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - routeId, - scheduleDate, - serviceIds, - stopTripGroupings, - stops, - trips, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "Entry{routeId=$routeId, scheduleDate=$scheduleDate, serviceIds=$serviceIds, stopTripGroupings=$stopTripGroupings, stops=$stops, trips=$trips, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -488,8 +397,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - fun code(): String = code.getRequired("code") fun direction(): Optional = @@ -566,50 +473,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is Stop && - this.code == other.code && - this.direction == other.direction && - this.id == other.id && - this.lat == other.lat && - this.locationType == other.locationType && - this.lon == other.lon && - this.name == other.name && - this.parent == other.parent && - this.routeIds == other.routeIds && - this.staticRouteIds == other.staticRouteIds && - this.wheelchairBoarding == other.wheelchairBoarding && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - code, - direction, - id, - lat, - locationType, - lon, - name, - parent, - routeIds, - staticRouteIds, - wheelchairBoarding, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "Stop{code=$code, direction=$direction, id=$id, lat=$lat, locationType=$locationType, lon=$lon, name=$name, parent=$parent, routeIds=$routeIds, staticRouteIds=$staticRouteIds, wheelchairBoarding=$wheelchairBoarding, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -755,6 +618,52 @@ private constructor( additionalProperties.toUnmodifiable(), ) } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is Stop && + this.code == other.code && + this.direction == other.direction && + this.id == other.id && + this.lat == other.lat && + this.locationType == other.locationType && + this.lon == other.lon && + this.name == other.name && + this.parent == other.parent && + this.routeIds == other.routeIds && + this.staticRouteIds == other.staticRouteIds && + this.wheelchairBoarding == other.wheelchairBoarding && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + code, + direction, + id, + lat, + locationType, + lon, + name, + parent, + routeIds, + staticRouteIds, + wheelchairBoarding, + additionalProperties, + ) + } + return hashCode + } + + override fun toString() = + "Stop{code=$code, direction=$direction, id=$id, lat=$lat, locationType=$locationType, lon=$lon, name=$name, parent=$parent, routeIds=$routeIds, staticRouteIds=$staticRouteIds, wheelchairBoarding=$wheelchairBoarding, additionalProperties=$additionalProperties}" } @JsonDeserialize(builder = StopTripGrouping.Builder::class) @@ -771,8 +680,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - fun directionId(): String = directionId.getRequired("directionId") fun stopIds(): List = stopIds.getRequired("stopIds") @@ -813,38 +720,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is StopTripGrouping && - this.directionId == other.directionId && - this.stopIds == other.stopIds && - this.tripHeadsigns == other.tripHeadsigns && - this.tripIds == other.tripIds && - this.tripsWithStopTimes == other.tripsWithStopTimes && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - directionId, - stopIds, - tripHeadsigns, - tripIds, - tripsWithStopTimes, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "StopTripGrouping{directionId=$directionId, stopIds=$stopIds, tripHeadsigns=$tripHeadsigns, tripIds=$tripIds, tripsWithStopTimes=$tripsWithStopTimes, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -946,8 +821,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - fun tripId(): String = tripId.getRequired("tripId") fun stopTimes(): List = stopTimes.getRequired("stopTimes") @@ -970,32 +843,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is TripsWithStopTime && - this.tripId == other.tripId && - this.stopTimes == other.stopTimes && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - tripId, - stopTimes, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "TripsWithStopTime{tripId=$tripId, stopTimes=$stopTimes, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -1070,8 +917,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - fun arrivalEnabled(): Boolean = arrivalEnabled.getRequired("arrivalEnabled") fun arrivalTime(): Long = arrivalTime.getRequired("arrivalTime") @@ -1137,45 +982,7 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is StopTime && - this.arrivalEnabled == other.arrivalEnabled && - this.arrivalTime == other.arrivalTime && - this.departureEnabled == other.departureEnabled && - this.departureTime == other.departureTime && - this.serviceId == other.serviceId && - this.stopHeadsign == other.stopHeadsign && - this.stopId == other.stopId && - this.tripId == other.tripId && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - arrivalEnabled, - arrivalTime, - departureEnabled, - departureTime, - serviceId, - stopHeadsign, - stopId, - tripId, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "StopTime{arrivalEnabled=$arrivalEnabled, arrivalTime=$arrivalTime, departureEnabled=$departureEnabled, departureTime=$departureTime, serviceId=$serviceId, stopHeadsign=$stopHeadsign, stopId=$stopId, tripId=$tripId, additionalProperties=$additionalProperties}" - - companion object { + companion object { @JvmStatic fun builder() = Builder() } @@ -1299,8 +1106,110 @@ private constructor( additionalProperties.toUnmodifiable(), ) } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is StopTime && + this.arrivalEnabled == other.arrivalEnabled && + this.arrivalTime == other.arrivalTime && + this.departureEnabled == other.departureEnabled && + this.departureTime == other.departureTime && + this.serviceId == other.serviceId && + this.stopHeadsign == other.stopHeadsign && + this.stopId == other.stopId && + this.tripId == other.tripId && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + arrivalEnabled, + arrivalTime, + departureEnabled, + departureTime, + serviceId, + stopHeadsign, + stopId, + tripId, + additionalProperties, + ) + } + return hashCode + } + + override fun toString() = + "StopTime{arrivalEnabled=$arrivalEnabled, arrivalTime=$arrivalTime, departureEnabled=$departureEnabled, departureTime=$departureTime, serviceId=$serviceId, stopHeadsign=$stopHeadsign, stopId=$stopId, tripId=$tripId, additionalProperties=$additionalProperties}" + } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is TripsWithStopTime && + this.tripId == other.tripId && + this.stopTimes == other.stopTimes && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + tripId, + stopTimes, + additionalProperties, + ) + } + return hashCode + } + + override fun toString() = + "TripsWithStopTime{tripId=$tripId, stopTimes=$stopTimes, additionalProperties=$additionalProperties}" + } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true } + + return other is StopTripGrouping && + this.directionId == other.directionId && + this.stopIds == other.stopIds && + this.tripHeadsigns == other.tripHeadsigns && + this.tripIds == other.tripIds && + this.tripsWithStopTimes == other.tripsWithStopTimes && + this.additionalProperties == other.additionalProperties } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + directionId, + stopIds, + tripHeadsigns, + tripIds, + tripsWithStopTimes, + additionalProperties, + ) + } + return hashCode + } + + override fun toString() = + "StopTripGrouping{directionId=$directionId, stopIds=$stopIds, tripHeadsigns=$tripHeadsigns, tripIds=$tripIds, tripsWithStopTimes=$tripsWithStopTimes, additionalProperties=$additionalProperties}" } @JsonDeserialize(builder = Trip.Builder::class) @@ -1323,8 +1232,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - fun blockId(): Optional = Optional.ofNullable(blockId.getNullable("blockId")) @@ -1402,50 +1309,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is Trip && - this.blockId == other.blockId && - this.directionId == other.directionId && - this.id == other.id && - this.peakOffpeak == other.peakOffpeak && - this.routeId == other.routeId && - this.routeShortName == other.routeShortName && - this.serviceId == other.serviceId && - this.shapeId == other.shapeId && - this.timeZone == other.timeZone && - this.tripHeadsign == other.tripHeadsign && - this.tripShortName == other.tripShortName && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - blockId, - directionId, - id, - peakOffpeak, - routeId, - routeShortName, - serviceId, - shapeId, - timeZone, - tripHeadsign, - tripShortName, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "Trip{blockId=$blockId, directionId=$directionId, id=$id, peakOffpeak=$peakOffpeak, routeId=$routeId, routeShortName=$routeShortName, serviceId=$serviceId, shapeId=$shapeId, timeZone=$timeZone, tripHeadsign=$tripHeadsign, tripShortName=$tripShortName, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -1594,7 +1457,144 @@ private constructor( additionalProperties.toUnmodifiable(), ) } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is Trip && + this.blockId == other.blockId && + this.directionId == other.directionId && + this.id == other.id && + this.peakOffpeak == other.peakOffpeak && + this.routeId == other.routeId && + this.routeShortName == other.routeShortName && + this.serviceId == other.serviceId && + this.shapeId == other.shapeId && + this.timeZone == other.timeZone && + this.tripHeadsign == other.tripHeadsign && + this.tripShortName == other.tripShortName && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + blockId, + directionId, + id, + peakOffpeak, + routeId, + routeShortName, + serviceId, + shapeId, + timeZone, + tripHeadsign, + tripShortName, + additionalProperties, + ) + } + return hashCode + } + + override fun toString() = + "Trip{blockId=$blockId, directionId=$directionId, id=$id, peakOffpeak=$peakOffpeak, routeId=$routeId, routeShortName=$routeShortName, serviceId=$serviceId, shapeId=$shapeId, timeZone=$timeZone, tripHeadsign=$tripHeadsign, tripShortName=$tripShortName, additionalProperties=$additionalProperties}" + } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is Entry && + this.routeId == other.routeId && + this.scheduleDate == other.scheduleDate && + this.serviceIds == other.serviceIds && + this.stopTripGroupings == other.stopTripGroupings && + this.stops == other.stops && + this.trips == other.trips && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + routeId, + scheduleDate, + serviceIds, + stopTripGroupings, + stops, + trips, + additionalProperties, + ) + } + return hashCode + } + + override fun toString() = + "Entry{routeId=$routeId, scheduleDate=$scheduleDate, serviceIds=$serviceIds, stopTripGroupings=$stopTripGroupings, stops=$stops, trips=$trips, additionalProperties=$additionalProperties}" + } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true } + + return other is Data && + this.entry == other.entry && + this.additionalProperties == other.additionalProperties } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = Objects.hash(entry, additionalProperties) + } + return hashCode + } + + override fun toString() = "Data{entry=$entry, additionalProperties=$additionalProperties}" + } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is ScheduleForRouteRetrieveResponse && + this.code == other.code && + this.currentTime == other.currentTime && + this.text == other.text && + this.version == other.version && + this.data == other.data && + this.additionalProperties == other.additionalProperties } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + code, + currentTime, + text, + version, + data, + additionalProperties, + ) + } + return hashCode + } + + override fun toString() = + "ScheduleForRouteRetrieveResponse{code=$code, currentTime=$currentTime, text=$text, version=$version, data=$data, additionalProperties=$additionalProperties}" } diff --git a/onebusaway-sdk-java-core/src/main/kotlin/org/onebusaway/models/ScheduleForStopRetrieveResponse.kt b/onebusaway-sdk-java-core/src/main/kotlin/org/onebusaway/models/ScheduleForStopRetrieveResponse.kt index f1d1894..eaf6d33 100644 --- a/onebusaway-sdk-java-core/src/main/kotlin/org/onebusaway/models/ScheduleForStopRetrieveResponse.kt +++ b/onebusaway-sdk-java-core/src/main/kotlin/org/onebusaway/models/ScheduleForStopRetrieveResponse.kt @@ -29,8 +29,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - fun code(): Long = code.getRequired("code") fun currentTime(): Long = currentTime.getRequired("currentTime") @@ -76,38 +74,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is ScheduleForStopRetrieveResponse && - this.code == other.code && - this.currentTime == other.currentTime && - this.text == other.text && - this.version == other.version && - this.data == other.data && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - code, - currentTime, - text, - version, - data, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "ScheduleForStopRetrieveResponse{code=$code, currentTime=$currentTime, text=$text, version=$version, data=$data, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -199,8 +165,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - fun entry(): Entry = entry.getRequired("entry") fun references(): References = references.getRequired("references") @@ -223,32 +187,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is Data && - this.entry == other.entry && - this.references == other.references && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - entry, - references, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "Data{entry=$entry, references=$references, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -315,8 +253,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - fun date(): Long = date.getRequired("date") fun stopId(): String = stopId.getRequired("stopId") @@ -347,34 +283,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is Entry && - this.date == other.date && - this.stopId == other.stopId && - this.stopRouteSchedules == other.stopRouteSchedules && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - date, - stopId, - stopRouteSchedules, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "Entry{date=$date, stopId=$stopId, stopRouteSchedules=$stopRouteSchedules, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -454,8 +362,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - fun routeId(): String = routeId.getRequired("routeId") fun stopRouteDirectionSchedules(): List = @@ -481,32 +387,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is StopRouteSchedule && - this.routeId == other.routeId && - this.stopRouteDirectionSchedules == other.stopRouteDirectionSchedules && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - routeId, - stopRouteDirectionSchedules, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "StopRouteSchedule{routeId=$routeId, stopRouteDirectionSchedules=$stopRouteDirectionSchedules, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -579,8 +459,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - fun scheduleFrequencies(): Optional> = Optional.ofNullable(scheduleFrequencies.getNullable("scheduleFrequencies")) @@ -614,34 +492,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is StopRouteDirectionSchedule && - this.scheduleFrequencies == other.scheduleFrequencies && - this.scheduleStopTimes == other.scheduleStopTimes && - this.tripHeadsign == other.tripHeadsign && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - scheduleFrequencies, - scheduleStopTimes, - tripHeadsign, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "StopRouteDirectionSchedule{scheduleFrequencies=$scheduleFrequencies, scheduleStopTimes=$scheduleStopTimes, tripHeadsign=$tripHeadsign, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -737,8 +587,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - fun arrivalEnabled(): Boolean = arrivalEnabled.getRequired("arrivalEnabled") fun arrivalTime(): Long = arrivalTime.getRequired("arrivalTime") @@ -798,42 +646,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is ScheduleStopTime && - this.arrivalEnabled == other.arrivalEnabled && - this.arrivalTime == other.arrivalTime && - this.departureEnabled == other.departureEnabled && - this.departureTime == other.departureTime && - this.serviceId == other.serviceId && - this.stopHeadsign == other.stopHeadsign && - this.tripId == other.tripId && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - arrivalEnabled, - arrivalTime, - departureEnabled, - departureTime, - serviceId, - stopHeadsign, - tripId, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "ScheduleStopTime{arrivalEnabled=$arrivalEnabled, arrivalTime=$arrivalTime, departureEnabled=$departureEnabled, departureTime=$departureTime, serviceId=$serviceId, stopHeadsign=$stopHeadsign, tripId=$tripId, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -949,6 +761,44 @@ private constructor( additionalProperties.toUnmodifiable(), ) } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is ScheduleStopTime && + this.arrivalEnabled == other.arrivalEnabled && + this.arrivalTime == other.arrivalTime && + this.departureEnabled == other.departureEnabled && + this.departureTime == other.departureTime && + this.serviceId == other.serviceId && + this.stopHeadsign == other.stopHeadsign && + this.tripId == other.tripId && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + arrivalEnabled, + arrivalTime, + departureEnabled, + departureTime, + serviceId, + stopHeadsign, + tripId, + additionalProperties, + ) + } + return hashCode + } + + override fun toString() = + "ScheduleStopTime{arrivalEnabled=$arrivalEnabled, arrivalTime=$arrivalTime, departureEnabled=$departureEnabled, departureTime=$departureTime, serviceId=$serviceId, stopHeadsign=$stopHeadsign, tripId=$tripId, additionalProperties=$additionalProperties}" } @JsonDeserialize(builder = ScheduleFrequency.Builder::class) @@ -966,8 +816,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - fun serviceDate(): Long = serviceDate.getRequired("serviceDate") fun startTime(): Long = startTime.getRequired("startTime") @@ -1012,40 +860,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is ScheduleFrequency && - this.serviceDate == other.serviceDate && - this.startTime == other.startTime && - this.endTime == other.endTime && - this.headway == other.headway && - this.serviceId == other.serviceId && - this.tripId == other.tripId && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - serviceDate, - startTime, - endTime, - headway, - serviceId, - tripId, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "ScheduleFrequency{serviceDate=$serviceDate, startTime=$startTime, endTime=$endTime, headway=$headway, serviceId=$serviceId, tripId=$tripId, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -1142,9 +956,195 @@ private constructor( additionalProperties.toUnmodifiable(), ) } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is ScheduleFrequency && + this.serviceDate == other.serviceDate && + this.startTime == other.startTime && + this.endTime == other.endTime && + this.headway == other.headway && + this.serviceId == other.serviceId && + this.tripId == other.tripId && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + serviceDate, + startTime, + endTime, + headway, + serviceId, + tripId, + additionalProperties, + ) + } + return hashCode + } + + override fun toString() = + "ScheduleFrequency{serviceDate=$serviceDate, startTime=$startTime, endTime=$endTime, headway=$headway, serviceId=$serviceId, tripId=$tripId, additionalProperties=$additionalProperties}" + } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is StopRouteDirectionSchedule && + this.scheduleFrequencies == other.scheduleFrequencies && + this.scheduleStopTimes == other.scheduleStopTimes && + this.tripHeadsign == other.tripHeadsign && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + scheduleFrequencies, + scheduleStopTimes, + tripHeadsign, + additionalProperties, + ) + } + return hashCode + } + + override fun toString() = + "StopRouteDirectionSchedule{scheduleFrequencies=$scheduleFrequencies, scheduleStopTimes=$scheduleStopTimes, tripHeadsign=$tripHeadsign, additionalProperties=$additionalProperties}" + } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is StopRouteSchedule && + this.routeId == other.routeId && + this.stopRouteDirectionSchedules == other.stopRouteDirectionSchedules && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + routeId, + stopRouteDirectionSchedules, + additionalProperties, + ) } + return hashCode + } + + override fun toString() = + "StopRouteSchedule{routeId=$routeId, stopRouteDirectionSchedules=$stopRouteDirectionSchedules, additionalProperties=$additionalProperties}" + } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is Entry && + this.date == other.date && + this.stopId == other.stopId && + this.stopRouteSchedules == other.stopRouteSchedules && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + date, + stopId, + stopRouteSchedules, + additionalProperties, + ) } + return hashCode + } + + override fun toString() = + "Entry{date=$date, stopId=$stopId, stopRouteSchedules=$stopRouteSchedules, additionalProperties=$additionalProperties}" + } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true } + + return other is Data && + this.entry == other.entry && + this.references == other.references && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + entry, + references, + additionalProperties, + ) + } + return hashCode + } + + override fun toString() = + "Data{entry=$entry, references=$references, additionalProperties=$additionalProperties}" + } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true } + + return other is ScheduleForStopRetrieveResponse && + this.code == other.code && + this.currentTime == other.currentTime && + this.text == other.text && + this.version == other.version && + this.data == other.data && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + code, + currentTime, + text, + version, + data, + additionalProperties, + ) + } + return hashCode } + + override fun toString() = + "ScheduleForStopRetrieveResponse{code=$code, currentTime=$currentTime, text=$text, version=$version, data=$data, additionalProperties=$additionalProperties}" } diff --git a/onebusaway-sdk-java-core/src/main/kotlin/org/onebusaway/models/SearchForRouteListResponse.kt b/onebusaway-sdk-java-core/src/main/kotlin/org/onebusaway/models/SearchForRouteListResponse.kt index 014a7a2..7e9afd9 100644 --- a/onebusaway-sdk-java-core/src/main/kotlin/org/onebusaway/models/SearchForRouteListResponse.kt +++ b/onebusaway-sdk-java-core/src/main/kotlin/org/onebusaway/models/SearchForRouteListResponse.kt @@ -29,8 +29,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - fun code(): Long = code.getRequired("code") fun currentTime(): Long = currentTime.getRequired("currentTime") @@ -76,38 +74,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is SearchForRouteListResponse && - this.code == other.code && - this.currentTime == other.currentTime && - this.text == other.text && - this.version == other.version && - this.data == other.data && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - code, - currentTime, - text, - version, - data, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "SearchForRouteListResponse{code=$code, currentTime=$currentTime, text=$text, version=$version, data=$data, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -200,8 +166,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - fun limitExceeded(): Boolean = limitExceeded.getRequired("limitExceeded") fun list(): kotlin.collections.List = list.getRequired("list") @@ -234,36 +198,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is Data && - this.limitExceeded == other.limitExceeded && - this.list == other.list && - this.outOfRange == other.outOfRange && - this.references == other.references && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - limitExceeded, - list, - outOfRange, - references, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "Data{limitExceeded=$limitExceeded, list=$list, outOfRange=$outOfRange, references=$references, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -357,8 +291,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - fun agencyId(): String = agencyId.getRequired("agencyId") fun color(): Optional = Optional.ofNullable(color.getNullable("color")) @@ -427,48 +359,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is List && - this.agencyId == other.agencyId && - this.color == other.color && - this.description == other.description && - this.id == other.id && - this.longName == other.longName && - this.nullSafeShortName == other.nullSafeShortName && - this.shortName == other.shortName && - this.textColor == other.textColor && - this.type == other.type && - this.url == other.url && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - agencyId, - color, - description, - id, - longName, - nullSafeShortName, - shortName, - textColor, - type, - url, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "List{agencyId=$agencyId, color=$color, description=$description, id=$id, longName=$longName, nullSafeShortName=$nullSafeShortName, shortName=$shortName, textColor=$textColor, type=$type, url=$url, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -598,6 +488,116 @@ private constructor( additionalProperties.toUnmodifiable(), ) } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is List && + this.agencyId == other.agencyId && + this.color == other.color && + this.description == other.description && + this.id == other.id && + this.longName == other.longName && + this.nullSafeShortName == other.nullSafeShortName && + this.shortName == other.shortName && + this.textColor == other.textColor && + this.type == other.type && + this.url == other.url && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + agencyId, + color, + description, + id, + longName, + nullSafeShortName, + shortName, + textColor, + type, + url, + additionalProperties, + ) + } + return hashCode + } + + override fun toString() = + "List{agencyId=$agencyId, color=$color, description=$description, id=$id, longName=$longName, nullSafeShortName=$nullSafeShortName, shortName=$shortName, textColor=$textColor, type=$type, url=$url, additionalProperties=$additionalProperties}" + } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is Data && + this.limitExceeded == other.limitExceeded && + this.list == other.list && + this.outOfRange == other.outOfRange && + this.references == other.references && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + limitExceeded, + list, + outOfRange, + references, + additionalProperties, + ) + } + return hashCode } + + override fun toString() = + "Data{limitExceeded=$limitExceeded, list=$list, outOfRange=$outOfRange, references=$references, additionalProperties=$additionalProperties}" } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is SearchForRouteListResponse && + this.code == other.code && + this.currentTime == other.currentTime && + this.text == other.text && + this.version == other.version && + this.data == other.data && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + code, + currentTime, + text, + version, + data, + additionalProperties, + ) + } + return hashCode + } + + override fun toString() = + "SearchForRouteListResponse{code=$code, currentTime=$currentTime, text=$text, version=$version, data=$data, additionalProperties=$additionalProperties}" } diff --git a/onebusaway-sdk-java-core/src/main/kotlin/org/onebusaway/models/SearchForStopListResponse.kt b/onebusaway-sdk-java-core/src/main/kotlin/org/onebusaway/models/SearchForStopListResponse.kt index 752619a..95b2ae4 100644 --- a/onebusaway-sdk-java-core/src/main/kotlin/org/onebusaway/models/SearchForStopListResponse.kt +++ b/onebusaway-sdk-java-core/src/main/kotlin/org/onebusaway/models/SearchForStopListResponse.kt @@ -29,8 +29,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - fun code(): Long = code.getRequired("code") fun currentTime(): Long = currentTime.getRequired("currentTime") @@ -76,38 +74,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is SearchForStopListResponse && - this.code == other.code && - this.currentTime == other.currentTime && - this.text == other.text && - this.version == other.version && - this.data == other.data && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - code, - currentTime, - text, - version, - data, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "SearchForStopListResponse{code=$code, currentTime=$currentTime, text=$text, version=$version, data=$data, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -200,8 +166,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - fun limitExceeded(): Boolean = limitExceeded.getRequired("limitExceeded") fun list(): kotlin.collections.List = list.getRequired("list") @@ -234,36 +198,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is Data && - this.limitExceeded == other.limitExceeded && - this.list == other.list && - this.outOfRange == other.outOfRange && - this.references == other.references && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - limitExceeded, - list, - outOfRange, - references, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "Data{limitExceeded=$limitExceeded, list=$list, outOfRange=$outOfRange, references=$references, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -358,8 +292,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - fun code(): String = code.getRequired("code") fun direction(): Optional = @@ -434,50 +366,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is List && - this.code == other.code && - this.direction == other.direction && - this.id == other.id && - this.lat == other.lat && - this.locationType == other.locationType && - this.lon == other.lon && - this.name == other.name && - this.parent == other.parent && - this.routeIds == other.routeIds && - this.staticRouteIds == other.staticRouteIds && - this.wheelchairBoarding == other.wheelchairBoarding && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - code, - direction, - id, - lat, - locationType, - lon, - name, - parent, - routeIds, - staticRouteIds, - wheelchairBoarding, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "List{code=$code, direction=$direction, id=$id, lat=$lat, locationType=$locationType, lon=$lon, name=$name, parent=$parent, routeIds=$routeIds, staticRouteIds=$staticRouteIds, wheelchairBoarding=$wheelchairBoarding, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -624,6 +512,118 @@ private constructor( additionalProperties.toUnmodifiable(), ) } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is List && + this.code == other.code && + this.direction == other.direction && + this.id == other.id && + this.lat == other.lat && + this.locationType == other.locationType && + this.lon == other.lon && + this.name == other.name && + this.parent == other.parent && + this.routeIds == other.routeIds && + this.staticRouteIds == other.staticRouteIds && + this.wheelchairBoarding == other.wheelchairBoarding && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + code, + direction, + id, + lat, + locationType, + lon, + name, + parent, + routeIds, + staticRouteIds, + wheelchairBoarding, + additionalProperties, + ) + } + return hashCode + } + + override fun toString() = + "List{code=$code, direction=$direction, id=$id, lat=$lat, locationType=$locationType, lon=$lon, name=$name, parent=$parent, routeIds=$routeIds, staticRouteIds=$staticRouteIds, wheelchairBoarding=$wheelchairBoarding, additionalProperties=$additionalProperties}" + } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is Data && + this.limitExceeded == other.limitExceeded && + this.list == other.list && + this.outOfRange == other.outOfRange && + this.references == other.references && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + limitExceeded, + list, + outOfRange, + references, + additionalProperties, + ) + } + return hashCode + } + + override fun toString() = + "Data{limitExceeded=$limitExceeded, list=$list, outOfRange=$outOfRange, references=$references, additionalProperties=$additionalProperties}" + } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true } + + return other is SearchForStopListResponse && + this.code == other.code && + this.currentTime == other.currentTime && + this.text == other.text && + this.version == other.version && + this.data == other.data && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + code, + currentTime, + text, + version, + data, + additionalProperties, + ) + } + return hashCode } + + override fun toString() = + "SearchForStopListResponse{code=$code, currentTime=$currentTime, text=$text, version=$version, data=$data, additionalProperties=$additionalProperties}" } diff --git a/onebusaway-sdk-java-core/src/main/kotlin/org/onebusaway/models/ShapeRetrieveResponse.kt b/onebusaway-sdk-java-core/src/main/kotlin/org/onebusaway/models/ShapeRetrieveResponse.kt index b3d39f3..beb878a 100644 --- a/onebusaway-sdk-java-core/src/main/kotlin/org/onebusaway/models/ShapeRetrieveResponse.kt +++ b/onebusaway-sdk-java-core/src/main/kotlin/org/onebusaway/models/ShapeRetrieveResponse.kt @@ -29,8 +29,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - fun code(): Long = code.getRequired("code") fun currentTime(): Long = currentTime.getRequired("currentTime") @@ -76,38 +74,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is ShapeRetrieveResponse && - this.code == other.code && - this.currentTime == other.currentTime && - this.text == other.text && - this.version == other.version && - this.data == other.data && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - code, - currentTime, - text, - version, - data, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "ShapeRetrieveResponse{code=$code, currentTime=$currentTime, text=$text, version=$version, data=$data, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -198,8 +164,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - fun entry(): Entry = entry.getRequired("entry") fun references(): References = references.getRequired("references") @@ -222,32 +186,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is Data && - this.entry == other.entry && - this.references == other.references && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - entry, - references, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "Data{entry=$entry, references=$references, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -314,8 +252,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - fun length(): Long = length.getRequired("length") fun levels(): Optional = Optional.ofNullable(levels.getNullable("levels")) @@ -345,34 +281,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is Entry && - this.length == other.length && - this.levels == other.levels && - this.points == other.points && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - length, - levels, - points, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "Entry{length=$length, levels=$levels, points=$points, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -436,6 +344,98 @@ private constructor( additionalProperties.toUnmodifiable(), ) } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is Entry && + this.length == other.length && + this.levels == other.levels && + this.points == other.points && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + length, + levels, + points, + additionalProperties, + ) + } + return hashCode + } + + override fun toString() = + "Entry{length=$length, levels=$levels, points=$points, additionalProperties=$additionalProperties}" + } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is Data && + this.entry == other.entry && + this.references == other.references && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + entry, + references, + additionalProperties, + ) + } + return hashCode + } + + override fun toString() = + "Data{entry=$entry, references=$references, additionalProperties=$additionalProperties}" + } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is ShapeRetrieveResponse && + this.code == other.code && + this.currentTime == other.currentTime && + this.text == other.text && + this.version == other.version && + this.data == other.data && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + code, + currentTime, + text, + version, + data, + additionalProperties, + ) } + return hashCode } + + override fun toString() = + "ShapeRetrieveResponse{code=$code, currentTime=$currentTime, text=$text, version=$version, data=$data, additionalProperties=$additionalProperties}" } diff --git a/onebusaway-sdk-java-core/src/main/kotlin/org/onebusaway/models/StopIdsForAgencyListResponse.kt b/onebusaway-sdk-java-core/src/main/kotlin/org/onebusaway/models/StopIdsForAgencyListResponse.kt index 3ef7440..7c87b07 100644 --- a/onebusaway-sdk-java-core/src/main/kotlin/org/onebusaway/models/StopIdsForAgencyListResponse.kt +++ b/onebusaway-sdk-java-core/src/main/kotlin/org/onebusaway/models/StopIdsForAgencyListResponse.kt @@ -28,8 +28,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - fun code(): Long = code.getRequired("code") fun currentTime(): Long = currentTime.getRequired("currentTime") @@ -75,38 +73,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is StopIdsForAgencyListResponse && - this.code == other.code && - this.currentTime == other.currentTime && - this.text == other.text && - this.version == other.version && - this.data == other.data && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - code, - currentTime, - text, - version, - data, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "StopIdsForAgencyListResponse{code=$code, currentTime=$currentTime, text=$text, version=$version, data=$data, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -198,8 +164,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - fun limitExceeded(): Boolean = limitExceeded.getRequired("limitExceeded") fun list(): List = list.getRequired("list") @@ -227,34 +191,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is Data && - this.limitExceeded == other.limitExceeded && - this.list == other.list && - this.references == other.references && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - limitExceeded, - list, - references, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "Data{limitExceeded=$limitExceeded, list=$list, references=$references, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -319,5 +255,69 @@ private constructor( additionalProperties.toUnmodifiable(), ) } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is Data && + this.limitExceeded == other.limitExceeded && + this.list == other.list && + this.references == other.references && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + limitExceeded, + list, + references, + additionalProperties, + ) + } + return hashCode + } + + override fun toString() = + "Data{limitExceeded=$limitExceeded, list=$list, references=$references, additionalProperties=$additionalProperties}" + } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is StopIdsForAgencyListResponse && + this.code == other.code && + this.currentTime == other.currentTime && + this.text == other.text && + this.version == other.version && + this.data == other.data && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + code, + currentTime, + text, + version, + data, + additionalProperties, + ) + } + return hashCode } + + override fun toString() = + "StopIdsForAgencyListResponse{code=$code, currentTime=$currentTime, text=$text, version=$version, data=$data, additionalProperties=$additionalProperties}" } diff --git a/onebusaway-sdk-java-core/src/main/kotlin/org/onebusaway/models/StopRetrieveResponse.kt b/onebusaway-sdk-java-core/src/main/kotlin/org/onebusaway/models/StopRetrieveResponse.kt index fccd764..8a60d23 100644 --- a/onebusaway-sdk-java-core/src/main/kotlin/org/onebusaway/models/StopRetrieveResponse.kt +++ b/onebusaway-sdk-java-core/src/main/kotlin/org/onebusaway/models/StopRetrieveResponse.kt @@ -29,8 +29,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - fun code(): Long = code.getRequired("code") fun currentTime(): Long = currentTime.getRequired("currentTime") @@ -76,38 +74,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is StopRetrieveResponse && - this.code == other.code && - this.currentTime == other.currentTime && - this.text == other.text && - this.version == other.version && - this.data == other.data && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - code, - currentTime, - text, - version, - data, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "StopRetrieveResponse{code=$code, currentTime=$currentTime, text=$text, version=$version, data=$data, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -198,8 +164,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - fun entry(): Entry = entry.getRequired("entry") fun references(): References = references.getRequired("references") @@ -222,32 +186,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is Data && - this.entry == other.entry && - this.references == other.references && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - entry, - references, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "Data{entry=$entry, references=$references, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -322,8 +260,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - fun code(): String = code.getRequired("code") fun direction(): Optional = @@ -398,50 +334,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is Entry && - this.code == other.code && - this.direction == other.direction && - this.id == other.id && - this.lat == other.lat && - this.locationType == other.locationType && - this.lon == other.lon && - this.name == other.name && - this.parent == other.parent && - this.routeIds == other.routeIds && - this.staticRouteIds == other.staticRouteIds && - this.wheelchairBoarding == other.wheelchairBoarding && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - code, - direction, - id, - lat, - locationType, - lon, - name, - parent, - routeIds, - staticRouteIds, - wheelchairBoarding, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "Entry{code=$code, direction=$direction, id=$id, lat=$lat, locationType=$locationType, lon=$lon, name=$name, parent=$parent, routeIds=$routeIds, staticRouteIds=$staticRouteIds, wheelchairBoarding=$wheelchairBoarding, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -583,6 +475,114 @@ private constructor( additionalProperties.toUnmodifiable(), ) } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is Entry && + this.code == other.code && + this.direction == other.direction && + this.id == other.id && + this.lat == other.lat && + this.locationType == other.locationType && + this.lon == other.lon && + this.name == other.name && + this.parent == other.parent && + this.routeIds == other.routeIds && + this.staticRouteIds == other.staticRouteIds && + this.wheelchairBoarding == other.wheelchairBoarding && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + code, + direction, + id, + lat, + locationType, + lon, + name, + parent, + routeIds, + staticRouteIds, + wheelchairBoarding, + additionalProperties, + ) + } + return hashCode + } + + override fun toString() = + "Entry{code=$code, direction=$direction, id=$id, lat=$lat, locationType=$locationType, lon=$lon, name=$name, parent=$parent, routeIds=$routeIds, staticRouteIds=$staticRouteIds, wheelchairBoarding=$wheelchairBoarding, additionalProperties=$additionalProperties}" + } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is Data && + this.entry == other.entry && + this.references == other.references && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + entry, + references, + additionalProperties, + ) + } + return hashCode + } + + override fun toString() = + "Data{entry=$entry, references=$references, additionalProperties=$additionalProperties}" + } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is StopRetrieveResponse && + this.code == other.code && + this.currentTime == other.currentTime && + this.text == other.text && + this.version == other.version && + this.data == other.data && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + code, + currentTime, + text, + version, + data, + additionalProperties, + ) } + return hashCode } + + override fun toString() = + "StopRetrieveResponse{code=$code, currentTime=$currentTime, text=$text, version=$version, data=$data, additionalProperties=$additionalProperties}" } diff --git a/onebusaway-sdk-java-core/src/main/kotlin/org/onebusaway/models/StopsForLocationListResponse.kt b/onebusaway-sdk-java-core/src/main/kotlin/org/onebusaway/models/StopsForLocationListResponse.kt index e770116..e21c416 100644 --- a/onebusaway-sdk-java-core/src/main/kotlin/org/onebusaway/models/StopsForLocationListResponse.kt +++ b/onebusaway-sdk-java-core/src/main/kotlin/org/onebusaway/models/StopsForLocationListResponse.kt @@ -29,8 +29,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - fun code(): Long = code.getRequired("code") fun currentTime(): Long = currentTime.getRequired("currentTime") @@ -76,38 +74,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is StopsForLocationListResponse && - this.code == other.code && - this.currentTime == other.currentTime && - this.text == other.text && - this.version == other.version && - this.data == other.data && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - code, - currentTime, - text, - version, - data, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "StopsForLocationListResponse{code=$code, currentTime=$currentTime, text=$text, version=$version, data=$data, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -199,8 +165,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - fun limitExceeded(): Boolean = limitExceeded.getRequired("limitExceeded") fun list(): kotlin.collections.List = list.getRequired("list") @@ -228,34 +192,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is Data && - this.limitExceeded == other.limitExceeded && - this.list == other.list && - this.references == other.references && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - limitExceeded, - list, - references, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "Data{limitExceeded=$limitExceeded, list=$list, references=$references, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -341,8 +277,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - fun code(): Optional = Optional.ofNullable(code.getNullable("code")) fun direction(): Optional = @@ -416,50 +350,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is List && - this.code == other.code && - this.direction == other.direction && - this.id == other.id && - this.lat == other.lat && - this.locationType == other.locationType && - this.lon == other.lon && - this.name == other.name && - this.parent == other.parent && - this.routeIds == other.routeIds && - this.staticRouteIds == other.staticRouteIds && - this.wheelchairBoarding == other.wheelchairBoarding && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - code, - direction, - id, - lat, - locationType, - lon, - name, - parent, - routeIds, - staticRouteIds, - wheelchairBoarding, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "List{code=$code, direction=$direction, id=$id, lat=$lat, locationType=$locationType, lon=$lon, name=$name, parent=$parent, routeIds=$routeIds, staticRouteIds=$staticRouteIds, wheelchairBoarding=$wheelchairBoarding, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -606,6 +496,116 @@ private constructor( additionalProperties.toUnmodifiable(), ) } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is List && + this.code == other.code && + this.direction == other.direction && + this.id == other.id && + this.lat == other.lat && + this.locationType == other.locationType && + this.lon == other.lon && + this.name == other.name && + this.parent == other.parent && + this.routeIds == other.routeIds && + this.staticRouteIds == other.staticRouteIds && + this.wheelchairBoarding == other.wheelchairBoarding && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + code, + direction, + id, + lat, + locationType, + lon, + name, + parent, + routeIds, + staticRouteIds, + wheelchairBoarding, + additionalProperties, + ) + } + return hashCode + } + + override fun toString() = + "List{code=$code, direction=$direction, id=$id, lat=$lat, locationType=$locationType, lon=$lon, name=$name, parent=$parent, routeIds=$routeIds, staticRouteIds=$staticRouteIds, wheelchairBoarding=$wheelchairBoarding, additionalProperties=$additionalProperties}" + } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is Data && + this.limitExceeded == other.limitExceeded && + this.list == other.list && + this.references == other.references && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + limitExceeded, + list, + references, + additionalProperties, + ) + } + return hashCode } + + override fun toString() = + "Data{limitExceeded=$limitExceeded, list=$list, references=$references, additionalProperties=$additionalProperties}" } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is StopsForLocationListResponse && + this.code == other.code && + this.currentTime == other.currentTime && + this.text == other.text && + this.version == other.version && + this.data == other.data && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + code, + currentTime, + text, + version, + data, + additionalProperties, + ) + } + return hashCode + } + + override fun toString() = + "StopsForLocationListResponse{code=$code, currentTime=$currentTime, text=$text, version=$version, data=$data, additionalProperties=$additionalProperties}" } diff --git a/onebusaway-sdk-java-core/src/main/kotlin/org/onebusaway/models/StopsForRouteListResponse.kt b/onebusaway-sdk-java-core/src/main/kotlin/org/onebusaway/models/StopsForRouteListResponse.kt index 7c85743..7db6d57 100644 --- a/onebusaway-sdk-java-core/src/main/kotlin/org/onebusaway/models/StopsForRouteListResponse.kt +++ b/onebusaway-sdk-java-core/src/main/kotlin/org/onebusaway/models/StopsForRouteListResponse.kt @@ -29,8 +29,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - fun code(): Long = code.getRequired("code") fun currentTime(): Long = currentTime.getRequired("currentTime") @@ -76,38 +74,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is StopsForRouteListResponse && - this.code == other.code && - this.currentTime == other.currentTime && - this.text == other.text && - this.version == other.version && - this.data == other.data && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - code, - currentTime, - text, - version, - data, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "StopsForRouteListResponse{code=$code, currentTime=$currentTime, text=$text, version=$version, data=$data, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -198,8 +164,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - fun entry(): Entry = entry.getRequired("entry") fun references(): References = references.getRequired("references") @@ -222,32 +186,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is Data && - this.entry == other.entry && - this.references == other.references && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - entry, - references, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "Data{entry=$entry, references=$references, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -315,8 +253,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - fun polylines(): Optional> = Optional.ofNullable(polylines.getNullable("polylines")) @@ -352,36 +288,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is Entry && - this.polylines == other.polylines && - this.routeId == other.routeId && - this.stopGroupings == other.stopGroupings && - this.stopIds == other.stopIds && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - polylines, - routeId, - stopGroupings, - stopIds, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "Entry{polylines=$polylines, routeId=$routeId, stopGroupings=$stopGroupings, stopIds=$stopIds, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -470,8 +376,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - fun length(): Optional = Optional.ofNullable(length.getNullable("length")) fun levels(): Optional = Optional.ofNullable(levels.getNullable("levels")) @@ -499,34 +403,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is Polyline && - this.length == other.length && - this.levels == other.levels && - this.points == other.points && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - length, - levels, - points, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "Polyline{length=$length, levels=$levels, points=$points, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -588,6 +464,36 @@ private constructor( additionalProperties.toUnmodifiable(), ) } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is Polyline && + this.length == other.length && + this.levels == other.levels && + this.points == other.points && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + length, + levels, + points, + additionalProperties, + ) + } + return hashCode + } + + override fun toString() = + "Polyline{length=$length, levels=$levels, points=$points, additionalProperties=$additionalProperties}" } @JsonDeserialize(builder = StopGrouping.Builder::class) @@ -603,8 +509,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - fun id(): Optional = Optional.ofNullable(id.getNullable("id")) fun name(): Optional = Optional.ofNullable(name.getNullable("name")) @@ -639,36 +543,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is StopGrouping && - this.id == other.id && - this.name == other.name && - this.polylines == other.polylines && - this.stopIds == other.stopIds && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - id, - name, - polylines, - stopIds, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "StopGrouping{id=$id, name=$name, polylines=$polylines, stopIds=$stopIds, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -754,8 +628,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - fun name(): Optional = Optional.ofNullable(name.getNullable("name")) fun names(): Optional> = @@ -784,34 +656,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is Name && - this.name == other.name && - this.names == other.names && - this.type == other.type && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - name, - names, - type, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "Name{name=$name, names=$names, type=$type, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -874,6 +718,36 @@ private constructor( additionalProperties.toUnmodifiable(), ) } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is Name && + this.name == other.name && + this.names == other.names && + this.type == other.type && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + name, + names, + type, + additionalProperties, + ) + } + return hashCode + } + + override fun toString() = + "Name{name=$name, names=$names, type=$type, additionalProperties=$additionalProperties}" } @JsonDeserialize(builder = Polyline.Builder::class) @@ -888,8 +762,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - fun length(): Optional = Optional.ofNullable(length.getNullable("length")) fun levels(): Optional = @@ -919,34 +791,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is Polyline && - this.length == other.length && - this.levels == other.levels && - this.points == other.points && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - length, - levels, - points, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "Polyline{length=$length, levels=$levels, points=$points, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -1009,8 +853,164 @@ private constructor( additionalProperties.toUnmodifiable(), ) } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is Polyline && + this.length == other.length && + this.levels == other.levels && + this.points == other.points && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + length, + levels, + points, + additionalProperties, + ) + } + return hashCode + } + + override fun toString() = + "Polyline{length=$length, levels=$levels, points=$points, additionalProperties=$additionalProperties}" + } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is StopGrouping && + this.id == other.id && + this.name == other.name && + this.polylines == other.polylines && + this.stopIds == other.stopIds && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + id, + name, + polylines, + stopIds, + additionalProperties, + ) + } + return hashCode + } + + override fun toString() = + "StopGrouping{id=$id, name=$name, polylines=$polylines, stopIds=$stopIds, additionalProperties=$additionalProperties}" + } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is Entry && + this.polylines == other.polylines && + this.routeId == other.routeId && + this.stopGroupings == other.stopGroupings && + this.stopIds == other.stopIds && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + polylines, + routeId, + stopGroupings, + stopIds, + additionalProperties, + ) } + return hashCode + } + + override fun toString() = + "Entry{polylines=$polylines, routeId=$routeId, stopGroupings=$stopGroupings, stopIds=$stopIds, additionalProperties=$additionalProperties}" + } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is Data && + this.entry == other.entry && + this.references == other.references && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + entry, + references, + additionalProperties, + ) } + return hashCode + } + + override fun toString() = + "Data{entry=$entry, references=$references, additionalProperties=$additionalProperties}" + } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is StopsForRouteListResponse && + this.code == other.code && + this.currentTime == other.currentTime && + this.text == other.text && + this.version == other.version && + this.data == other.data && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + code, + currentTime, + text, + version, + data, + additionalProperties, + ) } + return hashCode } + + override fun toString() = + "StopsForRouteListResponse{code=$code, currentTime=$currentTime, text=$text, version=$version, data=$data, additionalProperties=$additionalProperties}" } diff --git a/onebusaway-sdk-java-core/src/main/kotlin/org/onebusaway/models/TripDetailRetrieveResponse.kt b/onebusaway-sdk-java-core/src/main/kotlin/org/onebusaway/models/TripDetailRetrieveResponse.kt index 7708067..f8a5d66 100644 --- a/onebusaway-sdk-java-core/src/main/kotlin/org/onebusaway/models/TripDetailRetrieveResponse.kt +++ b/onebusaway-sdk-java-core/src/main/kotlin/org/onebusaway/models/TripDetailRetrieveResponse.kt @@ -29,8 +29,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - fun code(): Long = code.getRequired("code") fun currentTime(): Long = currentTime.getRequired("currentTime") @@ -76,38 +74,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is TripDetailRetrieveResponse && - this.code == other.code && - this.currentTime == other.currentTime && - this.text == other.text && - this.version == other.version && - this.data == other.data && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - code, - currentTime, - text, - version, - data, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "TripDetailRetrieveResponse{code=$code, currentTime=$currentTime, text=$text, version=$version, data=$data, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -198,8 +164,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - fun entry(): Entry = entry.getRequired("entry") fun references(): References = references.getRequired("references") @@ -222,32 +186,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is Data && - this.entry == other.entry && - this.references == other.references && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - entry, - references, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "Data{entry=$entry, references=$references, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -317,8 +255,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - fun frequency(): Optional = Optional.ofNullable(frequency.getNullable("frequency")) @@ -365,40 +301,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is Entry && - this.frequency == other.frequency && - this.schedule == other.schedule && - this.serviceDate == other.serviceDate && - this.situationIds == other.situationIds && - this.status == other.status && - this.tripId == other.tripId && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - frequency, - schedule, - serviceDate, - situationIds, - status, - tripId, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "Entry{frequency=$frequency, schedule=$schedule, serviceDate=$serviceDate, situationIds=$situationIds, status=$status, tripId=$tripId, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -507,8 +409,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - fun frequency(): Optional = Optional.ofNullable(frequency.getNullable("frequency")) @@ -549,38 +449,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is Schedule && - this.frequency == other.frequency && - this.nextTripId == other.nextTripId && - this.previousTripId == other.previousTripId && - this.stopTimes == other.stopTimes && - this.timeZone == other.timeZone && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - frequency, - nextTripId, - previousTripId, - stopTimes, - timeZone, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "Schedule{frequency=$frequency, nextTripId=$nextTripId, previousTripId=$previousTripId, stopTimes=$stopTimes, timeZone=$timeZone, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -685,8 +553,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - fun arrivalTime(): Optional = Optional.ofNullable(arrivalTime.getNullable("arrivalTime")) @@ -741,40 +607,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is StopTime && - this.arrivalTime == other.arrivalTime && - this.departureTime == other.departureTime && - this.distanceAlongTrip == other.distanceAlongTrip && - this.historicalOccupancy == other.historicalOccupancy && - this.stopHeadsign == other.stopHeadsign && - this.stopId == other.stopId && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - arrivalTime, - departureTime, - distanceAlongTrip, - historicalOccupancy, - stopHeadsign, - stopId, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "StopTime{arrivalTime=$arrivalTime, departureTime=$departureTime, distanceAlongTrip=$distanceAlongTrip, historicalOccupancy=$historicalOccupancy, stopHeadsign=$stopHeadsign, stopId=$stopId, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -878,7 +710,77 @@ private constructor( additionalProperties.toUnmodifiable(), ) } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is StopTime && + this.arrivalTime == other.arrivalTime && + this.departureTime == other.departureTime && + this.distanceAlongTrip == other.distanceAlongTrip && + this.historicalOccupancy == other.historicalOccupancy && + this.stopHeadsign == other.stopHeadsign && + this.stopId == other.stopId && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + arrivalTime, + departureTime, + distanceAlongTrip, + historicalOccupancy, + stopHeadsign, + stopId, + additionalProperties, + ) + } + return hashCode + } + + override fun toString() = + "StopTime{arrivalTime=$arrivalTime, departureTime=$departureTime, distanceAlongTrip=$distanceAlongTrip, historicalOccupancy=$historicalOccupancy, stopHeadsign=$stopHeadsign, stopId=$stopId, additionalProperties=$additionalProperties}" + } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is Schedule && + this.frequency == other.frequency && + this.nextTripId == other.nextTripId && + this.previousTripId == other.previousTripId && + this.stopTimes == other.stopTimes && + this.timeZone == other.timeZone && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + frequency, + nextTripId, + previousTripId, + stopTimes, + timeZone, + additionalProperties, + ) + } + return hashCode } + + override fun toString() = + "Schedule{frequency=$frequency, nextTripId=$nextTripId, previousTripId=$previousTripId, stopTimes=$stopTimes, timeZone=$timeZone, additionalProperties=$additionalProperties}" } @JsonDeserialize(builder = Status.Builder::class) @@ -917,8 +819,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - /** Trip ID of the trip the vehicle is actively serving. */ fun activeTripId(): String = activeTripId.getRequired("activeTripId") @@ -1208,83 +1108,7 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is Status && - this.activeTripId == other.activeTripId && - this.blockTripSequence == other.blockTripSequence && - this.closestStop == other.closestStop && - this.closestStopTimeOffset == other.closestStopTimeOffset && - this.distanceAlongTrip == other.distanceAlongTrip && - this.frequency == other.frequency && - this.lastKnownDistanceAlongTrip == other.lastKnownDistanceAlongTrip && - this.lastKnownLocation == other.lastKnownLocation && - this.lastKnownOrientation == other.lastKnownOrientation && - this.lastLocationUpdateTime == other.lastLocationUpdateTime && - this.lastUpdateTime == other.lastUpdateTime && - this.nextStop == other.nextStop && - this.nextStopTimeOffset == other.nextStopTimeOffset && - this.occupancyCapacity == other.occupancyCapacity && - this.occupancyCount == other.occupancyCount && - this.occupancyStatus == other.occupancyStatus && - this.orientation == other.orientation && - this.phase == other.phase && - this.position == other.position && - this.predicted == other.predicted && - this.scheduleDeviation == other.scheduleDeviation && - this.scheduledDistanceAlongTrip == other.scheduledDistanceAlongTrip && - this.serviceDate == other.serviceDate && - this.situationIds == other.situationIds && - this.status == other.status && - this.totalDistanceAlongTrip == other.totalDistanceAlongTrip && - this.vehicleId == other.vehicleId && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - activeTripId, - blockTripSequence, - closestStop, - closestStopTimeOffset, - distanceAlongTrip, - frequency, - lastKnownDistanceAlongTrip, - lastKnownLocation, - lastKnownOrientation, - lastLocationUpdateTime, - lastUpdateTime, - nextStop, - nextStopTimeOffset, - occupancyCapacity, - occupancyCount, - occupancyStatus, - orientation, - phase, - position, - predicted, - scheduleDeviation, - scheduledDistanceAlongTrip, - serviceDate, - situationIds, - status, - totalDistanceAlongTrip, - vehicleId, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "Status{activeTripId=$activeTripId, blockTripSequence=$blockTripSequence, closestStop=$closestStop, closestStopTimeOffset=$closestStopTimeOffset, distanceAlongTrip=$distanceAlongTrip, frequency=$frequency, lastKnownDistanceAlongTrip=$lastKnownDistanceAlongTrip, lastKnownLocation=$lastKnownLocation, lastKnownOrientation=$lastKnownOrientation, lastLocationUpdateTime=$lastLocationUpdateTime, lastUpdateTime=$lastUpdateTime, nextStop=$nextStop, nextStopTimeOffset=$nextStopTimeOffset, occupancyCapacity=$occupancyCapacity, occupancyCount=$occupancyCount, occupancyStatus=$occupancyStatus, orientation=$orientation, phase=$phase, position=$position, predicted=$predicted, scheduleDeviation=$scheduleDeviation, scheduledDistanceAlongTrip=$scheduledDistanceAlongTrip, serviceDate=$serviceDate, situationIds=$situationIds, status=$status, totalDistanceAlongTrip=$totalDistanceAlongTrip, vehicleId=$vehicleId, additionalProperties=$additionalProperties}" - - companion object { + companion object { @JvmStatic fun builder() = Builder() } @@ -1745,8 +1569,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - /** Latitude of the last known location of the transit vehicle. */ fun lat(): Optional = Optional.ofNullable(lat.getNullable("lat")) @@ -1773,32 +1595,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is LastKnownLocation && - this.lat == other.lat && - this.lon == other.lon && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - lat, - lon, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "LastKnownLocation{lat=$lat, lon=$lon, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -1856,6 +1652,34 @@ private constructor( additionalProperties.toUnmodifiable(), ) } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is LastKnownLocation && + this.lat == other.lat && + this.lon == other.lon && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + lat, + lon, + additionalProperties, + ) + } + return hashCode + } + + override fun toString() = + "LastKnownLocation{lat=$lat, lon=$lon, additionalProperties=$additionalProperties}" } /** Current position of the transit vehicle. */ @@ -1870,8 +1694,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - /** Latitude of the current position of the transit vehicle. */ fun lat(): Optional = Optional.ofNullable(lat.getNullable("lat")) @@ -1898,32 +1720,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is Position && - this.lat == other.lat && - this.lon == other.lon && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - lat, - lon, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "Position{lat=$lat, lon=$lon, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -1981,8 +1777,212 @@ private constructor( additionalProperties.toUnmodifiable(), ) } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is Position && + this.lat == other.lat && + this.lon == other.lon && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + lat, + lon, + additionalProperties, + ) + } + return hashCode + } + + override fun toString() = + "Position{lat=$lat, lon=$lon, additionalProperties=$additionalProperties}" + } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is Status && + this.activeTripId == other.activeTripId && + this.blockTripSequence == other.blockTripSequence && + this.closestStop == other.closestStop && + this.closestStopTimeOffset == other.closestStopTimeOffset && + this.distanceAlongTrip == other.distanceAlongTrip && + this.frequency == other.frequency && + this.lastKnownDistanceAlongTrip == other.lastKnownDistanceAlongTrip && + this.lastKnownLocation == other.lastKnownLocation && + this.lastKnownOrientation == other.lastKnownOrientation && + this.lastLocationUpdateTime == other.lastLocationUpdateTime && + this.lastUpdateTime == other.lastUpdateTime && + this.nextStop == other.nextStop && + this.nextStopTimeOffset == other.nextStopTimeOffset && + this.occupancyCapacity == other.occupancyCapacity && + this.occupancyCount == other.occupancyCount && + this.occupancyStatus == other.occupancyStatus && + this.orientation == other.orientation && + this.phase == other.phase && + this.position == other.position && + this.predicted == other.predicted && + this.scheduleDeviation == other.scheduleDeviation && + this.scheduledDistanceAlongTrip == other.scheduledDistanceAlongTrip && + this.serviceDate == other.serviceDate && + this.situationIds == other.situationIds && + this.status == other.status && + this.totalDistanceAlongTrip == other.totalDistanceAlongTrip && + this.vehicleId == other.vehicleId && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + activeTripId, + blockTripSequence, + closestStop, + closestStopTimeOffset, + distanceAlongTrip, + frequency, + lastKnownDistanceAlongTrip, + lastKnownLocation, + lastKnownOrientation, + lastLocationUpdateTime, + lastUpdateTime, + nextStop, + nextStopTimeOffset, + occupancyCapacity, + occupancyCount, + occupancyStatus, + orientation, + phase, + position, + predicted, + scheduleDeviation, + scheduledDistanceAlongTrip, + serviceDate, + situationIds, + status, + totalDistanceAlongTrip, + vehicleId, + additionalProperties, + ) + } + return hashCode } + + override fun toString() = + "Status{activeTripId=$activeTripId, blockTripSequence=$blockTripSequence, closestStop=$closestStop, closestStopTimeOffset=$closestStopTimeOffset, distanceAlongTrip=$distanceAlongTrip, frequency=$frequency, lastKnownDistanceAlongTrip=$lastKnownDistanceAlongTrip, lastKnownLocation=$lastKnownLocation, lastKnownOrientation=$lastKnownOrientation, lastLocationUpdateTime=$lastLocationUpdateTime, lastUpdateTime=$lastUpdateTime, nextStop=$nextStop, nextStopTimeOffset=$nextStopTimeOffset, occupancyCapacity=$occupancyCapacity, occupancyCount=$occupancyCount, occupancyStatus=$occupancyStatus, orientation=$orientation, phase=$phase, position=$position, predicted=$predicted, scheduleDeviation=$scheduleDeviation, scheduledDistanceAlongTrip=$scheduledDistanceAlongTrip, serviceDate=$serviceDate, situationIds=$situationIds, status=$status, totalDistanceAlongTrip=$totalDistanceAlongTrip, vehicleId=$vehicleId, additionalProperties=$additionalProperties}" } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is Entry && + this.frequency == other.frequency && + this.schedule == other.schedule && + this.serviceDate == other.serviceDate && + this.situationIds == other.situationIds && + this.status == other.status && + this.tripId == other.tripId && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + frequency, + schedule, + serviceDate, + situationIds, + status, + tripId, + additionalProperties, + ) + } + return hashCode + } + + override fun toString() = + "Entry{frequency=$frequency, schedule=$schedule, serviceDate=$serviceDate, situationIds=$situationIds, status=$status, tripId=$tripId, additionalProperties=$additionalProperties}" + } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is Data && + this.entry == other.entry && + this.references == other.references && + this.additionalProperties == other.additionalProperties } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + entry, + references, + additionalProperties, + ) + } + return hashCode + } + + override fun toString() = + "Data{entry=$entry, references=$references, additionalProperties=$additionalProperties}" } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is TripDetailRetrieveResponse && + this.code == other.code && + this.currentTime == other.currentTime && + this.text == other.text && + this.version == other.version && + this.data == other.data && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + code, + currentTime, + text, + version, + data, + additionalProperties, + ) + } + return hashCode + } + + override fun toString() = + "TripDetailRetrieveResponse{code=$code, currentTime=$currentTime, text=$text, version=$version, data=$data, additionalProperties=$additionalProperties}" } diff --git a/onebusaway-sdk-java-core/src/main/kotlin/org/onebusaway/models/TripForVehicleRetrieveResponse.kt b/onebusaway-sdk-java-core/src/main/kotlin/org/onebusaway/models/TripForVehicleRetrieveResponse.kt index 275e46d..3d1404d 100644 --- a/onebusaway-sdk-java-core/src/main/kotlin/org/onebusaway/models/TripForVehicleRetrieveResponse.kt +++ b/onebusaway-sdk-java-core/src/main/kotlin/org/onebusaway/models/TripForVehicleRetrieveResponse.kt @@ -29,8 +29,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - fun code(): Long = code.getRequired("code") fun currentTime(): Long = currentTime.getRequired("currentTime") @@ -76,38 +74,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is TripForVehicleRetrieveResponse && - this.code == other.code && - this.currentTime == other.currentTime && - this.text == other.text && - this.version == other.version && - this.data == other.data && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - code, - currentTime, - text, - version, - data, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "TripForVehicleRetrieveResponse{code=$code, currentTime=$currentTime, text=$text, version=$version, data=$data, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -198,8 +164,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - fun entry(): Entry = entry.getRequired("entry") fun references(): References = references.getRequired("references") @@ -222,32 +186,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is Data && - this.entry == other.entry && - this.references == other.references && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - entry, - references, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "Data{entry=$entry, references=$references, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -317,8 +255,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - fun frequency(): Optional = Optional.ofNullable(frequency.getNullable("frequency")) @@ -365,40 +301,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is Entry && - this.frequency == other.frequency && - this.schedule == other.schedule && - this.serviceDate == other.serviceDate && - this.situationIds == other.situationIds && - this.status == other.status && - this.tripId == other.tripId && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - frequency, - schedule, - serviceDate, - situationIds, - status, - tripId, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "Entry{frequency=$frequency, schedule=$schedule, serviceDate=$serviceDate, situationIds=$situationIds, status=$status, tripId=$tripId, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -507,8 +409,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - fun frequency(): Optional = Optional.ofNullable(frequency.getNullable("frequency")) @@ -549,38 +449,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is Schedule && - this.frequency == other.frequency && - this.nextTripId == other.nextTripId && - this.previousTripId == other.previousTripId && - this.stopTimes == other.stopTimes && - this.timeZone == other.timeZone && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - frequency, - nextTripId, - previousTripId, - stopTimes, - timeZone, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "Schedule{frequency=$frequency, nextTripId=$nextTripId, previousTripId=$previousTripId, stopTimes=$stopTimes, timeZone=$timeZone, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -685,8 +553,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - fun arrivalTime(): Optional = Optional.ofNullable(arrivalTime.getNullable("arrivalTime")) @@ -741,40 +607,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is StopTime && - this.arrivalTime == other.arrivalTime && - this.departureTime == other.departureTime && - this.distanceAlongTrip == other.distanceAlongTrip && - this.historicalOccupancy == other.historicalOccupancy && - this.stopHeadsign == other.stopHeadsign && - this.stopId == other.stopId && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - arrivalTime, - departureTime, - distanceAlongTrip, - historicalOccupancy, - stopHeadsign, - stopId, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "StopTime{arrivalTime=$arrivalTime, departureTime=$departureTime, distanceAlongTrip=$distanceAlongTrip, historicalOccupancy=$historicalOccupancy, stopHeadsign=$stopHeadsign, stopId=$stopId, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -878,7 +710,77 @@ private constructor( additionalProperties.toUnmodifiable(), ) } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is StopTime && + this.arrivalTime == other.arrivalTime && + this.departureTime == other.departureTime && + this.distanceAlongTrip == other.distanceAlongTrip && + this.historicalOccupancy == other.historicalOccupancy && + this.stopHeadsign == other.stopHeadsign && + this.stopId == other.stopId && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + arrivalTime, + departureTime, + distanceAlongTrip, + historicalOccupancy, + stopHeadsign, + stopId, + additionalProperties, + ) + } + return hashCode + } + + override fun toString() = + "StopTime{arrivalTime=$arrivalTime, departureTime=$departureTime, distanceAlongTrip=$distanceAlongTrip, historicalOccupancy=$historicalOccupancy, stopHeadsign=$stopHeadsign, stopId=$stopId, additionalProperties=$additionalProperties}" + } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is Schedule && + this.frequency == other.frequency && + this.nextTripId == other.nextTripId && + this.previousTripId == other.previousTripId && + this.stopTimes == other.stopTimes && + this.timeZone == other.timeZone && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + frequency, + nextTripId, + previousTripId, + stopTimes, + timeZone, + additionalProperties, + ) + } + return hashCode } + + override fun toString() = + "Schedule{frequency=$frequency, nextTripId=$nextTripId, previousTripId=$previousTripId, stopTimes=$stopTimes, timeZone=$timeZone, additionalProperties=$additionalProperties}" } @JsonDeserialize(builder = Status.Builder::class) @@ -917,8 +819,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - /** Trip ID of the trip the vehicle is actively serving. */ fun activeTripId(): String = activeTripId.getRequired("activeTripId") @@ -1208,83 +1108,7 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is Status && - this.activeTripId == other.activeTripId && - this.blockTripSequence == other.blockTripSequence && - this.closestStop == other.closestStop && - this.closestStopTimeOffset == other.closestStopTimeOffset && - this.distanceAlongTrip == other.distanceAlongTrip && - this.frequency == other.frequency && - this.lastKnownDistanceAlongTrip == other.lastKnownDistanceAlongTrip && - this.lastKnownLocation == other.lastKnownLocation && - this.lastKnownOrientation == other.lastKnownOrientation && - this.lastLocationUpdateTime == other.lastLocationUpdateTime && - this.lastUpdateTime == other.lastUpdateTime && - this.nextStop == other.nextStop && - this.nextStopTimeOffset == other.nextStopTimeOffset && - this.occupancyCapacity == other.occupancyCapacity && - this.occupancyCount == other.occupancyCount && - this.occupancyStatus == other.occupancyStatus && - this.orientation == other.orientation && - this.phase == other.phase && - this.position == other.position && - this.predicted == other.predicted && - this.scheduleDeviation == other.scheduleDeviation && - this.scheduledDistanceAlongTrip == other.scheduledDistanceAlongTrip && - this.serviceDate == other.serviceDate && - this.situationIds == other.situationIds && - this.status == other.status && - this.totalDistanceAlongTrip == other.totalDistanceAlongTrip && - this.vehicleId == other.vehicleId && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - activeTripId, - blockTripSequence, - closestStop, - closestStopTimeOffset, - distanceAlongTrip, - frequency, - lastKnownDistanceAlongTrip, - lastKnownLocation, - lastKnownOrientation, - lastLocationUpdateTime, - lastUpdateTime, - nextStop, - nextStopTimeOffset, - occupancyCapacity, - occupancyCount, - occupancyStatus, - orientation, - phase, - position, - predicted, - scheduleDeviation, - scheduledDistanceAlongTrip, - serviceDate, - situationIds, - status, - totalDistanceAlongTrip, - vehicleId, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "Status{activeTripId=$activeTripId, blockTripSequence=$blockTripSequence, closestStop=$closestStop, closestStopTimeOffset=$closestStopTimeOffset, distanceAlongTrip=$distanceAlongTrip, frequency=$frequency, lastKnownDistanceAlongTrip=$lastKnownDistanceAlongTrip, lastKnownLocation=$lastKnownLocation, lastKnownOrientation=$lastKnownOrientation, lastLocationUpdateTime=$lastLocationUpdateTime, lastUpdateTime=$lastUpdateTime, nextStop=$nextStop, nextStopTimeOffset=$nextStopTimeOffset, occupancyCapacity=$occupancyCapacity, occupancyCount=$occupancyCount, occupancyStatus=$occupancyStatus, orientation=$orientation, phase=$phase, position=$position, predicted=$predicted, scheduleDeviation=$scheduleDeviation, scheduledDistanceAlongTrip=$scheduledDistanceAlongTrip, serviceDate=$serviceDate, situationIds=$situationIds, status=$status, totalDistanceAlongTrip=$totalDistanceAlongTrip, vehicleId=$vehicleId, additionalProperties=$additionalProperties}" - - companion object { + companion object { @JvmStatic fun builder() = Builder() } @@ -1745,8 +1569,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - /** Latitude of the last known location of the transit vehicle. */ fun lat(): Optional = Optional.ofNullable(lat.getNullable("lat")) @@ -1773,32 +1595,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is LastKnownLocation && - this.lat == other.lat && - this.lon == other.lon && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - lat, - lon, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "LastKnownLocation{lat=$lat, lon=$lon, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -1856,6 +1652,34 @@ private constructor( additionalProperties.toUnmodifiable(), ) } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is LastKnownLocation && + this.lat == other.lat && + this.lon == other.lon && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + lat, + lon, + additionalProperties, + ) + } + return hashCode + } + + override fun toString() = + "LastKnownLocation{lat=$lat, lon=$lon, additionalProperties=$additionalProperties}" } /** Current position of the transit vehicle. */ @@ -1870,8 +1694,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - /** Latitude of the current position of the transit vehicle. */ fun lat(): Optional = Optional.ofNullable(lat.getNullable("lat")) @@ -1898,32 +1720,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is Position && - this.lat == other.lat && - this.lon == other.lon && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - lat, - lon, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "Position{lat=$lat, lon=$lon, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -1981,8 +1777,212 @@ private constructor( additionalProperties.toUnmodifiable(), ) } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is Position && + this.lat == other.lat && + this.lon == other.lon && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + lat, + lon, + additionalProperties, + ) + } + return hashCode + } + + override fun toString() = + "Position{lat=$lat, lon=$lon, additionalProperties=$additionalProperties}" + } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is Status && + this.activeTripId == other.activeTripId && + this.blockTripSequence == other.blockTripSequence && + this.closestStop == other.closestStop && + this.closestStopTimeOffset == other.closestStopTimeOffset && + this.distanceAlongTrip == other.distanceAlongTrip && + this.frequency == other.frequency && + this.lastKnownDistanceAlongTrip == other.lastKnownDistanceAlongTrip && + this.lastKnownLocation == other.lastKnownLocation && + this.lastKnownOrientation == other.lastKnownOrientation && + this.lastLocationUpdateTime == other.lastLocationUpdateTime && + this.lastUpdateTime == other.lastUpdateTime && + this.nextStop == other.nextStop && + this.nextStopTimeOffset == other.nextStopTimeOffset && + this.occupancyCapacity == other.occupancyCapacity && + this.occupancyCount == other.occupancyCount && + this.occupancyStatus == other.occupancyStatus && + this.orientation == other.orientation && + this.phase == other.phase && + this.position == other.position && + this.predicted == other.predicted && + this.scheduleDeviation == other.scheduleDeviation && + this.scheduledDistanceAlongTrip == other.scheduledDistanceAlongTrip && + this.serviceDate == other.serviceDate && + this.situationIds == other.situationIds && + this.status == other.status && + this.totalDistanceAlongTrip == other.totalDistanceAlongTrip && + this.vehicleId == other.vehicleId && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + activeTripId, + blockTripSequence, + closestStop, + closestStopTimeOffset, + distanceAlongTrip, + frequency, + lastKnownDistanceAlongTrip, + lastKnownLocation, + lastKnownOrientation, + lastLocationUpdateTime, + lastUpdateTime, + nextStop, + nextStopTimeOffset, + occupancyCapacity, + occupancyCount, + occupancyStatus, + orientation, + phase, + position, + predicted, + scheduleDeviation, + scheduledDistanceAlongTrip, + serviceDate, + situationIds, + status, + totalDistanceAlongTrip, + vehicleId, + additionalProperties, + ) + } + return hashCode } + + override fun toString() = + "Status{activeTripId=$activeTripId, blockTripSequence=$blockTripSequence, closestStop=$closestStop, closestStopTimeOffset=$closestStopTimeOffset, distanceAlongTrip=$distanceAlongTrip, frequency=$frequency, lastKnownDistanceAlongTrip=$lastKnownDistanceAlongTrip, lastKnownLocation=$lastKnownLocation, lastKnownOrientation=$lastKnownOrientation, lastLocationUpdateTime=$lastLocationUpdateTime, lastUpdateTime=$lastUpdateTime, nextStop=$nextStop, nextStopTimeOffset=$nextStopTimeOffset, occupancyCapacity=$occupancyCapacity, occupancyCount=$occupancyCount, occupancyStatus=$occupancyStatus, orientation=$orientation, phase=$phase, position=$position, predicted=$predicted, scheduleDeviation=$scheduleDeviation, scheduledDistanceAlongTrip=$scheduledDistanceAlongTrip, serviceDate=$serviceDate, situationIds=$situationIds, status=$status, totalDistanceAlongTrip=$totalDistanceAlongTrip, vehicleId=$vehicleId, additionalProperties=$additionalProperties}" } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is Entry && + this.frequency == other.frequency && + this.schedule == other.schedule && + this.serviceDate == other.serviceDate && + this.situationIds == other.situationIds && + this.status == other.status && + this.tripId == other.tripId && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + frequency, + schedule, + serviceDate, + situationIds, + status, + tripId, + additionalProperties, + ) + } + return hashCode + } + + override fun toString() = + "Entry{frequency=$frequency, schedule=$schedule, serviceDate=$serviceDate, situationIds=$situationIds, status=$status, tripId=$tripId, additionalProperties=$additionalProperties}" + } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is Data && + this.entry == other.entry && + this.references == other.references && + this.additionalProperties == other.additionalProperties } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + entry, + references, + additionalProperties, + ) + } + return hashCode + } + + override fun toString() = + "Data{entry=$entry, references=$references, additionalProperties=$additionalProperties}" } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is TripForVehicleRetrieveResponse && + this.code == other.code && + this.currentTime == other.currentTime && + this.text == other.text && + this.version == other.version && + this.data == other.data && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + code, + currentTime, + text, + version, + data, + additionalProperties, + ) + } + return hashCode + } + + override fun toString() = + "TripForVehicleRetrieveResponse{code=$code, currentTime=$currentTime, text=$text, version=$version, data=$data, additionalProperties=$additionalProperties}" } diff --git a/onebusaway-sdk-java-core/src/main/kotlin/org/onebusaway/models/TripRetrieveResponse.kt b/onebusaway-sdk-java-core/src/main/kotlin/org/onebusaway/models/TripRetrieveResponse.kt index 7ec63d8..8d8d541 100644 --- a/onebusaway-sdk-java-core/src/main/kotlin/org/onebusaway/models/TripRetrieveResponse.kt +++ b/onebusaway-sdk-java-core/src/main/kotlin/org/onebusaway/models/TripRetrieveResponse.kt @@ -29,8 +29,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - fun code(): Long = code.getRequired("code") fun currentTime(): Long = currentTime.getRequired("currentTime") @@ -76,38 +74,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is TripRetrieveResponse && - this.code == other.code && - this.currentTime == other.currentTime && - this.text == other.text && - this.version == other.version && - this.data == other.data && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - code, - currentTime, - text, - version, - data, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "TripRetrieveResponse{code=$code, currentTime=$currentTime, text=$text, version=$version, data=$data, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -198,8 +164,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - fun entry(): Entry = entry.getRequired("entry") fun references(): References = references.getRequired("references") @@ -222,32 +186,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is Data && - this.entry == other.entry && - this.references == other.references && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - entry, - references, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "Data{entry=$entry, references=$references, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -322,8 +260,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - fun blockId(): Optional = Optional.ofNullable(blockId.getNullable("blockId")) fun directionId(): Optional = @@ -396,50 +332,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is Entry && - this.blockId == other.blockId && - this.directionId == other.directionId && - this.id == other.id && - this.peakOffpeak == other.peakOffpeak && - this.routeId == other.routeId && - this.routeShortName == other.routeShortName && - this.serviceId == other.serviceId && - this.shapeId == other.shapeId && - this.timeZone == other.timeZone && - this.tripHeadsign == other.tripHeadsign && - this.tripShortName == other.tripShortName && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - blockId, - directionId, - id, - peakOffpeak, - routeId, - routeShortName, - serviceId, - shapeId, - timeZone, - tripHeadsign, - tripShortName, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "Entry{blockId=$blockId, directionId=$directionId, id=$id, peakOffpeak=$peakOffpeak, routeId=$routeId, routeShortName=$routeShortName, serviceId=$serviceId, shapeId=$shapeId, timeZone=$timeZone, tripHeadsign=$tripHeadsign, tripShortName=$tripShortName, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -585,6 +477,114 @@ private constructor( additionalProperties.toUnmodifiable(), ) } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is Entry && + this.blockId == other.blockId && + this.directionId == other.directionId && + this.id == other.id && + this.peakOffpeak == other.peakOffpeak && + this.routeId == other.routeId && + this.routeShortName == other.routeShortName && + this.serviceId == other.serviceId && + this.shapeId == other.shapeId && + this.timeZone == other.timeZone && + this.tripHeadsign == other.tripHeadsign && + this.tripShortName == other.tripShortName && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + blockId, + directionId, + id, + peakOffpeak, + routeId, + routeShortName, + serviceId, + shapeId, + timeZone, + tripHeadsign, + tripShortName, + additionalProperties, + ) + } + return hashCode + } + + override fun toString() = + "Entry{blockId=$blockId, directionId=$directionId, id=$id, peakOffpeak=$peakOffpeak, routeId=$routeId, routeShortName=$routeShortName, serviceId=$serviceId, shapeId=$shapeId, timeZone=$timeZone, tripHeadsign=$tripHeadsign, tripShortName=$tripShortName, additionalProperties=$additionalProperties}" + } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is Data && + this.entry == other.entry && + this.references == other.references && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + entry, + references, + additionalProperties, + ) + } + return hashCode + } + + override fun toString() = + "Data{entry=$entry, references=$references, additionalProperties=$additionalProperties}" + } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is TripRetrieveResponse && + this.code == other.code && + this.currentTime == other.currentTime && + this.text == other.text && + this.version == other.version && + this.data == other.data && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + code, + currentTime, + text, + version, + data, + additionalProperties, + ) } + return hashCode } + + override fun toString() = + "TripRetrieveResponse{code=$code, currentTime=$currentTime, text=$text, version=$version, data=$data, additionalProperties=$additionalProperties}" } diff --git a/onebusaway-sdk-java-core/src/main/kotlin/org/onebusaway/models/TripsForLocationListResponse.kt b/onebusaway-sdk-java-core/src/main/kotlin/org/onebusaway/models/TripsForLocationListResponse.kt index 5b4d01d..8418e3b 100644 --- a/onebusaway-sdk-java-core/src/main/kotlin/org/onebusaway/models/TripsForLocationListResponse.kt +++ b/onebusaway-sdk-java-core/src/main/kotlin/org/onebusaway/models/TripsForLocationListResponse.kt @@ -29,8 +29,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - fun code(): Long = code.getRequired("code") fun currentTime(): Long = currentTime.getRequired("currentTime") @@ -76,38 +74,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is TripsForLocationListResponse && - this.code == other.code && - this.currentTime == other.currentTime && - this.text == other.text && - this.version == other.version && - this.data == other.data && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - code, - currentTime, - text, - version, - data, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "TripsForLocationListResponse{code=$code, currentTime=$currentTime, text=$text, version=$version, data=$data, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -200,8 +166,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - /** Indicates if the limit of trips has been exceeded */ fun limitExceeded(): Boolean = limitExceeded.getRequired("limitExceeded") @@ -239,36 +203,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is Data && - this.limitExceeded == other.limitExceeded && - this.list == other.list && - this.outOfRange == other.outOfRange && - this.references == other.references && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - limitExceeded, - list, - outOfRange, - references, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "Data{limitExceeded=$limitExceeded, list=$list, outOfRange=$outOfRange, references=$references, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -362,8 +296,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - fun frequency(): Optional = Optional.ofNullable(frequency.getNullable("frequency")) @@ -409,40 +341,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is List && - this.frequency == other.frequency && - this.serviceDate == other.serviceDate && - this.situationIds == other.situationIds && - this.tripId == other.tripId && - this.schedule == other.schedule && - this.status == other.status && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - frequency, - serviceDate, - situationIds, - tripId, - schedule, - status, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "List{frequency=$frequency, serviceDate=$serviceDate, situationIds=$situationIds, tripId=$tripId, schedule=$schedule, status=$status, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -552,8 +450,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - fun frequency(): Optional = Optional.ofNullable(frequency.getNullable("frequency")) @@ -595,38 +491,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is Schedule && - this.frequency == other.frequency && - this.nextTripId == other.nextTripId && - this.previousTripId == other.previousTripId && - this.stopTimes == other.stopTimes && - this.timeZone == other.timeZone && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - frequency, - nextTripId, - previousTripId, - stopTimes, - timeZone, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "Schedule{frequency=$frequency, nextTripId=$nextTripId, previousTripId=$previousTripId, stopTimes=$stopTimes, timeZone=$timeZone, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -733,8 +597,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - fun arrivalTime(): Optional = Optional.ofNullable(arrivalTime.getNullable("arrivalTime")) @@ -789,40 +651,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is StopTime && - this.arrivalTime == other.arrivalTime && - this.departureTime == other.departureTime && - this.distanceAlongTrip == other.distanceAlongTrip && - this.historicalOccupancy == other.historicalOccupancy && - this.stopHeadsign == other.stopHeadsign && - this.stopId == other.stopId && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - arrivalTime, - departureTime, - distanceAlongTrip, - historicalOccupancy, - stopHeadsign, - stopId, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "StopTime{arrivalTime=$arrivalTime, departureTime=$departureTime, distanceAlongTrip=$distanceAlongTrip, historicalOccupancy=$historicalOccupancy, stopHeadsign=$stopHeadsign, stopId=$stopId, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -926,7 +754,77 @@ private constructor( additionalProperties.toUnmodifiable(), ) } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is StopTime && + this.arrivalTime == other.arrivalTime && + this.departureTime == other.departureTime && + this.distanceAlongTrip == other.distanceAlongTrip && + this.historicalOccupancy == other.historicalOccupancy && + this.stopHeadsign == other.stopHeadsign && + this.stopId == other.stopId && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + arrivalTime, + departureTime, + distanceAlongTrip, + historicalOccupancy, + stopHeadsign, + stopId, + additionalProperties, + ) + } + return hashCode + } + + override fun toString() = + "StopTime{arrivalTime=$arrivalTime, departureTime=$departureTime, distanceAlongTrip=$distanceAlongTrip, historicalOccupancy=$historicalOccupancy, stopHeadsign=$stopHeadsign, stopId=$stopId, additionalProperties=$additionalProperties}" + } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is Schedule && + this.frequency == other.frequency && + this.nextTripId == other.nextTripId && + this.previousTripId == other.previousTripId && + this.stopTimes == other.stopTimes && + this.timeZone == other.timeZone && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + frequency, + nextTripId, + previousTripId, + stopTimes, + timeZone, + additionalProperties, + ) + } + return hashCode } + + override fun toString() = + "Schedule{frequency=$frequency, nextTripId=$nextTripId, previousTripId=$previousTripId, stopTimes=$stopTimes, timeZone=$timeZone, additionalProperties=$additionalProperties}" } @JsonDeserialize(builder = Status.Builder::class) @@ -965,8 +863,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - /** Trip ID of the trip the vehicle is actively serving. */ fun activeTripId(): String = activeTripId.getRequired("activeTripId") @@ -1256,83 +1152,7 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is Status && - this.activeTripId == other.activeTripId && - this.blockTripSequence == other.blockTripSequence && - this.closestStop == other.closestStop && - this.closestStopTimeOffset == other.closestStopTimeOffset && - this.distanceAlongTrip == other.distanceAlongTrip && - this.frequency == other.frequency && - this.lastKnownDistanceAlongTrip == other.lastKnownDistanceAlongTrip && - this.lastKnownLocation == other.lastKnownLocation && - this.lastKnownOrientation == other.lastKnownOrientation && - this.lastLocationUpdateTime == other.lastLocationUpdateTime && - this.lastUpdateTime == other.lastUpdateTime && - this.nextStop == other.nextStop && - this.nextStopTimeOffset == other.nextStopTimeOffset && - this.occupancyCapacity == other.occupancyCapacity && - this.occupancyCount == other.occupancyCount && - this.occupancyStatus == other.occupancyStatus && - this.orientation == other.orientation && - this.phase == other.phase && - this.position == other.position && - this.predicted == other.predicted && - this.scheduleDeviation == other.scheduleDeviation && - this.scheduledDistanceAlongTrip == other.scheduledDistanceAlongTrip && - this.serviceDate == other.serviceDate && - this.situationIds == other.situationIds && - this.status == other.status && - this.totalDistanceAlongTrip == other.totalDistanceAlongTrip && - this.vehicleId == other.vehicleId && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - activeTripId, - blockTripSequence, - closestStop, - closestStopTimeOffset, - distanceAlongTrip, - frequency, - lastKnownDistanceAlongTrip, - lastKnownLocation, - lastKnownOrientation, - lastLocationUpdateTime, - lastUpdateTime, - nextStop, - nextStopTimeOffset, - occupancyCapacity, - occupancyCount, - occupancyStatus, - orientation, - phase, - position, - predicted, - scheduleDeviation, - scheduledDistanceAlongTrip, - serviceDate, - situationIds, - status, - totalDistanceAlongTrip, - vehicleId, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "Status{activeTripId=$activeTripId, blockTripSequence=$blockTripSequence, closestStop=$closestStop, closestStopTimeOffset=$closestStopTimeOffset, distanceAlongTrip=$distanceAlongTrip, frequency=$frequency, lastKnownDistanceAlongTrip=$lastKnownDistanceAlongTrip, lastKnownLocation=$lastKnownLocation, lastKnownOrientation=$lastKnownOrientation, lastLocationUpdateTime=$lastLocationUpdateTime, lastUpdateTime=$lastUpdateTime, nextStop=$nextStop, nextStopTimeOffset=$nextStopTimeOffset, occupancyCapacity=$occupancyCapacity, occupancyCount=$occupancyCount, occupancyStatus=$occupancyStatus, orientation=$orientation, phase=$phase, position=$position, predicted=$predicted, scheduleDeviation=$scheduleDeviation, scheduledDistanceAlongTrip=$scheduledDistanceAlongTrip, serviceDate=$serviceDate, situationIds=$situationIds, status=$status, totalDistanceAlongTrip=$totalDistanceAlongTrip, vehicleId=$vehicleId, additionalProperties=$additionalProperties}" - - companion object { + companion object { @JvmStatic fun builder() = Builder() } @@ -1795,8 +1615,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - /** Latitude of the last known location of the transit vehicle. */ fun lat(): Optional = Optional.ofNullable(lat.getNullable("lat")) @@ -1823,32 +1641,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is LastKnownLocation && - this.lat == other.lat && - this.lon == other.lon && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - lat, - lon, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "LastKnownLocation{lat=$lat, lon=$lon, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -1906,6 +1698,34 @@ private constructor( additionalProperties.toUnmodifiable(), ) } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is LastKnownLocation && + this.lat == other.lat && + this.lon == other.lon && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + lat, + lon, + additionalProperties, + ) + } + return hashCode + } + + override fun toString() = + "LastKnownLocation{lat=$lat, lon=$lon, additionalProperties=$additionalProperties}" } /** Current position of the transit vehicle. */ @@ -1920,8 +1740,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - /** Latitude of the current position of the transit vehicle. */ fun lat(): Optional = Optional.ofNullable(lat.getNullable("lat")) @@ -1948,32 +1766,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is Position && - this.lat == other.lat && - this.lon == other.lon && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - lat, - lon, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "Position{lat=$lat, lon=$lon, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -2031,8 +1823,216 @@ private constructor( additionalProperties.toUnmodifiable(), ) } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is Position && + this.lat == other.lat && + this.lon == other.lon && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + lat, + lon, + additionalProperties, + ) + } + return hashCode + } + + override fun toString() = + "Position{lat=$lat, lon=$lon, additionalProperties=$additionalProperties}" + } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is Status && + this.activeTripId == other.activeTripId && + this.blockTripSequence == other.blockTripSequence && + this.closestStop == other.closestStop && + this.closestStopTimeOffset == other.closestStopTimeOffset && + this.distanceAlongTrip == other.distanceAlongTrip && + this.frequency == other.frequency && + this.lastKnownDistanceAlongTrip == other.lastKnownDistanceAlongTrip && + this.lastKnownLocation == other.lastKnownLocation && + this.lastKnownOrientation == other.lastKnownOrientation && + this.lastLocationUpdateTime == other.lastLocationUpdateTime && + this.lastUpdateTime == other.lastUpdateTime && + this.nextStop == other.nextStop && + this.nextStopTimeOffset == other.nextStopTimeOffset && + this.occupancyCapacity == other.occupancyCapacity && + this.occupancyCount == other.occupancyCount && + this.occupancyStatus == other.occupancyStatus && + this.orientation == other.orientation && + this.phase == other.phase && + this.position == other.position && + this.predicted == other.predicted && + this.scheduleDeviation == other.scheduleDeviation && + this.scheduledDistanceAlongTrip == other.scheduledDistanceAlongTrip && + this.serviceDate == other.serviceDate && + this.situationIds == other.situationIds && + this.status == other.status && + this.totalDistanceAlongTrip == other.totalDistanceAlongTrip && + this.vehicleId == other.vehicleId && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + activeTripId, + blockTripSequence, + closestStop, + closestStopTimeOffset, + distanceAlongTrip, + frequency, + lastKnownDistanceAlongTrip, + lastKnownLocation, + lastKnownOrientation, + lastLocationUpdateTime, + lastUpdateTime, + nextStop, + nextStopTimeOffset, + occupancyCapacity, + occupancyCount, + occupancyStatus, + orientation, + phase, + position, + predicted, + scheduleDeviation, + scheduledDistanceAlongTrip, + serviceDate, + situationIds, + status, + totalDistanceAlongTrip, + vehicleId, + additionalProperties, + ) + } + return hashCode } + + override fun toString() = + "Status{activeTripId=$activeTripId, blockTripSequence=$blockTripSequence, closestStop=$closestStop, closestStopTimeOffset=$closestStopTimeOffset, distanceAlongTrip=$distanceAlongTrip, frequency=$frequency, lastKnownDistanceAlongTrip=$lastKnownDistanceAlongTrip, lastKnownLocation=$lastKnownLocation, lastKnownOrientation=$lastKnownOrientation, lastLocationUpdateTime=$lastLocationUpdateTime, lastUpdateTime=$lastUpdateTime, nextStop=$nextStop, nextStopTimeOffset=$nextStopTimeOffset, occupancyCapacity=$occupancyCapacity, occupancyCount=$occupancyCount, occupancyStatus=$occupancyStatus, orientation=$orientation, phase=$phase, position=$position, predicted=$predicted, scheduleDeviation=$scheduleDeviation, scheduledDistanceAlongTrip=$scheduledDistanceAlongTrip, serviceDate=$serviceDate, situationIds=$situationIds, status=$status, totalDistanceAlongTrip=$totalDistanceAlongTrip, vehicleId=$vehicleId, additionalProperties=$additionalProperties}" } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is List && + this.frequency == other.frequency && + this.serviceDate == other.serviceDate && + this.situationIds == other.situationIds && + this.tripId == other.tripId && + this.schedule == other.schedule && + this.status == other.status && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + frequency, + serviceDate, + situationIds, + tripId, + schedule, + status, + additionalProperties, + ) + } + return hashCode + } + + override fun toString() = + "List{frequency=$frequency, serviceDate=$serviceDate, situationIds=$situationIds, tripId=$tripId, schedule=$schedule, status=$status, additionalProperties=$additionalProperties}" } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is Data && + this.limitExceeded == other.limitExceeded && + this.list == other.list && + this.outOfRange == other.outOfRange && + this.references == other.references && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + limitExceeded, + list, + outOfRange, + references, + additionalProperties, + ) + } + return hashCode + } + + override fun toString() = + "Data{limitExceeded=$limitExceeded, list=$list, outOfRange=$outOfRange, references=$references, additionalProperties=$additionalProperties}" + } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is TripsForLocationListResponse && + this.code == other.code && + this.currentTime == other.currentTime && + this.text == other.text && + this.version == other.version && + this.data == other.data && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + code, + currentTime, + text, + version, + data, + additionalProperties, + ) + } + return hashCode } + + override fun toString() = + "TripsForLocationListResponse{code=$code, currentTime=$currentTime, text=$text, version=$version, data=$data, additionalProperties=$additionalProperties}" } diff --git a/onebusaway-sdk-java-core/src/main/kotlin/org/onebusaway/models/TripsForRouteListResponse.kt b/onebusaway-sdk-java-core/src/main/kotlin/org/onebusaway/models/TripsForRouteListResponse.kt index 9dd1dcb..3089b66 100644 --- a/onebusaway-sdk-java-core/src/main/kotlin/org/onebusaway/models/TripsForRouteListResponse.kt +++ b/onebusaway-sdk-java-core/src/main/kotlin/org/onebusaway/models/TripsForRouteListResponse.kt @@ -29,8 +29,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - fun code(): Long = code.getRequired("code") fun currentTime(): Long = currentTime.getRequired("currentTime") @@ -76,38 +74,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is TripsForRouteListResponse && - this.code == other.code && - this.currentTime == other.currentTime && - this.text == other.text && - this.version == other.version && - this.data == other.data && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - code, - currentTime, - text, - version, - data, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "TripsForRouteListResponse{code=$code, currentTime=$currentTime, text=$text, version=$version, data=$data, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -199,8 +165,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - fun limitExceeded(): Boolean = limitExceeded.getRequired("limitExceeded") fun list(): kotlin.collections.List = list.getRequired("list") @@ -228,34 +192,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is Data && - this.limitExceeded == other.limitExceeded && - this.list == other.list && - this.references == other.references && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - limitExceeded, - list, - references, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "Data{limitExceeded=$limitExceeded, list=$list, references=$references, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -336,8 +272,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - fun frequency(): Optional = Optional.ofNullable(frequency.getNullable("frequency")) @@ -383,40 +317,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is List && - this.frequency == other.frequency && - this.serviceDate == other.serviceDate && - this.situationIds == other.situationIds && - this.tripId == other.tripId && - this.schedule == other.schedule && - this.status == other.status && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - frequency, - serviceDate, - situationIds, - tripId, - schedule, - status, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "List{frequency=$frequency, serviceDate=$serviceDate, situationIds=$situationIds, tripId=$tripId, schedule=$schedule, status=$status, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -526,8 +426,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - fun frequency(): Optional = Optional.ofNullable(frequency.getNullable("frequency")) @@ -569,38 +467,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is Schedule && - this.frequency == other.frequency && - this.nextTripId == other.nextTripId && - this.previousTripId == other.previousTripId && - this.stopTimes == other.stopTimes && - this.timeZone == other.timeZone && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - frequency, - nextTripId, - previousTripId, - stopTimes, - timeZone, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "Schedule{frequency=$frequency, nextTripId=$nextTripId, previousTripId=$previousTripId, stopTimes=$stopTimes, timeZone=$timeZone, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -707,8 +573,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - fun arrivalTime(): Optional = Optional.ofNullable(arrivalTime.getNullable("arrivalTime")) @@ -763,40 +627,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is StopTime && - this.arrivalTime == other.arrivalTime && - this.departureTime == other.departureTime && - this.distanceAlongTrip == other.distanceAlongTrip && - this.historicalOccupancy == other.historicalOccupancy && - this.stopHeadsign == other.stopHeadsign && - this.stopId == other.stopId && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - arrivalTime, - departureTime, - distanceAlongTrip, - historicalOccupancy, - stopHeadsign, - stopId, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "StopTime{arrivalTime=$arrivalTime, departureTime=$departureTime, distanceAlongTrip=$distanceAlongTrip, historicalOccupancy=$historicalOccupancy, stopHeadsign=$stopHeadsign, stopId=$stopId, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -900,7 +730,77 @@ private constructor( additionalProperties.toUnmodifiable(), ) } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is StopTime && + this.arrivalTime == other.arrivalTime && + this.departureTime == other.departureTime && + this.distanceAlongTrip == other.distanceAlongTrip && + this.historicalOccupancy == other.historicalOccupancy && + this.stopHeadsign == other.stopHeadsign && + this.stopId == other.stopId && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + arrivalTime, + departureTime, + distanceAlongTrip, + historicalOccupancy, + stopHeadsign, + stopId, + additionalProperties, + ) + } + return hashCode + } + + override fun toString() = + "StopTime{arrivalTime=$arrivalTime, departureTime=$departureTime, distanceAlongTrip=$distanceAlongTrip, historicalOccupancy=$historicalOccupancy, stopHeadsign=$stopHeadsign, stopId=$stopId, additionalProperties=$additionalProperties}" + } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is Schedule && + this.frequency == other.frequency && + this.nextTripId == other.nextTripId && + this.previousTripId == other.previousTripId && + this.stopTimes == other.stopTimes && + this.timeZone == other.timeZone && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + frequency, + nextTripId, + previousTripId, + stopTimes, + timeZone, + additionalProperties, + ) + } + return hashCode } + + override fun toString() = + "Schedule{frequency=$frequency, nextTripId=$nextTripId, previousTripId=$previousTripId, stopTimes=$stopTimes, timeZone=$timeZone, additionalProperties=$additionalProperties}" } @JsonDeserialize(builder = Status.Builder::class) @@ -939,8 +839,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - /** Trip ID of the trip the vehicle is actively serving. */ fun activeTripId(): String = activeTripId.getRequired("activeTripId") @@ -1230,83 +1128,7 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is Status && - this.activeTripId == other.activeTripId && - this.blockTripSequence == other.blockTripSequence && - this.closestStop == other.closestStop && - this.closestStopTimeOffset == other.closestStopTimeOffset && - this.distanceAlongTrip == other.distanceAlongTrip && - this.frequency == other.frequency && - this.lastKnownDistanceAlongTrip == other.lastKnownDistanceAlongTrip && - this.lastKnownLocation == other.lastKnownLocation && - this.lastKnownOrientation == other.lastKnownOrientation && - this.lastLocationUpdateTime == other.lastLocationUpdateTime && - this.lastUpdateTime == other.lastUpdateTime && - this.nextStop == other.nextStop && - this.nextStopTimeOffset == other.nextStopTimeOffset && - this.occupancyCapacity == other.occupancyCapacity && - this.occupancyCount == other.occupancyCount && - this.occupancyStatus == other.occupancyStatus && - this.orientation == other.orientation && - this.phase == other.phase && - this.position == other.position && - this.predicted == other.predicted && - this.scheduleDeviation == other.scheduleDeviation && - this.scheduledDistanceAlongTrip == other.scheduledDistanceAlongTrip && - this.serviceDate == other.serviceDate && - this.situationIds == other.situationIds && - this.status == other.status && - this.totalDistanceAlongTrip == other.totalDistanceAlongTrip && - this.vehicleId == other.vehicleId && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - activeTripId, - blockTripSequence, - closestStop, - closestStopTimeOffset, - distanceAlongTrip, - frequency, - lastKnownDistanceAlongTrip, - lastKnownLocation, - lastKnownOrientation, - lastLocationUpdateTime, - lastUpdateTime, - nextStop, - nextStopTimeOffset, - occupancyCapacity, - occupancyCount, - occupancyStatus, - orientation, - phase, - position, - predicted, - scheduleDeviation, - scheduledDistanceAlongTrip, - serviceDate, - situationIds, - status, - totalDistanceAlongTrip, - vehicleId, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "Status{activeTripId=$activeTripId, blockTripSequence=$blockTripSequence, closestStop=$closestStop, closestStopTimeOffset=$closestStopTimeOffset, distanceAlongTrip=$distanceAlongTrip, frequency=$frequency, lastKnownDistanceAlongTrip=$lastKnownDistanceAlongTrip, lastKnownLocation=$lastKnownLocation, lastKnownOrientation=$lastKnownOrientation, lastLocationUpdateTime=$lastLocationUpdateTime, lastUpdateTime=$lastUpdateTime, nextStop=$nextStop, nextStopTimeOffset=$nextStopTimeOffset, occupancyCapacity=$occupancyCapacity, occupancyCount=$occupancyCount, occupancyStatus=$occupancyStatus, orientation=$orientation, phase=$phase, position=$position, predicted=$predicted, scheduleDeviation=$scheduleDeviation, scheduledDistanceAlongTrip=$scheduledDistanceAlongTrip, serviceDate=$serviceDate, situationIds=$situationIds, status=$status, totalDistanceAlongTrip=$totalDistanceAlongTrip, vehicleId=$vehicleId, additionalProperties=$additionalProperties}" - - companion object { + companion object { @JvmStatic fun builder() = Builder() } @@ -1769,8 +1591,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - /** Latitude of the last known location of the transit vehicle. */ fun lat(): Optional = Optional.ofNullable(lat.getNullable("lat")) @@ -1797,32 +1617,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is LastKnownLocation && - this.lat == other.lat && - this.lon == other.lon && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - lat, - lon, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "LastKnownLocation{lat=$lat, lon=$lon, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -1880,6 +1674,34 @@ private constructor( additionalProperties.toUnmodifiable(), ) } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is LastKnownLocation && + this.lat == other.lat && + this.lon == other.lon && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + lat, + lon, + additionalProperties, + ) + } + return hashCode + } + + override fun toString() = + "LastKnownLocation{lat=$lat, lon=$lon, additionalProperties=$additionalProperties}" } /** Current position of the transit vehicle. */ @@ -1894,8 +1716,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - /** Latitude of the current position of the transit vehicle. */ fun lat(): Optional = Optional.ofNullable(lat.getNullable("lat")) @@ -1922,32 +1742,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is Position && - this.lat == other.lat && - this.lon == other.lon && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - lat, - lon, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "Position{lat=$lat, lon=$lon, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -2005,8 +1799,214 @@ private constructor( additionalProperties.toUnmodifiable(), ) } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is Position && + this.lat == other.lat && + this.lon == other.lon && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + lat, + lon, + additionalProperties, + ) + } + return hashCode + } + + override fun toString() = + "Position{lat=$lat, lon=$lon, additionalProperties=$additionalProperties}" + } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is Status && + this.activeTripId == other.activeTripId && + this.blockTripSequence == other.blockTripSequence && + this.closestStop == other.closestStop && + this.closestStopTimeOffset == other.closestStopTimeOffset && + this.distanceAlongTrip == other.distanceAlongTrip && + this.frequency == other.frequency && + this.lastKnownDistanceAlongTrip == other.lastKnownDistanceAlongTrip && + this.lastKnownLocation == other.lastKnownLocation && + this.lastKnownOrientation == other.lastKnownOrientation && + this.lastLocationUpdateTime == other.lastLocationUpdateTime && + this.lastUpdateTime == other.lastUpdateTime && + this.nextStop == other.nextStop && + this.nextStopTimeOffset == other.nextStopTimeOffset && + this.occupancyCapacity == other.occupancyCapacity && + this.occupancyCount == other.occupancyCount && + this.occupancyStatus == other.occupancyStatus && + this.orientation == other.orientation && + this.phase == other.phase && + this.position == other.position && + this.predicted == other.predicted && + this.scheduleDeviation == other.scheduleDeviation && + this.scheduledDistanceAlongTrip == other.scheduledDistanceAlongTrip && + this.serviceDate == other.serviceDate && + this.situationIds == other.situationIds && + this.status == other.status && + this.totalDistanceAlongTrip == other.totalDistanceAlongTrip && + this.vehicleId == other.vehicleId && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + activeTripId, + blockTripSequence, + closestStop, + closestStopTimeOffset, + distanceAlongTrip, + frequency, + lastKnownDistanceAlongTrip, + lastKnownLocation, + lastKnownOrientation, + lastLocationUpdateTime, + lastUpdateTime, + nextStop, + nextStopTimeOffset, + occupancyCapacity, + occupancyCount, + occupancyStatus, + orientation, + phase, + position, + predicted, + scheduleDeviation, + scheduledDistanceAlongTrip, + serviceDate, + situationIds, + status, + totalDistanceAlongTrip, + vehicleId, + additionalProperties, + ) + } + return hashCode } + + override fun toString() = + "Status{activeTripId=$activeTripId, blockTripSequence=$blockTripSequence, closestStop=$closestStop, closestStopTimeOffset=$closestStopTimeOffset, distanceAlongTrip=$distanceAlongTrip, frequency=$frequency, lastKnownDistanceAlongTrip=$lastKnownDistanceAlongTrip, lastKnownLocation=$lastKnownLocation, lastKnownOrientation=$lastKnownOrientation, lastLocationUpdateTime=$lastLocationUpdateTime, lastUpdateTime=$lastUpdateTime, nextStop=$nextStop, nextStopTimeOffset=$nextStopTimeOffset, occupancyCapacity=$occupancyCapacity, occupancyCount=$occupancyCount, occupancyStatus=$occupancyStatus, orientation=$orientation, phase=$phase, position=$position, predicted=$predicted, scheduleDeviation=$scheduleDeviation, scheduledDistanceAlongTrip=$scheduledDistanceAlongTrip, serviceDate=$serviceDate, situationIds=$situationIds, status=$status, totalDistanceAlongTrip=$totalDistanceAlongTrip, vehicleId=$vehicleId, additionalProperties=$additionalProperties}" } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is List && + this.frequency == other.frequency && + this.serviceDate == other.serviceDate && + this.situationIds == other.situationIds && + this.tripId == other.tripId && + this.schedule == other.schedule && + this.status == other.status && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + frequency, + serviceDate, + situationIds, + tripId, + schedule, + status, + additionalProperties, + ) + } + return hashCode + } + + override fun toString() = + "List{frequency=$frequency, serviceDate=$serviceDate, situationIds=$situationIds, tripId=$tripId, schedule=$schedule, status=$status, additionalProperties=$additionalProperties}" + } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is Data && + this.limitExceeded == other.limitExceeded && + this.list == other.list && + this.references == other.references && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + limitExceeded, + list, + references, + additionalProperties, + ) + } + return hashCode + } + + override fun toString() = + "Data{limitExceeded=$limitExceeded, list=$list, references=$references, additionalProperties=$additionalProperties}" + } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is TripsForRouteListResponse && + this.code == other.code && + this.currentTime == other.currentTime && + this.text == other.text && + this.version == other.version && + this.data == other.data && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + code, + currentTime, + text, + version, + data, + additionalProperties, + ) } + return hashCode } + + override fun toString() = + "TripsForRouteListResponse{code=$code, currentTime=$currentTime, text=$text, version=$version, data=$data, additionalProperties=$additionalProperties}" } diff --git a/onebusaway-sdk-java-core/src/main/kotlin/org/onebusaway/models/VehiclesForAgencyListResponse.kt b/onebusaway-sdk-java-core/src/main/kotlin/org/onebusaway/models/VehiclesForAgencyListResponse.kt index 0b78ada..99284f6 100644 --- a/onebusaway-sdk-java-core/src/main/kotlin/org/onebusaway/models/VehiclesForAgencyListResponse.kt +++ b/onebusaway-sdk-java-core/src/main/kotlin/org/onebusaway/models/VehiclesForAgencyListResponse.kt @@ -29,8 +29,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - fun code(): Long = code.getRequired("code") fun currentTime(): Long = currentTime.getRequired("currentTime") @@ -76,38 +74,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is VehiclesForAgencyListResponse && - this.code == other.code && - this.currentTime == other.currentTime && - this.text == other.text && - this.version == other.version && - this.data == other.data && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - code, - currentTime, - text, - version, - data, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "VehiclesForAgencyListResponse{code=$code, currentTime=$currentTime, text=$text, version=$version, data=$data, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -228,34 +194,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is Data && - this.list == other.list && - this.limitExceeded == other.limitExceeded && - this.references == other.references && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - list, - limitExceeded, - references, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "Data{list=$list, limitExceeded=$limitExceeded, references=$references, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -341,8 +279,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - fun vehicleId(): String = vehicleId.getRequired("vehicleId") fun lastUpdateTime(): Long = lastUpdateTime.getRequired("lastUpdateTime") @@ -420,50 +356,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is List && - this.vehicleId == other.vehicleId && - this.lastUpdateTime == other.lastUpdateTime && - this.lastLocationUpdateTime == other.lastLocationUpdateTime && - this.location == other.location && - this.tripId == other.tripId && - this.tripStatus == other.tripStatus && - this.occupancyCapacity == other.occupancyCapacity && - this.occupancyCount == other.occupancyCount && - this.occupancyStatus == other.occupancyStatus && - this.phase == other.phase && - this.status == other.status && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - vehicleId, - lastUpdateTime, - lastLocationUpdateTime, - location, - tripId, - tripStatus, - occupancyCapacity, - occupancyCount, - occupancyStatus, - phase, - status, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "List{vehicleId=$vehicleId, lastUpdateTime=$lastUpdateTime, lastLocationUpdateTime=$lastLocationUpdateTime, location=$location, tripId=$tripId, tripStatus=$tripStatus, occupancyCapacity=$occupancyCapacity, occupancyCount=$occupancyCount, occupancyStatus=$occupancyStatus, phase=$phase, status=$status, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -626,8 +518,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - fun lat(): Optional = Optional.ofNullable(lat.getNullable("lat")) fun lon(): Optional = Optional.ofNullable(lon.getNullable("lon")) @@ -650,32 +540,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is Location && - this.lat == other.lat && - this.lon == other.lon && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - lat, - lon, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "Location{lat=$lat, lon=$lon, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -728,6 +592,34 @@ private constructor( additionalProperties.toUnmodifiable(), ) } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is Location && + this.lat == other.lat && + this.lon == other.lon && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + lat, + lon, + additionalProperties, + ) + } + return hashCode + } + + override fun toString() = + "Location{lat=$lat, lon=$lon, additionalProperties=$additionalProperties}" } @JsonDeserialize(builder = TripStatus.Builder::class) @@ -766,8 +658,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - /** Trip ID of the trip the vehicle is actively serving. */ fun activeTripId(): String = activeTripId.getRequired("activeTripId") @@ -1057,82 +947,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is TripStatus && - this.activeTripId == other.activeTripId && - this.blockTripSequence == other.blockTripSequence && - this.closestStop == other.closestStop && - this.closestStopTimeOffset == other.closestStopTimeOffset && - this.distanceAlongTrip == other.distanceAlongTrip && - this.frequency == other.frequency && - this.lastKnownDistanceAlongTrip == other.lastKnownDistanceAlongTrip && - this.lastKnownLocation == other.lastKnownLocation && - this.lastKnownOrientation == other.lastKnownOrientation && - this.lastLocationUpdateTime == other.lastLocationUpdateTime && - this.lastUpdateTime == other.lastUpdateTime && - this.nextStop == other.nextStop && - this.nextStopTimeOffset == other.nextStopTimeOffset && - this.occupancyCapacity == other.occupancyCapacity && - this.occupancyCount == other.occupancyCount && - this.occupancyStatus == other.occupancyStatus && - this.orientation == other.orientation && - this.phase == other.phase && - this.position == other.position && - this.predicted == other.predicted && - this.scheduleDeviation == other.scheduleDeviation && - this.scheduledDistanceAlongTrip == other.scheduledDistanceAlongTrip && - this.serviceDate == other.serviceDate && - this.situationIds == other.situationIds && - this.status == other.status && - this.totalDistanceAlongTrip == other.totalDistanceAlongTrip && - this.vehicleId == other.vehicleId && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - activeTripId, - blockTripSequence, - closestStop, - closestStopTimeOffset, - distanceAlongTrip, - frequency, - lastKnownDistanceAlongTrip, - lastKnownLocation, - lastKnownOrientation, - lastLocationUpdateTime, - lastUpdateTime, - nextStop, - nextStopTimeOffset, - occupancyCapacity, - occupancyCount, - occupancyStatus, - orientation, - phase, - position, - predicted, - scheduleDeviation, - scheduledDistanceAlongTrip, - serviceDate, - situationIds, - status, - totalDistanceAlongTrip, - vehicleId, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "TripStatus{activeTripId=$activeTripId, blockTripSequence=$blockTripSequence, closestStop=$closestStop, closestStopTimeOffset=$closestStopTimeOffset, distanceAlongTrip=$distanceAlongTrip, frequency=$frequency, lastKnownDistanceAlongTrip=$lastKnownDistanceAlongTrip, lastKnownLocation=$lastKnownLocation, lastKnownOrientation=$lastKnownOrientation, lastLocationUpdateTime=$lastLocationUpdateTime, lastUpdateTime=$lastUpdateTime, nextStop=$nextStop, nextStopTimeOffset=$nextStopTimeOffset, occupancyCapacity=$occupancyCapacity, occupancyCount=$occupancyCount, occupancyStatus=$occupancyStatus, orientation=$orientation, phase=$phase, position=$position, predicted=$predicted, scheduleDeviation=$scheduleDeviation, scheduledDistanceAlongTrip=$scheduledDistanceAlongTrip, serviceDate=$serviceDate, situationIds=$situationIds, status=$status, totalDistanceAlongTrip=$totalDistanceAlongTrip, vehicleId=$vehicleId, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -1596,8 +1410,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - /** Latitude of the last known location of the transit vehicle. */ fun lat(): Optional = Optional.ofNullable(lat.getNullable("lat")) @@ -1624,35 +1436,9 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } + companion object { - return other is LastKnownLocation && - this.lat == other.lat && - this.lon == other.lon && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - lat, - lon, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "LastKnownLocation{lat=$lat, lon=$lon, additionalProperties=$additionalProperties}" - - companion object { - - @JvmStatic fun builder() = Builder() + @JvmStatic fun builder() = Builder() } class Builder { @@ -1707,6 +1493,34 @@ private constructor( additionalProperties.toUnmodifiable(), ) } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is LastKnownLocation && + this.lat == other.lat && + this.lon == other.lon && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + lat, + lon, + additionalProperties, + ) + } + return hashCode + } + + override fun toString() = + "LastKnownLocation{lat=$lat, lon=$lon, additionalProperties=$additionalProperties}" } /** Current position of the transit vehicle. */ @@ -1721,8 +1535,6 @@ private constructor( private var validated: Boolean = false - private var hashCode: Int = 0 - /** Latitude of the current position of the transit vehicle. */ fun lat(): Optional = Optional.ofNullable(lat.getNullable("lat")) @@ -1749,32 +1561,6 @@ private constructor( fun toBuilder() = Builder().from(this) - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } - - return other is Position && - this.lat == other.lat && - this.lon == other.lon && - this.additionalProperties == other.additionalProperties - } - - override fun hashCode(): Int { - if (hashCode == 0) { - hashCode = - Objects.hash( - lat, - lon, - additionalProperties, - ) - } - return hashCode - } - - override fun toString() = - "Position{lat=$lat, lon=$lon, additionalProperties=$additionalProperties}" - companion object { @JvmStatic fun builder() = Builder() @@ -1832,8 +1618,224 @@ private constructor( additionalProperties.toUnmodifiable(), ) } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is Position && + this.lat == other.lat && + this.lon == other.lon && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + lat, + lon, + additionalProperties, + ) + } + return hashCode + } + + override fun toString() = + "Position{lat=$lat, lon=$lon, additionalProperties=$additionalProperties}" + } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is TripStatus && + this.activeTripId == other.activeTripId && + this.blockTripSequence == other.blockTripSequence && + this.closestStop == other.closestStop && + this.closestStopTimeOffset == other.closestStopTimeOffset && + this.distanceAlongTrip == other.distanceAlongTrip && + this.frequency == other.frequency && + this.lastKnownDistanceAlongTrip == other.lastKnownDistanceAlongTrip && + this.lastKnownLocation == other.lastKnownLocation && + this.lastKnownOrientation == other.lastKnownOrientation && + this.lastLocationUpdateTime == other.lastLocationUpdateTime && + this.lastUpdateTime == other.lastUpdateTime && + this.nextStop == other.nextStop && + this.nextStopTimeOffset == other.nextStopTimeOffset && + this.occupancyCapacity == other.occupancyCapacity && + this.occupancyCount == other.occupancyCount && + this.occupancyStatus == other.occupancyStatus && + this.orientation == other.orientation && + this.phase == other.phase && + this.position == other.position && + this.predicted == other.predicted && + this.scheduleDeviation == other.scheduleDeviation && + this.scheduledDistanceAlongTrip == other.scheduledDistanceAlongTrip && + this.serviceDate == other.serviceDate && + this.situationIds == other.situationIds && + this.status == other.status && + this.totalDistanceAlongTrip == other.totalDistanceAlongTrip && + this.vehicleId == other.vehicleId && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + activeTripId, + blockTripSequence, + closestStop, + closestStopTimeOffset, + distanceAlongTrip, + frequency, + lastKnownDistanceAlongTrip, + lastKnownLocation, + lastKnownOrientation, + lastLocationUpdateTime, + lastUpdateTime, + nextStop, + nextStopTimeOffset, + occupancyCapacity, + occupancyCount, + occupancyStatus, + orientation, + phase, + position, + predicted, + scheduleDeviation, + scheduledDistanceAlongTrip, + serviceDate, + situationIds, + status, + totalDistanceAlongTrip, + vehicleId, + additionalProperties, + ) + } + return hashCode } + + override fun toString() = + "TripStatus{activeTripId=$activeTripId, blockTripSequence=$blockTripSequence, closestStop=$closestStop, closestStopTimeOffset=$closestStopTimeOffset, distanceAlongTrip=$distanceAlongTrip, frequency=$frequency, lastKnownDistanceAlongTrip=$lastKnownDistanceAlongTrip, lastKnownLocation=$lastKnownLocation, lastKnownOrientation=$lastKnownOrientation, lastLocationUpdateTime=$lastLocationUpdateTime, lastUpdateTime=$lastUpdateTime, nextStop=$nextStop, nextStopTimeOffset=$nextStopTimeOffset, occupancyCapacity=$occupancyCapacity, occupancyCount=$occupancyCount, occupancyStatus=$occupancyStatus, orientation=$orientation, phase=$phase, position=$position, predicted=$predicted, scheduleDeviation=$scheduleDeviation, scheduledDistanceAlongTrip=$scheduledDistanceAlongTrip, serviceDate=$serviceDate, situationIds=$situationIds, status=$status, totalDistanceAlongTrip=$totalDistanceAlongTrip, vehicleId=$vehicleId, additionalProperties=$additionalProperties}" } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is List && + this.vehicleId == other.vehicleId && + this.lastUpdateTime == other.lastUpdateTime && + this.lastLocationUpdateTime == other.lastLocationUpdateTime && + this.location == other.location && + this.tripId == other.tripId && + this.tripStatus == other.tripStatus && + this.occupancyCapacity == other.occupancyCapacity && + this.occupancyCount == other.occupancyCount && + this.occupancyStatus == other.occupancyStatus && + this.phase == other.phase && + this.status == other.status && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + vehicleId, + lastUpdateTime, + lastLocationUpdateTime, + location, + tripId, + tripStatus, + occupancyCapacity, + occupancyCount, + occupancyStatus, + phase, + status, + additionalProperties, + ) + } + return hashCode + } + + override fun toString() = + "List{vehicleId=$vehicleId, lastUpdateTime=$lastUpdateTime, lastLocationUpdateTime=$lastLocationUpdateTime, location=$location, tripId=$tripId, tripStatus=$tripStatus, occupancyCapacity=$occupancyCapacity, occupancyCount=$occupancyCount, occupancyStatus=$occupancyStatus, phase=$phase, status=$status, additionalProperties=$additionalProperties}" + } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is Data && + this.list == other.list && + this.limitExceeded == other.limitExceeded && + this.references == other.references && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + list, + limitExceeded, + references, + additionalProperties, + ) + } + return hashCode + } + + override fun toString() = + "Data{list=$list, limitExceeded=$limitExceeded, references=$references, additionalProperties=$additionalProperties}" + } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is VehiclesForAgencyListResponse && + this.code == other.code && + this.currentTime == other.currentTime && + this.text == other.text && + this.version == other.version && + this.data == other.data && + this.additionalProperties == other.additionalProperties + } + + private var hashCode: Int = 0 + + override fun hashCode(): Int { + if (hashCode == 0) { + hashCode = + Objects.hash( + code, + currentTime, + text, + version, + data, + additionalProperties, + ) } + return hashCode } + + override fun toString() = + "VehiclesForAgencyListResponse{code=$code, currentTime=$currentTime, text=$text, version=$version, data=$data, additionalProperties=$additionalProperties}" } From dfc2794f244796f1041b91c6bc01ef81c7b7a8be Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Wed, 2 Oct 2024 23:16:25 +0000 Subject: [PATCH 2/3] chore(internal): codegen related update (#9) --- .../onebusaway/services/async/AgencyServiceAsyncImpl.kt | 2 +- .../async/ArrivalAndDepartureServiceAsyncImpl.kt | 9 +++++++-- .../onebusaway/services/async/BlockServiceAsyncImpl.kt | 2 +- .../async/ReportProblemWithStopServiceAsyncImpl.kt | 7 ++++++- .../async/ReportProblemWithTripServiceAsyncImpl.kt | 7 ++++++- .../services/async/RouteIdsForAgencyServiceAsyncImpl.kt | 7 ++++++- .../onebusaway/services/async/RouteServiceAsyncImpl.kt | 2 +- .../services/async/RoutesForAgencyServiceAsyncImpl.kt | 7 ++++++- .../services/async/ScheduleForRouteServiceAsyncImpl.kt | 7 ++++++- .../services/async/ScheduleForStopServiceAsyncImpl.kt | 7 ++++++- .../onebusaway/services/async/ShapeServiceAsyncImpl.kt | 2 +- .../services/async/StopIdsForAgencyServiceAsyncImpl.kt | 7 ++++++- .../onebusaway/services/async/StopServiceAsyncImpl.kt | 2 +- .../services/async/StopsForRouteServiceAsyncImpl.kt | 7 ++++++- .../services/async/TripDetailServiceAsyncImpl.kt | 2 +- .../services/async/TripForVehicleServiceAsyncImpl.kt | 7 ++++++- .../onebusaway/services/async/TripServiceAsyncImpl.kt | 2 +- .../services/async/TripsForRouteServiceAsyncImpl.kt | 7 ++++++- .../services/async/VehiclesForAgencyServiceAsyncImpl.kt | 7 ++++++- .../onebusaway/services/blocking/AgencyServiceImpl.kt | 2 +- .../services/blocking/ArrivalAndDepartureServiceImpl.kt | 9 +++++++-- .../org/onebusaway/services/blocking/BlockServiceImpl.kt | 2 +- .../blocking/ReportProblemWithStopServiceImpl.kt | 7 ++++++- .../blocking/ReportProblemWithTripServiceImpl.kt | 7 ++++++- .../services/blocking/RouteIdsForAgencyServiceImpl.kt | 7 ++++++- .../org/onebusaway/services/blocking/RouteServiceImpl.kt | 2 +- .../services/blocking/RoutesForAgencyServiceImpl.kt | 7 ++++++- .../services/blocking/ScheduleForRouteServiceImpl.kt | 7 ++++++- .../services/blocking/ScheduleForStopServiceImpl.kt | 7 ++++++- .../org/onebusaway/services/blocking/ShapeServiceImpl.kt | 2 +- .../services/blocking/StopIdsForAgencyServiceImpl.kt | 7 ++++++- .../org/onebusaway/services/blocking/StopServiceImpl.kt | 2 +- .../services/blocking/StopsForRouteServiceImpl.kt | 7 ++++++- .../services/blocking/TripDetailServiceImpl.kt | 2 +- .../services/blocking/TripForVehicleServiceImpl.kt | 7 ++++++- .../org/onebusaway/services/blocking/TripServiceImpl.kt | 2 +- .../services/blocking/TripsForRouteServiceImpl.kt | 7 ++++++- .../services/blocking/VehiclesForAgencyServiceImpl.kt | 7 ++++++- 38 files changed, 160 insertions(+), 40 deletions(-) diff --git a/onebusaway-sdk-java-core/src/main/kotlin/org/onebusaway/services/async/AgencyServiceAsyncImpl.kt b/onebusaway-sdk-java-core/src/main/kotlin/org/onebusaway/services/async/AgencyServiceAsyncImpl.kt index 2867fb4..bb4f178 100644 --- a/onebusaway-sdk-java-core/src/main/kotlin/org/onebusaway/services/async/AgencyServiceAsyncImpl.kt +++ b/onebusaway-sdk-java-core/src/main/kotlin/org/onebusaway/services/async/AgencyServiceAsyncImpl.kt @@ -33,7 +33,7 @@ constructor( val request = HttpRequest.builder() .method(HttpMethod.GET) - .addPathSegments("api", "where", "agency", "{agencyID}.json") + .addPathSegments("api", "where", "agency", "${params.getPathParam(0)}.json") .putAllQueryParams(clientOptions.queryParams) .putAllQueryParams(params.getQueryParams()) .putAllHeaders(clientOptions.headers) diff --git a/onebusaway-sdk-java-core/src/main/kotlin/org/onebusaway/services/async/ArrivalAndDepartureServiceAsyncImpl.kt b/onebusaway-sdk-java-core/src/main/kotlin/org/onebusaway/services/async/ArrivalAndDepartureServiceAsyncImpl.kt index 9899b7c..be09800 100644 --- a/onebusaway-sdk-java-core/src/main/kotlin/org/onebusaway/services/async/ArrivalAndDepartureServiceAsyncImpl.kt +++ b/onebusaway-sdk-java-core/src/main/kotlin/org/onebusaway/services/async/ArrivalAndDepartureServiceAsyncImpl.kt @@ -36,7 +36,12 @@ constructor( val request = HttpRequest.builder() .method(HttpMethod.GET) - .addPathSegments("api", "where", "arrival-and-departure-for-stop", "{stopID}.json") + .addPathSegments( + "api", + "where", + "arrival-and-departure-for-stop", + "${params.getPathParam(0)}.json" + ) .putAllQueryParams(clientOptions.queryParams) .putAllQueryParams(params.getQueryParams()) .putAllHeaders(clientOptions.headers) @@ -70,7 +75,7 @@ constructor( "api", "where", "arrivals-and-departures-for-stop", - "{stopID}.json" + "${params.getPathParam(0)}.json" ) .putAllQueryParams(clientOptions.queryParams) .putAllQueryParams(params.getQueryParams()) diff --git a/onebusaway-sdk-java-core/src/main/kotlin/org/onebusaway/services/async/BlockServiceAsyncImpl.kt b/onebusaway-sdk-java-core/src/main/kotlin/org/onebusaway/services/async/BlockServiceAsyncImpl.kt index 0175f63..3b8a3fd 100644 --- a/onebusaway-sdk-java-core/src/main/kotlin/org/onebusaway/services/async/BlockServiceAsyncImpl.kt +++ b/onebusaway-sdk-java-core/src/main/kotlin/org/onebusaway/services/async/BlockServiceAsyncImpl.kt @@ -33,7 +33,7 @@ constructor( val request = HttpRequest.builder() .method(HttpMethod.GET) - .addPathSegments("api", "where", "block", "{blockID}.json") + .addPathSegments("api", "where", "block", "${params.getPathParam(0)}.json") .putAllQueryParams(clientOptions.queryParams) .putAllQueryParams(params.getQueryParams()) .putAllHeaders(clientOptions.headers) diff --git a/onebusaway-sdk-java-core/src/main/kotlin/org/onebusaway/services/async/ReportProblemWithStopServiceAsyncImpl.kt b/onebusaway-sdk-java-core/src/main/kotlin/org/onebusaway/services/async/ReportProblemWithStopServiceAsyncImpl.kt index 080e70e..728ecf6 100644 --- a/onebusaway-sdk-java-core/src/main/kotlin/org/onebusaway/services/async/ReportProblemWithStopServiceAsyncImpl.kt +++ b/onebusaway-sdk-java-core/src/main/kotlin/org/onebusaway/services/async/ReportProblemWithStopServiceAsyncImpl.kt @@ -33,7 +33,12 @@ constructor( val request = HttpRequest.builder() .method(HttpMethod.GET) - .addPathSegments("api", "where", "report-problem-with-stop", "{stopID}.json") + .addPathSegments( + "api", + "where", + "report-problem-with-stop", + "${params.getPathParam(0)}.json" + ) .putAllQueryParams(clientOptions.queryParams) .putAllQueryParams(params.getQueryParams()) .putAllHeaders(clientOptions.headers) diff --git a/onebusaway-sdk-java-core/src/main/kotlin/org/onebusaway/services/async/ReportProblemWithTripServiceAsyncImpl.kt b/onebusaway-sdk-java-core/src/main/kotlin/org/onebusaway/services/async/ReportProblemWithTripServiceAsyncImpl.kt index e6d5c75..6287758 100644 --- a/onebusaway-sdk-java-core/src/main/kotlin/org/onebusaway/services/async/ReportProblemWithTripServiceAsyncImpl.kt +++ b/onebusaway-sdk-java-core/src/main/kotlin/org/onebusaway/services/async/ReportProblemWithTripServiceAsyncImpl.kt @@ -33,7 +33,12 @@ constructor( val request = HttpRequest.builder() .method(HttpMethod.GET) - .addPathSegments("api", "where", "report-problem-with-trip", "{tripID}.json") + .addPathSegments( + "api", + "where", + "report-problem-with-trip", + "${params.getPathParam(0)}.json" + ) .putAllQueryParams(clientOptions.queryParams) .putAllQueryParams(params.getQueryParams()) .putAllHeaders(clientOptions.headers) diff --git a/onebusaway-sdk-java-core/src/main/kotlin/org/onebusaway/services/async/RouteIdsForAgencyServiceAsyncImpl.kt b/onebusaway-sdk-java-core/src/main/kotlin/org/onebusaway/services/async/RouteIdsForAgencyServiceAsyncImpl.kt index 262e4f3..7bdf0ce 100644 --- a/onebusaway-sdk-java-core/src/main/kotlin/org/onebusaway/services/async/RouteIdsForAgencyServiceAsyncImpl.kt +++ b/onebusaway-sdk-java-core/src/main/kotlin/org/onebusaway/services/async/RouteIdsForAgencyServiceAsyncImpl.kt @@ -34,7 +34,12 @@ constructor( val request = HttpRequest.builder() .method(HttpMethod.GET) - .addPathSegments("api", "where", "route-ids-for-agency", "{agencyID}.json") + .addPathSegments( + "api", + "where", + "route-ids-for-agency", + "${params.getPathParam(0)}.json" + ) .putAllQueryParams(clientOptions.queryParams) .putAllQueryParams(params.getQueryParams()) .putAllHeaders(clientOptions.headers) diff --git a/onebusaway-sdk-java-core/src/main/kotlin/org/onebusaway/services/async/RouteServiceAsyncImpl.kt b/onebusaway-sdk-java-core/src/main/kotlin/org/onebusaway/services/async/RouteServiceAsyncImpl.kt index 4eadd48..fc0c38b 100644 --- a/onebusaway-sdk-java-core/src/main/kotlin/org/onebusaway/services/async/RouteServiceAsyncImpl.kt +++ b/onebusaway-sdk-java-core/src/main/kotlin/org/onebusaway/services/async/RouteServiceAsyncImpl.kt @@ -33,7 +33,7 @@ constructor( val request = HttpRequest.builder() .method(HttpMethod.GET) - .addPathSegments("api", "where", "route", "{routeID}.json") + .addPathSegments("api", "where", "route", "${params.getPathParam(0)}.json") .putAllQueryParams(clientOptions.queryParams) .putAllQueryParams(params.getQueryParams()) .putAllHeaders(clientOptions.headers) diff --git a/onebusaway-sdk-java-core/src/main/kotlin/org/onebusaway/services/async/RoutesForAgencyServiceAsyncImpl.kt b/onebusaway-sdk-java-core/src/main/kotlin/org/onebusaway/services/async/RoutesForAgencyServiceAsyncImpl.kt index 15c34e9..9f99faa 100644 --- a/onebusaway-sdk-java-core/src/main/kotlin/org/onebusaway/services/async/RoutesForAgencyServiceAsyncImpl.kt +++ b/onebusaway-sdk-java-core/src/main/kotlin/org/onebusaway/services/async/RoutesForAgencyServiceAsyncImpl.kt @@ -34,7 +34,12 @@ constructor( val request = HttpRequest.builder() .method(HttpMethod.GET) - .addPathSegments("api", "where", "routes-for-agency", "{agencyID}.json") + .addPathSegments( + "api", + "where", + "routes-for-agency", + "${params.getPathParam(0)}.json" + ) .putAllQueryParams(clientOptions.queryParams) .putAllQueryParams(params.getQueryParams()) .putAllHeaders(clientOptions.headers) diff --git a/onebusaway-sdk-java-core/src/main/kotlin/org/onebusaway/services/async/ScheduleForRouteServiceAsyncImpl.kt b/onebusaway-sdk-java-core/src/main/kotlin/org/onebusaway/services/async/ScheduleForRouteServiceAsyncImpl.kt index 94c328e..287d0de 100644 --- a/onebusaway-sdk-java-core/src/main/kotlin/org/onebusaway/services/async/ScheduleForRouteServiceAsyncImpl.kt +++ b/onebusaway-sdk-java-core/src/main/kotlin/org/onebusaway/services/async/ScheduleForRouteServiceAsyncImpl.kt @@ -34,7 +34,12 @@ constructor( val request = HttpRequest.builder() .method(HttpMethod.GET) - .addPathSegments("api", "where", "schedule-for-route", "{routeID}.json") + .addPathSegments( + "api", + "where", + "schedule-for-route", + "${params.getPathParam(0)}.json" + ) .putAllQueryParams(clientOptions.queryParams) .putAllQueryParams(params.getQueryParams()) .putAllHeaders(clientOptions.headers) diff --git a/onebusaway-sdk-java-core/src/main/kotlin/org/onebusaway/services/async/ScheduleForStopServiceAsyncImpl.kt b/onebusaway-sdk-java-core/src/main/kotlin/org/onebusaway/services/async/ScheduleForStopServiceAsyncImpl.kt index 9b48a01..b1548e6 100644 --- a/onebusaway-sdk-java-core/src/main/kotlin/org/onebusaway/services/async/ScheduleForStopServiceAsyncImpl.kt +++ b/onebusaway-sdk-java-core/src/main/kotlin/org/onebusaway/services/async/ScheduleForStopServiceAsyncImpl.kt @@ -34,7 +34,12 @@ constructor( val request = HttpRequest.builder() .method(HttpMethod.GET) - .addPathSegments("api", "where", "schedule-for-stop", "{stopID}.json") + .addPathSegments( + "api", + "where", + "schedule-for-stop", + "${params.getPathParam(0)}.json" + ) .putAllQueryParams(clientOptions.queryParams) .putAllQueryParams(params.getQueryParams()) .putAllHeaders(clientOptions.headers) diff --git a/onebusaway-sdk-java-core/src/main/kotlin/org/onebusaway/services/async/ShapeServiceAsyncImpl.kt b/onebusaway-sdk-java-core/src/main/kotlin/org/onebusaway/services/async/ShapeServiceAsyncImpl.kt index a8e9800..73e0dca 100644 --- a/onebusaway-sdk-java-core/src/main/kotlin/org/onebusaway/services/async/ShapeServiceAsyncImpl.kt +++ b/onebusaway-sdk-java-core/src/main/kotlin/org/onebusaway/services/async/ShapeServiceAsyncImpl.kt @@ -33,7 +33,7 @@ constructor( val request = HttpRequest.builder() .method(HttpMethod.GET) - .addPathSegments("api", "where", "shape", "{shapeID}.json") + .addPathSegments("api", "where", "shape", "${params.getPathParam(0)}.json") .putAllQueryParams(clientOptions.queryParams) .putAllQueryParams(params.getQueryParams()) .putAllHeaders(clientOptions.headers) diff --git a/onebusaway-sdk-java-core/src/main/kotlin/org/onebusaway/services/async/StopIdsForAgencyServiceAsyncImpl.kt b/onebusaway-sdk-java-core/src/main/kotlin/org/onebusaway/services/async/StopIdsForAgencyServiceAsyncImpl.kt index 86677c6..b13ec88 100644 --- a/onebusaway-sdk-java-core/src/main/kotlin/org/onebusaway/services/async/StopIdsForAgencyServiceAsyncImpl.kt +++ b/onebusaway-sdk-java-core/src/main/kotlin/org/onebusaway/services/async/StopIdsForAgencyServiceAsyncImpl.kt @@ -34,7 +34,12 @@ constructor( val request = HttpRequest.builder() .method(HttpMethod.GET) - .addPathSegments("api", "where", "stop-ids-for-agency", "{agencyID}.json") + .addPathSegments( + "api", + "where", + "stop-ids-for-agency", + "${params.getPathParam(0)}.json" + ) .putAllQueryParams(clientOptions.queryParams) .putAllQueryParams(params.getQueryParams()) .putAllHeaders(clientOptions.headers) diff --git a/onebusaway-sdk-java-core/src/main/kotlin/org/onebusaway/services/async/StopServiceAsyncImpl.kt b/onebusaway-sdk-java-core/src/main/kotlin/org/onebusaway/services/async/StopServiceAsyncImpl.kt index 8d08c6b..6cc9f17 100644 --- a/onebusaway-sdk-java-core/src/main/kotlin/org/onebusaway/services/async/StopServiceAsyncImpl.kt +++ b/onebusaway-sdk-java-core/src/main/kotlin/org/onebusaway/services/async/StopServiceAsyncImpl.kt @@ -33,7 +33,7 @@ constructor( val request = HttpRequest.builder() .method(HttpMethod.GET) - .addPathSegments("api", "where", "stop", "{stopID}.json") + .addPathSegments("api", "where", "stop", "${params.getPathParam(0)}.json") .putAllQueryParams(clientOptions.queryParams) .putAllQueryParams(params.getQueryParams()) .putAllHeaders(clientOptions.headers) diff --git a/onebusaway-sdk-java-core/src/main/kotlin/org/onebusaway/services/async/StopsForRouteServiceAsyncImpl.kt b/onebusaway-sdk-java-core/src/main/kotlin/org/onebusaway/services/async/StopsForRouteServiceAsyncImpl.kt index 8b3b43c..fa32255 100644 --- a/onebusaway-sdk-java-core/src/main/kotlin/org/onebusaway/services/async/StopsForRouteServiceAsyncImpl.kt +++ b/onebusaway-sdk-java-core/src/main/kotlin/org/onebusaway/services/async/StopsForRouteServiceAsyncImpl.kt @@ -34,7 +34,12 @@ constructor( val request = HttpRequest.builder() .method(HttpMethod.GET) - .addPathSegments("api", "where", "stops-for-route", "{routeID}.json") + .addPathSegments( + "api", + "where", + "stops-for-route", + "${params.getPathParam(0)}.json" + ) .putAllQueryParams(clientOptions.queryParams) .putAllQueryParams(params.getQueryParams()) .putAllHeaders(clientOptions.headers) diff --git a/onebusaway-sdk-java-core/src/main/kotlin/org/onebusaway/services/async/TripDetailServiceAsyncImpl.kt b/onebusaway-sdk-java-core/src/main/kotlin/org/onebusaway/services/async/TripDetailServiceAsyncImpl.kt index 1262dbf..c39917d 100644 --- a/onebusaway-sdk-java-core/src/main/kotlin/org/onebusaway/services/async/TripDetailServiceAsyncImpl.kt +++ b/onebusaway-sdk-java-core/src/main/kotlin/org/onebusaway/services/async/TripDetailServiceAsyncImpl.kt @@ -34,7 +34,7 @@ constructor( val request = HttpRequest.builder() .method(HttpMethod.GET) - .addPathSegments("api", "where", "trip-details", "{tripID}.json") + .addPathSegments("api", "where", "trip-details", "${params.getPathParam(0)}.json") .putAllQueryParams(clientOptions.queryParams) .putAllQueryParams(params.getQueryParams()) .putAllHeaders(clientOptions.headers) diff --git a/onebusaway-sdk-java-core/src/main/kotlin/org/onebusaway/services/async/TripForVehicleServiceAsyncImpl.kt b/onebusaway-sdk-java-core/src/main/kotlin/org/onebusaway/services/async/TripForVehicleServiceAsyncImpl.kt index 80cf415..930c2cd 100644 --- a/onebusaway-sdk-java-core/src/main/kotlin/org/onebusaway/services/async/TripForVehicleServiceAsyncImpl.kt +++ b/onebusaway-sdk-java-core/src/main/kotlin/org/onebusaway/services/async/TripForVehicleServiceAsyncImpl.kt @@ -34,7 +34,12 @@ constructor( val request = HttpRequest.builder() .method(HttpMethod.GET) - .addPathSegments("api", "where", "trip-for-vehicle", "{vehicleID}.json") + .addPathSegments( + "api", + "where", + "trip-for-vehicle", + "${params.getPathParam(0)}.json" + ) .putAllQueryParams(clientOptions.queryParams) .putAllQueryParams(params.getQueryParams()) .putAllHeaders(clientOptions.headers) diff --git a/onebusaway-sdk-java-core/src/main/kotlin/org/onebusaway/services/async/TripServiceAsyncImpl.kt b/onebusaway-sdk-java-core/src/main/kotlin/org/onebusaway/services/async/TripServiceAsyncImpl.kt index 53826ac..98d0d6e 100644 --- a/onebusaway-sdk-java-core/src/main/kotlin/org/onebusaway/services/async/TripServiceAsyncImpl.kt +++ b/onebusaway-sdk-java-core/src/main/kotlin/org/onebusaway/services/async/TripServiceAsyncImpl.kt @@ -33,7 +33,7 @@ constructor( val request = HttpRequest.builder() .method(HttpMethod.GET) - .addPathSegments("api", "where", "trip", "{tripID}.json") + .addPathSegments("api", "where", "trip", "${params.getPathParam(0)}.json") .putAllQueryParams(clientOptions.queryParams) .putAllQueryParams(params.getQueryParams()) .putAllHeaders(clientOptions.headers) diff --git a/onebusaway-sdk-java-core/src/main/kotlin/org/onebusaway/services/async/TripsForRouteServiceAsyncImpl.kt b/onebusaway-sdk-java-core/src/main/kotlin/org/onebusaway/services/async/TripsForRouteServiceAsyncImpl.kt index 8a40bc1..aa15065 100644 --- a/onebusaway-sdk-java-core/src/main/kotlin/org/onebusaway/services/async/TripsForRouteServiceAsyncImpl.kt +++ b/onebusaway-sdk-java-core/src/main/kotlin/org/onebusaway/services/async/TripsForRouteServiceAsyncImpl.kt @@ -34,7 +34,12 @@ constructor( val request = HttpRequest.builder() .method(HttpMethod.GET) - .addPathSegments("api", "where", "trips-for-route", "{routeID}.json") + .addPathSegments( + "api", + "where", + "trips-for-route", + "${params.getPathParam(0)}.json" + ) .putAllQueryParams(clientOptions.queryParams) .putAllQueryParams(params.getQueryParams()) .putAllHeaders(clientOptions.headers) diff --git a/onebusaway-sdk-java-core/src/main/kotlin/org/onebusaway/services/async/VehiclesForAgencyServiceAsyncImpl.kt b/onebusaway-sdk-java-core/src/main/kotlin/org/onebusaway/services/async/VehiclesForAgencyServiceAsyncImpl.kt index 16ece53..4ff4337 100644 --- a/onebusaway-sdk-java-core/src/main/kotlin/org/onebusaway/services/async/VehiclesForAgencyServiceAsyncImpl.kt +++ b/onebusaway-sdk-java-core/src/main/kotlin/org/onebusaway/services/async/VehiclesForAgencyServiceAsyncImpl.kt @@ -34,7 +34,12 @@ constructor( val request = HttpRequest.builder() .method(HttpMethod.GET) - .addPathSegments("api", "where", "vehicles-for-agency", "{agencyID}.json") + .addPathSegments( + "api", + "where", + "vehicles-for-agency", + "${params.getPathParam(0)}.json" + ) .putAllQueryParams(clientOptions.queryParams) .putAllQueryParams(params.getQueryParams()) .putAllHeaders(clientOptions.headers) diff --git a/onebusaway-sdk-java-core/src/main/kotlin/org/onebusaway/services/blocking/AgencyServiceImpl.kt b/onebusaway-sdk-java-core/src/main/kotlin/org/onebusaway/services/blocking/AgencyServiceImpl.kt index 0e5842b..34581bf 100644 --- a/onebusaway-sdk-java-core/src/main/kotlin/org/onebusaway/services/blocking/AgencyServiceImpl.kt +++ b/onebusaway-sdk-java-core/src/main/kotlin/org/onebusaway/services/blocking/AgencyServiceImpl.kt @@ -32,7 +32,7 @@ constructor( val request = HttpRequest.builder() .method(HttpMethod.GET) - .addPathSegments("api", "where", "agency", "{agencyID}.json") + .addPathSegments("api", "where", "agency", "${params.getPathParam(0)}.json") .putAllQueryParams(clientOptions.queryParams) .putAllQueryParams(params.getQueryParams()) .putAllHeaders(clientOptions.headers) diff --git a/onebusaway-sdk-java-core/src/main/kotlin/org/onebusaway/services/blocking/ArrivalAndDepartureServiceImpl.kt b/onebusaway-sdk-java-core/src/main/kotlin/org/onebusaway/services/blocking/ArrivalAndDepartureServiceImpl.kt index 5e01311..f9e1d83 100644 --- a/onebusaway-sdk-java-core/src/main/kotlin/org/onebusaway/services/blocking/ArrivalAndDepartureServiceImpl.kt +++ b/onebusaway-sdk-java-core/src/main/kotlin/org/onebusaway/services/blocking/ArrivalAndDepartureServiceImpl.kt @@ -35,7 +35,12 @@ constructor( val request = HttpRequest.builder() .method(HttpMethod.GET) - .addPathSegments("api", "where", "arrival-and-departure-for-stop", "{stopID}.json") + .addPathSegments( + "api", + "where", + "arrival-and-departure-for-stop", + "${params.getPathParam(0)}.json" + ) .putAllQueryParams(clientOptions.queryParams) .putAllQueryParams(params.getQueryParams()) .putAllHeaders(clientOptions.headers) @@ -68,7 +73,7 @@ constructor( "api", "where", "arrivals-and-departures-for-stop", - "{stopID}.json" + "${params.getPathParam(0)}.json" ) .putAllQueryParams(clientOptions.queryParams) .putAllQueryParams(params.getQueryParams()) diff --git a/onebusaway-sdk-java-core/src/main/kotlin/org/onebusaway/services/blocking/BlockServiceImpl.kt b/onebusaway-sdk-java-core/src/main/kotlin/org/onebusaway/services/blocking/BlockServiceImpl.kt index b6af41e..c7f6035 100644 --- a/onebusaway-sdk-java-core/src/main/kotlin/org/onebusaway/services/blocking/BlockServiceImpl.kt +++ b/onebusaway-sdk-java-core/src/main/kotlin/org/onebusaway/services/blocking/BlockServiceImpl.kt @@ -32,7 +32,7 @@ constructor( val request = HttpRequest.builder() .method(HttpMethod.GET) - .addPathSegments("api", "where", "block", "{blockID}.json") + .addPathSegments("api", "where", "block", "${params.getPathParam(0)}.json") .putAllQueryParams(clientOptions.queryParams) .putAllQueryParams(params.getQueryParams()) .putAllHeaders(clientOptions.headers) diff --git a/onebusaway-sdk-java-core/src/main/kotlin/org/onebusaway/services/blocking/ReportProblemWithStopServiceImpl.kt b/onebusaway-sdk-java-core/src/main/kotlin/org/onebusaway/services/blocking/ReportProblemWithStopServiceImpl.kt index 8550175..30f58b0 100644 --- a/onebusaway-sdk-java-core/src/main/kotlin/org/onebusaway/services/blocking/ReportProblemWithStopServiceImpl.kt +++ b/onebusaway-sdk-java-core/src/main/kotlin/org/onebusaway/services/blocking/ReportProblemWithStopServiceImpl.kt @@ -32,7 +32,12 @@ constructor( val request = HttpRequest.builder() .method(HttpMethod.GET) - .addPathSegments("api", "where", "report-problem-with-stop", "{stopID}.json") + .addPathSegments( + "api", + "where", + "report-problem-with-stop", + "${params.getPathParam(0)}.json" + ) .putAllQueryParams(clientOptions.queryParams) .putAllQueryParams(params.getQueryParams()) .putAllHeaders(clientOptions.headers) diff --git a/onebusaway-sdk-java-core/src/main/kotlin/org/onebusaway/services/blocking/ReportProblemWithTripServiceImpl.kt b/onebusaway-sdk-java-core/src/main/kotlin/org/onebusaway/services/blocking/ReportProblemWithTripServiceImpl.kt index 64edf63..ca39d2e 100644 --- a/onebusaway-sdk-java-core/src/main/kotlin/org/onebusaway/services/blocking/ReportProblemWithTripServiceImpl.kt +++ b/onebusaway-sdk-java-core/src/main/kotlin/org/onebusaway/services/blocking/ReportProblemWithTripServiceImpl.kt @@ -32,7 +32,12 @@ constructor( val request = HttpRequest.builder() .method(HttpMethod.GET) - .addPathSegments("api", "where", "report-problem-with-trip", "{tripID}.json") + .addPathSegments( + "api", + "where", + "report-problem-with-trip", + "${params.getPathParam(0)}.json" + ) .putAllQueryParams(clientOptions.queryParams) .putAllQueryParams(params.getQueryParams()) .putAllHeaders(clientOptions.headers) diff --git a/onebusaway-sdk-java-core/src/main/kotlin/org/onebusaway/services/blocking/RouteIdsForAgencyServiceImpl.kt b/onebusaway-sdk-java-core/src/main/kotlin/org/onebusaway/services/blocking/RouteIdsForAgencyServiceImpl.kt index 6a4f32e..9556e41 100644 --- a/onebusaway-sdk-java-core/src/main/kotlin/org/onebusaway/services/blocking/RouteIdsForAgencyServiceImpl.kt +++ b/onebusaway-sdk-java-core/src/main/kotlin/org/onebusaway/services/blocking/RouteIdsForAgencyServiceImpl.kt @@ -33,7 +33,12 @@ constructor( val request = HttpRequest.builder() .method(HttpMethod.GET) - .addPathSegments("api", "where", "route-ids-for-agency", "{agencyID}.json") + .addPathSegments( + "api", + "where", + "route-ids-for-agency", + "${params.getPathParam(0)}.json" + ) .putAllQueryParams(clientOptions.queryParams) .putAllQueryParams(params.getQueryParams()) .putAllHeaders(clientOptions.headers) diff --git a/onebusaway-sdk-java-core/src/main/kotlin/org/onebusaway/services/blocking/RouteServiceImpl.kt b/onebusaway-sdk-java-core/src/main/kotlin/org/onebusaway/services/blocking/RouteServiceImpl.kt index a7e2b3c..f5299a4 100644 --- a/onebusaway-sdk-java-core/src/main/kotlin/org/onebusaway/services/blocking/RouteServiceImpl.kt +++ b/onebusaway-sdk-java-core/src/main/kotlin/org/onebusaway/services/blocking/RouteServiceImpl.kt @@ -32,7 +32,7 @@ constructor( val request = HttpRequest.builder() .method(HttpMethod.GET) - .addPathSegments("api", "where", "route", "{routeID}.json") + .addPathSegments("api", "where", "route", "${params.getPathParam(0)}.json") .putAllQueryParams(clientOptions.queryParams) .putAllQueryParams(params.getQueryParams()) .putAllHeaders(clientOptions.headers) diff --git a/onebusaway-sdk-java-core/src/main/kotlin/org/onebusaway/services/blocking/RoutesForAgencyServiceImpl.kt b/onebusaway-sdk-java-core/src/main/kotlin/org/onebusaway/services/blocking/RoutesForAgencyServiceImpl.kt index 8601eb6..db16274 100644 --- a/onebusaway-sdk-java-core/src/main/kotlin/org/onebusaway/services/blocking/RoutesForAgencyServiceImpl.kt +++ b/onebusaway-sdk-java-core/src/main/kotlin/org/onebusaway/services/blocking/RoutesForAgencyServiceImpl.kt @@ -33,7 +33,12 @@ constructor( val request = HttpRequest.builder() .method(HttpMethod.GET) - .addPathSegments("api", "where", "routes-for-agency", "{agencyID}.json") + .addPathSegments( + "api", + "where", + "routes-for-agency", + "${params.getPathParam(0)}.json" + ) .putAllQueryParams(clientOptions.queryParams) .putAllQueryParams(params.getQueryParams()) .putAllHeaders(clientOptions.headers) diff --git a/onebusaway-sdk-java-core/src/main/kotlin/org/onebusaway/services/blocking/ScheduleForRouteServiceImpl.kt b/onebusaway-sdk-java-core/src/main/kotlin/org/onebusaway/services/blocking/ScheduleForRouteServiceImpl.kt index 8708644..b06afd4 100644 --- a/onebusaway-sdk-java-core/src/main/kotlin/org/onebusaway/services/blocking/ScheduleForRouteServiceImpl.kt +++ b/onebusaway-sdk-java-core/src/main/kotlin/org/onebusaway/services/blocking/ScheduleForRouteServiceImpl.kt @@ -33,7 +33,12 @@ constructor( val request = HttpRequest.builder() .method(HttpMethod.GET) - .addPathSegments("api", "where", "schedule-for-route", "{routeID}.json") + .addPathSegments( + "api", + "where", + "schedule-for-route", + "${params.getPathParam(0)}.json" + ) .putAllQueryParams(clientOptions.queryParams) .putAllQueryParams(params.getQueryParams()) .putAllHeaders(clientOptions.headers) diff --git a/onebusaway-sdk-java-core/src/main/kotlin/org/onebusaway/services/blocking/ScheduleForStopServiceImpl.kt b/onebusaway-sdk-java-core/src/main/kotlin/org/onebusaway/services/blocking/ScheduleForStopServiceImpl.kt index 7ddf5fc..b840548 100644 --- a/onebusaway-sdk-java-core/src/main/kotlin/org/onebusaway/services/blocking/ScheduleForStopServiceImpl.kt +++ b/onebusaway-sdk-java-core/src/main/kotlin/org/onebusaway/services/blocking/ScheduleForStopServiceImpl.kt @@ -33,7 +33,12 @@ constructor( val request = HttpRequest.builder() .method(HttpMethod.GET) - .addPathSegments("api", "where", "schedule-for-stop", "{stopID}.json") + .addPathSegments( + "api", + "where", + "schedule-for-stop", + "${params.getPathParam(0)}.json" + ) .putAllQueryParams(clientOptions.queryParams) .putAllQueryParams(params.getQueryParams()) .putAllHeaders(clientOptions.headers) diff --git a/onebusaway-sdk-java-core/src/main/kotlin/org/onebusaway/services/blocking/ShapeServiceImpl.kt b/onebusaway-sdk-java-core/src/main/kotlin/org/onebusaway/services/blocking/ShapeServiceImpl.kt index a6e50a3..c1882f1 100644 --- a/onebusaway-sdk-java-core/src/main/kotlin/org/onebusaway/services/blocking/ShapeServiceImpl.kt +++ b/onebusaway-sdk-java-core/src/main/kotlin/org/onebusaway/services/blocking/ShapeServiceImpl.kt @@ -32,7 +32,7 @@ constructor( val request = HttpRequest.builder() .method(HttpMethod.GET) - .addPathSegments("api", "where", "shape", "{shapeID}.json") + .addPathSegments("api", "where", "shape", "${params.getPathParam(0)}.json") .putAllQueryParams(clientOptions.queryParams) .putAllQueryParams(params.getQueryParams()) .putAllHeaders(clientOptions.headers) diff --git a/onebusaway-sdk-java-core/src/main/kotlin/org/onebusaway/services/blocking/StopIdsForAgencyServiceImpl.kt b/onebusaway-sdk-java-core/src/main/kotlin/org/onebusaway/services/blocking/StopIdsForAgencyServiceImpl.kt index e84c2bc..1f3558e 100644 --- a/onebusaway-sdk-java-core/src/main/kotlin/org/onebusaway/services/blocking/StopIdsForAgencyServiceImpl.kt +++ b/onebusaway-sdk-java-core/src/main/kotlin/org/onebusaway/services/blocking/StopIdsForAgencyServiceImpl.kt @@ -33,7 +33,12 @@ constructor( val request = HttpRequest.builder() .method(HttpMethod.GET) - .addPathSegments("api", "where", "stop-ids-for-agency", "{agencyID}.json") + .addPathSegments( + "api", + "where", + "stop-ids-for-agency", + "${params.getPathParam(0)}.json" + ) .putAllQueryParams(clientOptions.queryParams) .putAllQueryParams(params.getQueryParams()) .putAllHeaders(clientOptions.headers) diff --git a/onebusaway-sdk-java-core/src/main/kotlin/org/onebusaway/services/blocking/StopServiceImpl.kt b/onebusaway-sdk-java-core/src/main/kotlin/org/onebusaway/services/blocking/StopServiceImpl.kt index 2a9cb86..21df9f5 100644 --- a/onebusaway-sdk-java-core/src/main/kotlin/org/onebusaway/services/blocking/StopServiceImpl.kt +++ b/onebusaway-sdk-java-core/src/main/kotlin/org/onebusaway/services/blocking/StopServiceImpl.kt @@ -32,7 +32,7 @@ constructor( val request = HttpRequest.builder() .method(HttpMethod.GET) - .addPathSegments("api", "where", "stop", "{stopID}.json") + .addPathSegments("api", "where", "stop", "${params.getPathParam(0)}.json") .putAllQueryParams(clientOptions.queryParams) .putAllQueryParams(params.getQueryParams()) .putAllHeaders(clientOptions.headers) diff --git a/onebusaway-sdk-java-core/src/main/kotlin/org/onebusaway/services/blocking/StopsForRouteServiceImpl.kt b/onebusaway-sdk-java-core/src/main/kotlin/org/onebusaway/services/blocking/StopsForRouteServiceImpl.kt index c276597..3b494c5 100644 --- a/onebusaway-sdk-java-core/src/main/kotlin/org/onebusaway/services/blocking/StopsForRouteServiceImpl.kt +++ b/onebusaway-sdk-java-core/src/main/kotlin/org/onebusaway/services/blocking/StopsForRouteServiceImpl.kt @@ -33,7 +33,12 @@ constructor( val request = HttpRequest.builder() .method(HttpMethod.GET) - .addPathSegments("api", "where", "stops-for-route", "{routeID}.json") + .addPathSegments( + "api", + "where", + "stops-for-route", + "${params.getPathParam(0)}.json" + ) .putAllQueryParams(clientOptions.queryParams) .putAllQueryParams(params.getQueryParams()) .putAllHeaders(clientOptions.headers) diff --git a/onebusaway-sdk-java-core/src/main/kotlin/org/onebusaway/services/blocking/TripDetailServiceImpl.kt b/onebusaway-sdk-java-core/src/main/kotlin/org/onebusaway/services/blocking/TripDetailServiceImpl.kt index f8930c4..0e4b259 100644 --- a/onebusaway-sdk-java-core/src/main/kotlin/org/onebusaway/services/blocking/TripDetailServiceImpl.kt +++ b/onebusaway-sdk-java-core/src/main/kotlin/org/onebusaway/services/blocking/TripDetailServiceImpl.kt @@ -33,7 +33,7 @@ constructor( val request = HttpRequest.builder() .method(HttpMethod.GET) - .addPathSegments("api", "where", "trip-details", "{tripID}.json") + .addPathSegments("api", "where", "trip-details", "${params.getPathParam(0)}.json") .putAllQueryParams(clientOptions.queryParams) .putAllQueryParams(params.getQueryParams()) .putAllHeaders(clientOptions.headers) diff --git a/onebusaway-sdk-java-core/src/main/kotlin/org/onebusaway/services/blocking/TripForVehicleServiceImpl.kt b/onebusaway-sdk-java-core/src/main/kotlin/org/onebusaway/services/blocking/TripForVehicleServiceImpl.kt index c1ae954..6526847 100644 --- a/onebusaway-sdk-java-core/src/main/kotlin/org/onebusaway/services/blocking/TripForVehicleServiceImpl.kt +++ b/onebusaway-sdk-java-core/src/main/kotlin/org/onebusaway/services/blocking/TripForVehicleServiceImpl.kt @@ -33,7 +33,12 @@ constructor( val request = HttpRequest.builder() .method(HttpMethod.GET) - .addPathSegments("api", "where", "trip-for-vehicle", "{vehicleID}.json") + .addPathSegments( + "api", + "where", + "trip-for-vehicle", + "${params.getPathParam(0)}.json" + ) .putAllQueryParams(clientOptions.queryParams) .putAllQueryParams(params.getQueryParams()) .putAllHeaders(clientOptions.headers) diff --git a/onebusaway-sdk-java-core/src/main/kotlin/org/onebusaway/services/blocking/TripServiceImpl.kt b/onebusaway-sdk-java-core/src/main/kotlin/org/onebusaway/services/blocking/TripServiceImpl.kt index 80191ac..0de4918 100644 --- a/onebusaway-sdk-java-core/src/main/kotlin/org/onebusaway/services/blocking/TripServiceImpl.kt +++ b/onebusaway-sdk-java-core/src/main/kotlin/org/onebusaway/services/blocking/TripServiceImpl.kt @@ -32,7 +32,7 @@ constructor( val request = HttpRequest.builder() .method(HttpMethod.GET) - .addPathSegments("api", "where", "trip", "{tripID}.json") + .addPathSegments("api", "where", "trip", "${params.getPathParam(0)}.json") .putAllQueryParams(clientOptions.queryParams) .putAllQueryParams(params.getQueryParams()) .putAllHeaders(clientOptions.headers) diff --git a/onebusaway-sdk-java-core/src/main/kotlin/org/onebusaway/services/blocking/TripsForRouteServiceImpl.kt b/onebusaway-sdk-java-core/src/main/kotlin/org/onebusaway/services/blocking/TripsForRouteServiceImpl.kt index 2a34690..a4bb8a6 100644 --- a/onebusaway-sdk-java-core/src/main/kotlin/org/onebusaway/services/blocking/TripsForRouteServiceImpl.kt +++ b/onebusaway-sdk-java-core/src/main/kotlin/org/onebusaway/services/blocking/TripsForRouteServiceImpl.kt @@ -33,7 +33,12 @@ constructor( val request = HttpRequest.builder() .method(HttpMethod.GET) - .addPathSegments("api", "where", "trips-for-route", "{routeID}.json") + .addPathSegments( + "api", + "where", + "trips-for-route", + "${params.getPathParam(0)}.json" + ) .putAllQueryParams(clientOptions.queryParams) .putAllQueryParams(params.getQueryParams()) .putAllHeaders(clientOptions.headers) diff --git a/onebusaway-sdk-java-core/src/main/kotlin/org/onebusaway/services/blocking/VehiclesForAgencyServiceImpl.kt b/onebusaway-sdk-java-core/src/main/kotlin/org/onebusaway/services/blocking/VehiclesForAgencyServiceImpl.kt index 1b2a7e1..0649135 100644 --- a/onebusaway-sdk-java-core/src/main/kotlin/org/onebusaway/services/blocking/VehiclesForAgencyServiceImpl.kt +++ b/onebusaway-sdk-java-core/src/main/kotlin/org/onebusaway/services/blocking/VehiclesForAgencyServiceImpl.kt @@ -33,7 +33,12 @@ constructor( val request = HttpRequest.builder() .method(HttpMethod.GET) - .addPathSegments("api", "where", "vehicles-for-agency", "{agencyID}.json") + .addPathSegments( + "api", + "where", + "vehicles-for-agency", + "${params.getPathParam(0)}.json" + ) .putAllQueryParams(clientOptions.queryParams) .putAllQueryParams(params.getQueryParams()) .putAllHeaders(clientOptions.headers) From 71bd15b8614bfb8cd68206e9846f02b4cc412d44 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 3 Oct 2024 15:43:22 +0000 Subject: [PATCH 3/3] release: 0.1.0-alpha.3 --- .release-please-manifest.json | 2 +- CHANGELOG.md | 9 +++++++++ README.md | 6 +++--- build.gradle.kts | 2 +- 4 files changed, 14 insertions(+), 5 deletions(-) diff --git a/.release-please-manifest.json b/.release-please-manifest.json index f14b480..aaf968a 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "0.1.0-alpha.2" + ".": "0.1.0-alpha.3" } \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index 8fcc87a..7ddbcb4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,14 @@ # Changelog +## 0.1.0-alpha.3 (2024-10-03) + +Full Changelog: [v0.1.0-alpha.2...v0.1.0-alpha.3](https://github.com/OneBusAway/java-sdk/compare/v0.1.0-alpha.2...v0.1.0-alpha.3) + +### Chores + +* **internal:** codegen related update ([#7](https://github.com/OneBusAway/java-sdk/issues/7)) ([ca7150a](https://github.com/OneBusAway/java-sdk/commit/ca7150a121355cdf5fc7c22ae283c9e680a5de61)) +* **internal:** codegen related update ([#9](https://github.com/OneBusAway/java-sdk/issues/9)) ([dfc2794](https://github.com/OneBusAway/java-sdk/commit/dfc2794f244796f1041b91c6bc01ef81c7b7a8be)) + ## 0.1.0-alpha.2 (2024-09-30) Full Changelog: [v0.1.0-alpha.1...v0.1.0-alpha.2](https://github.com/OneBusAway/java-sdk/compare/v0.1.0-alpha.1...v0.1.0-alpha.2) diff --git a/README.md b/README.md index 76964b8..3eea4fb 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ -[![Maven Central](https://img.shields.io/maven-central/v/org.onebusaway/onebusaway-sdk-java)](https://central.sonatype.com/artifact/org.onebusaway/onebusaway-sdk-java/0.1.0-alpha.2) +[![Maven Central](https://img.shields.io/maven-central/v/org.onebusaway/onebusaway-sdk-java)](https://central.sonatype.com/artifact/org.onebusaway/onebusaway-sdk-java/0.1.0-alpha.3) @@ -27,7 +27,7 @@ The REST API documentation can be foundĀ on [developer.onebusaway.org](https://d ```kotlin -implementation("org.onebusaway:onebusaway-sdk-java:0.1.0-alpha.2") +implementation("org.onebusaway:onebusaway-sdk-java:0.1.0-alpha.3") ``` #### Maven @@ -36,7 +36,7 @@ implementation("org.onebusaway:onebusaway-sdk-java:0.1.0-alpha.2") org.onebusaway onebusaway-sdk-java - 0.1.0-alpha.2 + 0.1.0-alpha.3 ``` diff --git a/build.gradle.kts b/build.gradle.kts index 877d27b..39ec9c0 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -4,7 +4,7 @@ plugins { allprojects { group = "org.onebusaway" - version = "0.1.0-alpha.2" // x-release-please-version + version = "0.1.0-alpha.3" // x-release-please-version }