org.coursera.common.stringkey

StringKeyFormat

Related Docs: trait StringKeyFormat | package stringkey

object StringKeyFormat extends CommonStringKeyFormats

Linear Supertypes
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. StringKeyFormat
  2. CommonStringKeyFormats
  3. DefaultTupleFormats
  4. TupleFormats
  5. AnyRef
  6. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Value Members

  1. final def !=(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  4. def apply[T](from: (StringKey) ⇒ Option[T], to: (T) ⇒ StringKey): StringKeyFormat[T]

  5. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  6. implicit val booleanFormat: StringKeyFormat[Boolean]

    Definition Classes
    CommonStringKeyFormats
  7. def caseClassFormat[T, U](apply: (U) ⇒ T, unapply: (T) ⇒ Option[U])(implicit otherFormat: StringKeyFormat[U]): StringKeyFormat[T]

    Conveniently construct a format for a case class type.

    Conveniently construct a format for a case class type.

    For example:

    case class StorageKey(distributionKey: String, sortKey: String)
    
    object StorageKey {
      implicit val stringKeyFormat: StringKeyFormat[StorageKey] =
        StringKeyFormat.caseClassFormat((apply _).tupled, unapply)
    }
  8. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  9. def delegateFormat[T, U](from: (U) ⇒ Option[T], to: (T) ⇒ U)(implicit otherFormat: StringKeyFormat[U]): StringKeyFormat[T]

    Format T by first converting it to U.

  10. implicit val doubleFormat: StringKeyFormat[Double]

    Definition Classes
    CommonStringKeyFormats
  11. def emptyFormat[T](key: String, canonical: ⇒ T): StringKeyFormat[T]

    Conveniently construct a format for an empty class.

    Conveniently construct a format for an empty class.

    This should NEVER be used for non-empty case classes.

    For example:

    case object Marker {
      implicit val stringKeyFormat: StringKeyFormat[Marker.type] =
        StringKeyFormat.emptyFormat("marker", Marker)
    }
  12. def enumFormat[SymbolType <: EnumSymbol](enumeration: Enum[SymbolType]): StringKeyFormat[SymbolType]

  13. def enumerationFormat(enumeration: Enumeration): StringKeyFormat[Value]

  14. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  15. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  16. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  17. implicit val floatFormat: StringKeyFormat[Float]

    Definition Classes
    CommonStringKeyFormats
  18. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  19. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  20. implicit val intFormat: StringKeyFormat[Int]

    Definition Classes
    CommonStringKeyFormats
  21. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  22. implicit val longFormat: StringKeyFormat[Long]

    Definition Classes
    CommonStringKeyFormats
  23. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  24. final def notify(): Unit

    Definition Classes
    AnyRef
  25. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  26. def prefixFormat[T](prefix: String, originalFormat: StringKeyFormat[T]): StringKeyFormat[T]

    Serializes T with a prefix so its string form is easily identifiable.

    Serializes T with a prefix so its string form is easily identifiable.

    For example:

    case class AuthenticatedUserId(id: Int)
    
    object AuthenticatedUserId {
      implicit val stringKeyFormat: StringKeyFormat[AuthenticatedUserId] = {
        StringKeyFormat.prefixFormat(
          "authenticatedUser",
          StringKeyFormat.caseClass((apply _).tupled, unapply))
      }
    }

    This format will convert AuthenticatedUserId(1) to "authenticatedUser~1".

  27. implicit val shortFormat: StringKeyFormat[Short]

    Definition Classes
    CommonStringKeyFormats
  28. implicit val stringFormat: StringKeyFormat[String]

    Definition Classes
    CommonStringKeyFormats
  29. implicit val stringKeyStringKeyFormat: StringKeyFormat[StringKey]

  30. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  31. def toString(): String

    Definition Classes
    AnyRef → Any
  32. implicit def tuple10Format[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10](implicit format1: StringKeyFormat[T1], format2: StringKeyFormat[T2], format3: StringKeyFormat[T3], format4: StringKeyFormat[T4], format5: StringKeyFormat[T5], format6: StringKeyFormat[T6], format7: StringKeyFormat[T7], format8: StringKeyFormat[T8], format9: StringKeyFormat[T9], format10: StringKeyFormat[T10]): StringKeyFormat[(T1, T2, T3, T4, T5, T6, T7, T8, T9, T10)]

    Definition Classes
    TupleFormats
  33. implicit def tuple11Format[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11](implicit format1: StringKeyFormat[T1], format2: StringKeyFormat[T2], format3: StringKeyFormat[T3], format4: StringKeyFormat[T4], format5: StringKeyFormat[T5], format6: StringKeyFormat[T6], format7: StringKeyFormat[T7], format8: StringKeyFormat[T8], format9: StringKeyFormat[T9], format10: StringKeyFormat[T10], format11: StringKeyFormat[T11]): StringKeyFormat[(T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11)]

    Definition Classes
    TupleFormats
  34. implicit def tuple12Format[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12](implicit format1: StringKeyFormat[T1], format2: StringKeyFormat[T2], format3: StringKeyFormat[T3], format4: StringKeyFormat[T4], format5: StringKeyFormat[T5], format6: StringKeyFormat[T6], format7: StringKeyFormat[T7], format8: StringKeyFormat[T8], format9: StringKeyFormat[T9], format10: StringKeyFormat[T10], format11: StringKeyFormat[T11], format12: StringKeyFormat[T12]): StringKeyFormat[(T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12)]

    Definition Classes
    TupleFormats
  35. implicit def tuple13Format[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13](implicit format1: StringKeyFormat[T1], format2: StringKeyFormat[T2], format3: StringKeyFormat[T3], format4: StringKeyFormat[T4], format5: StringKeyFormat[T5], format6: StringKeyFormat[T6], format7: StringKeyFormat[T7], format8: StringKeyFormat[T8], format9: StringKeyFormat[T9], format10: StringKeyFormat[T10], format11: StringKeyFormat[T11], format12: StringKeyFormat[T12], format13: StringKeyFormat[T13]): StringKeyFormat[(T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13)]

    Definition Classes
    TupleFormats
  36. implicit def tuple14Format[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14](implicit format1: StringKeyFormat[T1], format2: StringKeyFormat[T2], format3: StringKeyFormat[T3], format4: StringKeyFormat[T4], format5: StringKeyFormat[T5], format6: StringKeyFormat[T6], format7: StringKeyFormat[T7], format8: StringKeyFormat[T8], format9: StringKeyFormat[T9], format10: StringKeyFormat[T10], format11: StringKeyFormat[T11], format12: StringKeyFormat[T12], format13: StringKeyFormat[T13], format14: StringKeyFormat[T14]): StringKeyFormat[(T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14)]

    Definition Classes
    TupleFormats
  37. implicit def tuple15Format[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15](implicit format1: StringKeyFormat[T1], format2: StringKeyFormat[T2], format3: StringKeyFormat[T3], format4: StringKeyFormat[T4], format5: StringKeyFormat[T5], format6: StringKeyFormat[T6], format7: StringKeyFormat[T7], format8: StringKeyFormat[T8], format9: StringKeyFormat[T9], format10: StringKeyFormat[T10], format11: StringKeyFormat[T11], format12: StringKeyFormat[T12], format13: StringKeyFormat[T13], format14: StringKeyFormat[T14], format15: StringKeyFormat[T15]): StringKeyFormat[(T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15)]

    Definition Classes
    TupleFormats
  38. implicit def tuple16Format[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16](implicit format1: StringKeyFormat[T1], format2: StringKeyFormat[T2], format3: StringKeyFormat[T3], format4: StringKeyFormat[T4], format5: StringKeyFormat[T5], format6: StringKeyFormat[T6], format7: StringKeyFormat[T7], format8: StringKeyFormat[T8], format9: StringKeyFormat[T9], format10: StringKeyFormat[T10], format11: StringKeyFormat[T11], format12: StringKeyFormat[T12], format13: StringKeyFormat[T13], format14: StringKeyFormat[T14], format15: StringKeyFormat[T15], format16: StringKeyFormat[T16]): StringKeyFormat[(T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16)]

    Definition Classes
    TupleFormats
  39. implicit def tuple17Format[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17](implicit format1: StringKeyFormat[T1], format2: StringKeyFormat[T2], format3: StringKeyFormat[T3], format4: StringKeyFormat[T4], format5: StringKeyFormat[T5], format6: StringKeyFormat[T6], format7: StringKeyFormat[T7], format8: StringKeyFormat[T8], format9: StringKeyFormat[T9], format10: StringKeyFormat[T10], format11: StringKeyFormat[T11], format12: StringKeyFormat[T12], format13: StringKeyFormat[T13], format14: StringKeyFormat[T14], format15: StringKeyFormat[T15], format16: StringKeyFormat[T16], format17: StringKeyFormat[T17]): StringKeyFormat[(T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17)]

    Definition Classes
    TupleFormats
  40. implicit def tuple18Format[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18](implicit format1: StringKeyFormat[T1], format2: StringKeyFormat[T2], format3: StringKeyFormat[T3], format4: StringKeyFormat[T4], format5: StringKeyFormat[T5], format6: StringKeyFormat[T6], format7: StringKeyFormat[T7], format8: StringKeyFormat[T8], format9: StringKeyFormat[T9], format10: StringKeyFormat[T10], format11: StringKeyFormat[T11], format12: StringKeyFormat[T12], format13: StringKeyFormat[T13], format14: StringKeyFormat[T14], format15: StringKeyFormat[T15], format16: StringKeyFormat[T16], format17: StringKeyFormat[T17], format18: StringKeyFormat[T18]): StringKeyFormat[(T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18)]

    Definition Classes
    TupleFormats
  41. implicit def tuple19Format[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19](implicit format1: StringKeyFormat[T1], format2: StringKeyFormat[T2], format3: StringKeyFormat[T3], format4: StringKeyFormat[T4], format5: StringKeyFormat[T5], format6: StringKeyFormat[T6], format7: StringKeyFormat[T7], format8: StringKeyFormat[T8], format9: StringKeyFormat[T9], format10: StringKeyFormat[T10], format11: StringKeyFormat[T11], format12: StringKeyFormat[T12], format13: StringKeyFormat[T13], format14: StringKeyFormat[T14], format15: StringKeyFormat[T15], format16: StringKeyFormat[T16], format17: StringKeyFormat[T17], format18: StringKeyFormat[T18], format19: StringKeyFormat[T19]): StringKeyFormat[(T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19)]

    Definition Classes
    TupleFormats
  42. implicit def tuple20Format[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20](implicit format1: StringKeyFormat[T1], format2: StringKeyFormat[T2], format3: StringKeyFormat[T3], format4: StringKeyFormat[T4], format5: StringKeyFormat[T5], format6: StringKeyFormat[T6], format7: StringKeyFormat[T7], format8: StringKeyFormat[T8], format9: StringKeyFormat[T9], format10: StringKeyFormat[T10], format11: StringKeyFormat[T11], format12: StringKeyFormat[T12], format13: StringKeyFormat[T13], format14: StringKeyFormat[T14], format15: StringKeyFormat[T15], format16: StringKeyFormat[T16], format17: StringKeyFormat[T17], format18: StringKeyFormat[T18], format19: StringKeyFormat[T19], format20: StringKeyFormat[T20]): StringKeyFormat[(T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20)]

    Definition Classes
    TupleFormats
  43. implicit def tuple21Format[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21](implicit format1: StringKeyFormat[T1], format2: StringKeyFormat[T2], format3: StringKeyFormat[T3], format4: StringKeyFormat[T4], format5: StringKeyFormat[T5], format6: StringKeyFormat[T6], format7: StringKeyFormat[T7], format8: StringKeyFormat[T8], format9: StringKeyFormat[T9], format10: StringKeyFormat[T10], format11: StringKeyFormat[T11], format12: StringKeyFormat[T12], format13: StringKeyFormat[T13], format14: StringKeyFormat[T14], format15: StringKeyFormat[T15], format16: StringKeyFormat[T16], format17: StringKeyFormat[T17], format18: StringKeyFormat[T18], format19: StringKeyFormat[T19], format20: StringKeyFormat[T20], format21: StringKeyFormat[T21]): StringKeyFormat[(T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21)]

    Definition Classes
    TupleFormats
  44. implicit def tuple22Format[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21, T22](implicit format1: StringKeyFormat[T1], format2: StringKeyFormat[T2], format3: StringKeyFormat[T3], format4: StringKeyFormat[T4], format5: StringKeyFormat[T5], format6: StringKeyFormat[T6], format7: StringKeyFormat[T7], format8: StringKeyFormat[T8], format9: StringKeyFormat[T9], format10: StringKeyFormat[T10], format11: StringKeyFormat[T11], format12: StringKeyFormat[T12], format13: StringKeyFormat[T13], format14: StringKeyFormat[T14], format15: StringKeyFormat[T15], format16: StringKeyFormat[T16], format17: StringKeyFormat[T17], format18: StringKeyFormat[T18], format19: StringKeyFormat[T19], format20: StringKeyFormat[T20], format21: StringKeyFormat[T21], format22: StringKeyFormat[T22]): StringKeyFormat[(T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21, T22)]

    Definition Classes
    TupleFormats
  45. implicit def tuple2Format[T1, T2](implicit format1: StringKeyFormat[T1], format2: StringKeyFormat[T2]): StringKeyFormat[(T1, T2)]

    Definition Classes
    TupleFormats
  46. implicit def tuple3Format[T1, T2, T3](implicit format1: StringKeyFormat[T1], format2: StringKeyFormat[T2], format3: StringKeyFormat[T3]): StringKeyFormat[(T1, T2, T3)]

    Definition Classes
    TupleFormats
  47. implicit def tuple4Format[T1, T2, T3, T4](implicit format1: StringKeyFormat[T1], format2: StringKeyFormat[T2], format3: StringKeyFormat[T3], format4: StringKeyFormat[T4]): StringKeyFormat[(T1, T2, T3, T4)]

    Definition Classes
    TupleFormats
  48. implicit def tuple5Format[T1, T2, T3, T4, T5](implicit format1: StringKeyFormat[T1], format2: StringKeyFormat[T2], format3: StringKeyFormat[T3], format4: StringKeyFormat[T4], format5: StringKeyFormat[T5]): StringKeyFormat[(T1, T2, T3, T4, T5)]

    Definition Classes
    TupleFormats
  49. implicit def tuple6Format[T1, T2, T3, T4, T5, T6](implicit format1: StringKeyFormat[T1], format2: StringKeyFormat[T2], format3: StringKeyFormat[T3], format4: StringKeyFormat[T4], format5: StringKeyFormat[T5], format6: StringKeyFormat[T6]): StringKeyFormat[(T1, T2, T3, T4, T5, T6)]

    Definition Classes
    TupleFormats
  50. implicit def tuple7Format[T1, T2, T3, T4, T5, T6, T7](implicit format1: StringKeyFormat[T1], format2: StringKeyFormat[T2], format3: StringKeyFormat[T3], format4: StringKeyFormat[T4], format5: StringKeyFormat[T5], format6: StringKeyFormat[T6], format7: StringKeyFormat[T7]): StringKeyFormat[(T1, T2, T3, T4, T5, T6, T7)]

    Definition Classes
    TupleFormats
  51. implicit def tuple8Format[T1, T2, T3, T4, T5, T6, T7, T8](implicit format1: StringKeyFormat[T1], format2: StringKeyFormat[T2], format3: StringKeyFormat[T3], format4: StringKeyFormat[T4], format5: StringKeyFormat[T5], format6: StringKeyFormat[T6], format7: StringKeyFormat[T7], format8: StringKeyFormat[T8]): StringKeyFormat[(T1, T2, T3, T4, T5, T6, T7, T8)]

    Definition Classes
    TupleFormats
  52. implicit def tuple9Format[T1, T2, T3, T4, T5, T6, T7, T8, T9](implicit format1: StringKeyFormat[T1], format2: StringKeyFormat[T2], format3: StringKeyFormat[T3], format4: StringKeyFormat[T4], format5: StringKeyFormat[T5], format6: StringKeyFormat[T6], format7: StringKeyFormat[T7], format8: StringKeyFormat[T8], format9: StringKeyFormat[T9]): StringKeyFormat[(T1, T2, T3, T4, T5, T6, T7, T8, T9)]

    Definition Classes
    TupleFormats
  53. val tupleFormatSeparator: String

    Attributes
    protected[this]
    Definition Classes
    DefaultTupleFormatsTupleFormats
  54. def tupleWithSeparator(s: String): TupleFormats

    Definition Classes
    DefaultTupleFormats
  55. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  56. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  57. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from CommonStringKeyFormats

Inherited from DefaultTupleFormats

Inherited from TupleFormats

Inherited from AnyRef

Inherited from Any

Ungrouped