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

com.criteo.slab.core.Codec.scala Maven / Gradle / Ivy

There is a newer version: 0.4.14
Show newest version
package com.criteo.slab.core

import scala.util.Try

/**
  * Codec for values to be put in a store
  * @tparam T Input type
  * @tparam Repr Encoded type
  */
trait Codec[T, Repr] {
  def encode(v: T): Repr

  def decode(v: Repr): Try[T]
}





© 2015 - 2024 Weber Informatics LLC | Privacy Policy