Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions buildSrc/src/main/kotlin/onebusaway-sdk.java.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ configure<SpotlessExtension> {
importOrder()
removeUnusedImports()
palantirJavaFormat()
toggleOffOn()
}
}

Expand Down
1 change: 1 addition & 0 deletions buildSrc/src/main/kotlin/onebusaway-sdk.kotlin.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ kotlin {
configure<SpotlessExtension> {
kotlin {
ktfmt().kotlinlangStyle()
toggleOffOn()
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,11 @@ constructor(
return true
}

return other is OnebusawaySdkError &&
this.additionalProperties == other.additionalProperties
return /* spotless:off */ other is OnebusawaySdkError && this.additionalProperties == other.additionalProperties /* spotless:on */
}

override fun hashCode(): Int {
return Objects.hash(additionalProperties)
return /* spotless:off */ Objects.hash(additionalProperties) /* spotless:on */
}

override fun toString() = "OnebusawaySdkError{additionalProperties=$additionalProperties}"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,11 @@ constructor(
return true
}

return other is AgenciesWithCoverageListParams &&
this.additionalQueryParams == other.additionalQueryParams &&
this.additionalHeaders == other.additionalHeaders
return /* spotless:off */ other is AgenciesWithCoverageListParams && this.additionalQueryParams == other.additionalQueryParams && this.additionalHeaders == other.additionalHeaders /* spotless:on */
}

override fun hashCode(): Int {
return Objects.hash(additionalQueryParams, additionalHeaders)
return /* spotless:off */ Objects.hash(additionalQueryParams, additionalHeaders) /* spotless:on */
}

override fun toString() =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -393,28 +393,14 @@ private constructor(
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
return /* spotless:off */ 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 /* spotless:on */
}

private var hashCode: Int = 0

override fun hashCode(): Int {
if (hashCode == 0) {
hashCode =
Objects.hash(
agencyId,
lat,
latSpan,
lon,
lonSpan,
additionalProperties,
)
hashCode = /* spotless:off */ Objects.hash(agencyId, lat, latSpan, lon, lonSpan, additionalProperties) /* spotless:on */
}
return hashCode
}
Expand All @@ -428,24 +414,14 @@ private constructor(
return true
}

return other is Data &&
this.limitExceeded == other.limitExceeded &&
this.list == other.list &&
this.references == other.references &&
this.additionalProperties == other.additionalProperties
return /* spotless:off */ other is Data && this.limitExceeded == other.limitExceeded && this.list == other.list && this.references == other.references && this.additionalProperties == other.additionalProperties /* spotless:on */
}

private var hashCode: Int = 0

override fun hashCode(): Int {
if (hashCode == 0) {
hashCode =
Objects.hash(
limitExceeded,
list,
references,
additionalProperties,
)
hashCode = /* spotless:off */ Objects.hash(limitExceeded, list, references, additionalProperties) /* spotless:on */
}
return hashCode
}
Expand All @@ -459,28 +435,14 @@ private constructor(
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
return /* spotless:off */ 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 /* spotless:on */
}

private var hashCode: Int = 0

override fun hashCode(): Int {
if (hashCode == 0) {
hashCode =
Objects.hash(
code,
currentTime,
text,
version,
data,
additionalProperties,
)
hashCode = /* spotless:off */ Objects.hash(code, currentTime, text, version, data, additionalProperties) /* spotless:on */
}
return hashCode
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,18 +36,11 @@ constructor(
return true
}

return other is AgencyRetrieveParams &&
this.agencyId == other.agencyId &&
this.additionalQueryParams == other.additionalQueryParams &&
this.additionalHeaders == other.additionalHeaders
return /* spotless:off */ other is AgencyRetrieveParams && this.agencyId == other.agencyId && this.additionalQueryParams == other.additionalQueryParams && this.additionalHeaders == other.additionalHeaders /* spotless:on */
}

override fun hashCode(): Int {
return Objects.hash(
agencyId,
additionalQueryParams,
additionalHeaders,
)
return /* spotless:off */ Objects.hash(agencyId, additionalQueryParams, additionalHeaders) /* spotless:on */
}

override fun toString() =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -475,38 +475,14 @@ private constructor(
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
return /* spotless:off */ 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 /* spotless:on */
}

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,
)
hashCode = /* spotless:off */ Objects.hash(disclaimer, email, fareUrl, id, lang, name, phone, privateService, timezone, url, additionalProperties) /* spotless:on */
}
return hashCode
}
Expand All @@ -520,24 +496,14 @@ private constructor(
return true
}

return other is Data &&
this.limitExceeded == other.limitExceeded &&
this.entry == other.entry &&
this.references == other.references &&
this.additionalProperties == other.additionalProperties
return /* spotless:off */ other is Data && this.limitExceeded == other.limitExceeded && this.entry == other.entry && this.references == other.references && this.additionalProperties == other.additionalProperties /* spotless:on */
}

private var hashCode: Int = 0

override fun hashCode(): Int {
if (hashCode == 0) {
hashCode =
Objects.hash(
limitExceeded,
entry,
references,
additionalProperties,
)
hashCode = /* spotless:off */ Objects.hash(limitExceeded, entry, references, additionalProperties) /* spotless:on */
}
return hashCode
}
Expand All @@ -551,28 +517,14 @@ private constructor(
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
return /* spotless:off */ 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 /* spotless:on */
}

private var hashCode: Int = 0

override fun hashCode(): Int {
if (hashCode == 0) {
hashCode =
Objects.hash(
code,
currentTime,
text,
version,
data,
additionalProperties,
)
hashCode = /* spotless:off */ Objects.hash(code, currentTime, text, version, data, additionalProperties) /* spotless:on */
}
return hashCode
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,24 +58,11 @@ constructor(
return true
}

return other is ArrivalAndDepartureListParams &&
this.stopId == other.stopId &&
this.minutesAfter == other.minutesAfter &&
this.minutesBefore == other.minutesBefore &&
this.time == other.time &&
this.additionalQueryParams == other.additionalQueryParams &&
this.additionalHeaders == other.additionalHeaders
return /* spotless:off */ other is ArrivalAndDepartureListParams && this.stopId == other.stopId && this.minutesAfter == other.minutesAfter && this.minutesBefore == other.minutesBefore && this.time == other.time && this.additionalQueryParams == other.additionalQueryParams && this.additionalHeaders == other.additionalHeaders /* spotless:on */
}

override fun hashCode(): Int {
return Objects.hash(
stopId,
minutesAfter,
minutesBefore,
time,
additionalQueryParams,
additionalHeaders,
)
return /* spotless:off */ Objects.hash(stopId, minutesAfter, minutesBefore, time, additionalQueryParams, additionalHeaders) /* spotless:on */
}

override fun toString() =
Expand Down
Loading