Skip to content

Commit

Permalink
Remove unnecessary hashCode impl
Browse files Browse the repository at this point in the history
  • Loading branch information
mattupstate committed Dec 9, 2023
1 parent db55c5d commit aa9374b
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,6 @@ data class Appointment(
fun cancel() =
copy(state = AppointmentState.CANCELED)

override fun hashCode(): Int {
return id.hashCode()
}

@JvmInline
@Serializable
value class Id(val value: String)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,7 @@ data class Client(
val gender: Gender,
val contactPoints: Set<ContactPoint> = emptySet(),
) : Identifiable<Client.Id> {
override fun hashCode(): Int {
return id.hashCode()
}


@JvmInline
@Serializable
value class Id(val value: String)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,7 @@ data class Practice(
val name: Name,
val contactPoints: Set<ContactPoint>,
) : Identifiable<Practice.Id> {

override fun hashCode(): Int {
return id.hashCode()
}


@JvmInline
@Serializable
value class Id(val value: String)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,7 @@ data class Practitioner(
val gender: Gender,
val contactPoints: Set<ContactPoint> = emptySet(),
) : Identifiable<Practitioner.Id> {

override fun hashCode(): Int {
return id.hashCode()
}


@JvmInline
@Serializable
value class Id(val value: String)
Expand Down

0 comments on commit aa9374b

Please sign in to comment.