com.outworkers.phantom.builder.primitives

Primitive

object Primitive

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Primitive
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Value Members

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

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

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

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

    Definition Classes
    Any
  6. implicit object AsciPrimitive extends Primitive[AsciiValue]

  7. implicit object BigDecimalIsPrimitive extends Primitive[BigDecimal]

  8. implicit object BigIntPrimitive extends Primitive[BigInt]

  9. implicit object BlobIsPrimitive extends Primitive[ByteBuffer]

  10. implicit object BooleanIsPrimitive extends Primitive[Boolean]

  11. implicit val DateIsPrimitive: Primitive[Date]

  12. implicit val DateTimeIsPrimitive: Primitive[DateTime]

  13. implicit object DoublePrimitive extends Primitive[Double]

  14. implicit object FloatPrimitive extends Primitive[Float]

  15. implicit object InetAddressPrimitive extends Primitive[InetAddress]

  16. implicit object IntPrimitive extends Primitive[Int]

  17. implicit val JodaLocalDateIsPrimitive: Primitive[LocalDate]

  18. implicit object LocalDateIsPrimitive extends Primitive[LocalDate]

  19. implicit object LongPrimitive extends Primitive[Long]

  20. implicit object SmallIntPrimitive extends Primitive[Short]

  21. implicit val SqlTimestampIsPrimitive: Primitive[Timestamp]

  22. implicit object StringPrimitive extends Primitive[String]

  23. implicit object TinyIntPrimitive extends Primitive[Byte]

  24. implicit object UUIDPrimitive extends Primitive[UUID]

  25. def apply[RR]()(implicit ev: Primitive[RR]): Primitive[RR]

    Convenience method to materialise the context bound and return a reference to it.

    Convenience method to materialise the context bound and return a reference to it. This is somewhat shorter syntax than using implicitly.

    RR

    The type of the primitive to retrieve.

    returns

    A reference to a concrete materialised implementation of a primitive for the given type.

  26. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  27. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  28. def derive[Target, Source](to: (Target) ⇒ Source)(from: (Source) ⇒ Target)(implicit arg0: Primitive[Source]): Primitive[Target]

    Derives primitives and encodings for a non standard type.

    Derives primitives and encodings for a non standard type.

    Target

    The type you want to derive a primitive for.

    Source

    The source type of the primitive, must already have a primitive defined for it.

    to

    The function that converts a Target instance to a Source instance.

    from

    The function that converts a Source instance to a Target instance.

    returns

    A new primitive that can interact with the target type.

  29. def enumByIndex[En <: Enumeration](enum: En)(implicit ev: Primitive[Int]): Primitive[Primitive.enumByIndex.En.Value]

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

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

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

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  33. final def getClass(): Class[_]

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

    Definition Classes
    AnyRef → Any
  35. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  36. def iso[A, B](r: (B) ⇒ A)(w: (A) ⇒ B)(implicit arg0: Primitive[B]): Primitive[A]

  37. def json[Target](to: (Target) ⇒ String)(from: (String) ⇒ Target)(implicit ev: Primitive[String]): Primitive[Target]

  38. def manuallyDerive[Target, Source](to: (Target) ⇒ Source, from: (Source) ⇒ Target)(ev: Primitive[Source])(tpe: String = ev.dataType): Primitive[Target]

    Derives a primitive without implicit lookup in phantom itself.

    Derives a primitive without implicit lookup in phantom itself. This is because the macro that empowers the implicit lookup for primitives cannot be used in the same compilation as the one its defined in.

    Target

    The target type of the new primitive.

    Source

    The type we are deriving from.

    to

    The function that converts the derived value to the original one.

    from

    The function that will convert an original value to a derived one.

    ev

    Evidence that the source type is a Cassandra primitive.

    returns

    A new primitive for the target type.

  39. implicit def materializer[T]: Primitive[T]

    !! Warning !! Black magic going on.

    !! Warning !! Black magic going on. This will use the excellent macro compat library to macro materialise an instance of the required primitive based on the type argument. If this does not highlight properly in your IDE, fear not, it works on my machine :)

    T

    The type parameter to materialise a primitive for.

    returns

    A concrete instance of a primitive, materialised via implicit blackbox macros.

    Annotations
    @macroImpl( ... )
  40. final def ne(arg0: AnyRef): Boolean

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

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

    Definition Classes
    AnyRef
  43. val nullValue: Null

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

    Definition Classes
    AnyRef
  45. def toString(): String

    Definition Classes
    AnyRef → Any
  46. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped