Skip to content

Commit

Permalink
EntityKey#asKeyOf
Browse files Browse the repository at this point in the history
  • Loading branch information
nafg committed Jan 23, 2024
1 parent eba3ea1 commit 5dc7757
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ case class EntityKey[K, +A](override val key: K) extends Lookup[K, A] {
override def updated[B](value: B) = ModifiedEntity(key, value)
override def widen[B >: A]: EntityKey[K, B] = transform(identity)
override def toEntityKey = this
def asKeyOf[B] = copy[K, B]()
}

sealed trait Entity[K, +A] extends EntityRef[K, A] {
Expand Down

0 comments on commit 5dc7757

Please sign in to comment.