All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.fortysevendeg.scalacheck.datetime.Granularity.scala Maven / Gradle / Ivy

package com.fortysevendeg.scalacheck.datetime

trait Granularity[A] {
  val normalize: A => A
  val description: String
}

object Granularity {
  implicit def identity[A]: Granularity[A] = new Granularity[A] {
    val normalize = (a: A) => a
    val description = "None"
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy