org.coursera.common

stringkey

package stringkey

Visibility
  1. Public
  2. All

Type Members

  1. sealed trait CommonStringKeyFormats extends DefaultTupleFormats

  2. trait DefaultTupleFormats extends TupleFormats

    StringKeyFormats for tuple types with a fixed element separator.

  3. case class StringKey(key: String) extends Product with Serializable

    Represents an arbitrary string-typed key.

    Represents an arbitrary string-typed key.

    Classes should explicitly convert to this (rather than letting clients use toString to generate string versions of keys) as a signal that the key format must be stable and is not simply for debugging convenience.

    See StringKeyFormat for convenient conversion definitions.

  4. trait StringKeyFormat[T] extends AnyRef

    Conversion from T to StringKey for use in datastores, URLs, etc.

    Conversion from T to StringKey for use in datastores, URLs, etc. The format must be stable. Changes must be backwards- and forwards-compatible so the string form of the key can be stored in databases and passed on the wire by different client versions.

    These conversions must be invertible; that is, for val t: T, reads(writes(t)) == Some(t).

    Annotations
    @implicitNotFound( ... )
  5. trait TupleFormats extends AnyRef

    StringKeyFormats for tuple types with a configuration element separator.

Value Members

  1. object StringKey extends Serializable

  2. object StringKeyFormat extends CommonStringKeyFormats

  3. object TupleFormats

Ungrouped