com.evolutiongaming.kafka.journal.RandomId.scala Maven / Gradle / Ivy
The newest version!
package com.evolutiongaming.kafka.journal
import cats.kernel.Eq
import cats.{Order, Show}
final case class RandomId(value: String) {
override def toString = value
}
object RandomId {
implicit val eqRandomId: Eq[RandomId] = Eq.fromUniversalEquals
implicit val showRandomId: Show[RandomId] = Show.fromToString
implicit val orderingRandomId: Ordering[RandomId] = Ordering.by { _.value }
implicit val orderRandomId: Order[RandomId] = Order.fromOrdering
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy