muster.input

Consumer

object Consumer

Contains the macro implementation for the muster.input.Consumer type class and a bunch of default implementations

See also

muster.input.Consumer

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

Type Members

  1. type ErrorHandler[S] = PartialFunction[Throwable, S]

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 val BigDecimalConsumer: Consumer[BigDecimal]

    A BigDecimal consumer, reads big decimal numbers

  7. implicit val BigIntConsumer: Consumer[BigInt]

    A BigInt consumer, reads big integer numbers

  8. implicit val BooleanConsumer: Consumer[Boolean]

    A Boolean consumer, reads booleans

  9. implicit val ByteConsumer: Consumer[Byte]

    A Byte consumer, reads bytes

  10. implicit val DoubleConsumer: Consumer[Double]

    A Double consumer, reads double numbers

  11. implicit val FloatConsumer: Consumer[Float]

    A Float consumer, reads floating point numbers

  12. implicit val IntConsumer: Consumer[Int]

    An Int consumer, reads int numbers

  13. implicit val Iso8601DateConsumer: Consumer[Date]

    A Date consumer, reads ISO8601 dates that follow this pattern yyyy-MM-ddThh:mm:ss[.

    A Date consumer, reads ISO8601 dates that follow this pattern yyyy-MM-ddThh:mm:ss[.sss][Z|[+-]hh:mm]

  14. implicit val JavaBigDecimalConsumer: Consumer[BigDecimal]

    A BigDecimal consumer, reads big decimal numbers

  15. implicit val JavaBigIntConsumer: Consumer[BigInteger]

    A BigInt consumer, reads big integer numbers

  16. implicit val JavaByteConsumer: Consumer[Byte]

    A Byte consumer, reads bytes

  17. implicit val JavaDoubleConsumer: Consumer[Double]

    A Double consumer, reads double numbers

  18. implicit val JavaFloatConsumer: Consumer[Float]

    A Float consumer, reads floating point numbers

  19. implicit val JavaIntConsumer: Consumer[Integer]

    An Int consumer, reads int numbers

  20. implicit val JavaLongConsumer: Consumer[Long]

    A Long consumer, reads long numbers

  21. implicit val JavaShortConsumer: Consumer[Short]

    A Short consumer, reads short numbers

  22. implicit val LongConsumer: Consumer[Long]

    A Long consumer, reads long numbers

  23. implicit val ShortConsumer: Consumer[Short]

    A Short consumer, reads short numbers

  24. implicit val StringConsumer: Consumer[String]

    A String consumer, reads strings

  25. implicit val SymbolConsumer: Consumer[Symbol]

    A Symbol consumer, reads scala symbols

  26. implicit def arrayConsumer[T](implicit ct: ClassTag[T], valueReader: Consumer[T]): Consumer[Array[T]]

    An array consumer, reads an array

    An array consumer, reads an array

    T

    the element type

    ct

    the class tag of the element type

    valueReader

    the muster.input.Consumer for the element type

    returns

    a muster.input.Consumer for a scala.Array of type T

  27. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  28. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  29. implicit def consumer[T]: Consumer[T]

    The macro implementation of the consumer type class

    The macro implementation of the consumer type class

    This macro builds deserializers for instances of type T. The deserializer makes use of a AstNode to possibly walk the values for the properties of T

    T

    the type to build instances for

    returns

    a muster.input.Consumer for instance of type T

    Annotations
    @macroImpl( ... )
  30. def consumerImpl[T](c: Context)(implicit arg0: scala.reflect.macros.Context.WeakTypeTag[T]): scala.reflect.macros.Context.Expr[Consumer[T]]

  31. def dateConsumer(pattern: String, locale: Locale = SafeSimpleDateFormat.DefaultLocale): Consumer[Date]

    Creates a date consumer for the specified pattern, this consumer is thread-safe

    Creates a date consumer for the specified pattern, this consumer is thread-safe

    pattern

    the simple date format pattern

    locale

    the locale to use for this date consumer

    returns

    a muster.input.Consumer that produces a java.util.Date

    See also

    http://docs.oracle.com/javase/7/docs/api/java/text/SimpleDateFormat.html

  32. implicit def eitherConsumer[L, R](implicit leftReader: Consumer[L], rightReader: Consumer[R]): Consumer[Either[L, R]]

    Provides a reader for a scala either

    Provides a reader for a scala either

    This consumer first tries to deserialize the right side if that fails, it tries the right side recove handler. If both of those things fail it will try and parse the node as a left side.

    L

    the type for the left side of the either

    R

    the type for the right side of the either

    leftReader

    the reader to use for the left side of the either

    rightReader

    the reader to use for the right side of the either

    returns

    a muster.input.Consumer for a scala.Either of types L and R

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

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

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

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

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

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

    Definition Classes
    Any
  39. implicit def javaListConsumer[T](implicit valueConsumer: Consumer[T]): Consumer[List[T]]

    A java list consumer, reads java.util.List objects

    A java list consumer, reads java.util.List objects

    T

    the value type of the java.util.List

    valueConsumer

    the consumer for value type T

    returns

    a consumer for java.util.List of type T

  40. implicit def javaMapConsumer[K, T](implicit keySerializer: MapKeySerializer[K], valueConsumer: Consumer[T]): Consumer[Map[K, T]]

    A java map consumer, reads java.util.Map objects

    A java map consumer, reads java.util.Map objects

    K

    the key type of the java.util.Map

    T

    the value type of the java.util.Map

    valueConsumer

    the consumer for value type T

    returns

    a consumer for java.util.Map of types K and T

  41. implicit def javaSetConsumer[T](implicit valueConsumer: Consumer[T]): Consumer[Set[T]]

    A java set consumer, reads java.util.Set objects

    A java set consumer, reads java.util.Set objects

    T

    the value type of the java.util.Set

    valueConsumer

    the consumer for value type T

    returns

    a consumer for java.util.Set of type T

  42. implicit def mapConsumer[F[_, _], K, V](implicit cbf: CanBuildFrom[F[_, _], (K, V), F[K, V]], keySerializer: MapKeySerializer[K], valueConsumer: Consumer[V]): Consumer[F[K, V]]

    A map consumer, reads scala map objects

    A map consumer, reads scala map objects

    F

    the type of map to build

    K

    the type for the key of the F

    V

    the type for the value of the F

    keySerializer

    the muster.MapKeySerializer to use for serializing keys of type K to a string

    valueConsumer

    the muster.input.Consumer to use for reading the values into the map

    returns

    a muster.input.Consumer that consumes F for types K and V

  43. final def ne(arg0: AnyRef): Boolean

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

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

    Definition Classes
    AnyRef
  46. implicit def optionConsumer[T](implicit valueReader: Consumer[T]): Consumer[Option[T]]

    An option consumer, reads a scala.Option

    An option consumer, reads a scala.Option

    T

    the value type of the option

    valueReader

    the reader for the type T

    returns

    a muster.input.Consumer for a scala.Option of type T

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

    Definition Classes
    AnyRef
  48. implicit def throwableEitherConsumer[R](implicit valueReader: Consumer[R]): Consumer[Either[Throwable, R]]

    Provides a reader that catches throwables and turns them into the left side of an either.

    Provides a reader that catches throwables and turns them into the left side of an either.

    This consumer also takes the recover handler on the valueReader into account

    R

    The value type for the right side of the either

    valueReader

    the reader for the right side of the either

    returns

    a muster.input.Consumer for a scala.Either

  49. def toString(): String

    Definition Classes
    AnyRef → Any
  50. implicit def traversableConsumer[F[_], V](implicit cbf: CanBuildFrom[F[_], V, F[V]], valueReader: Consumer[V]): Consumer[F[V]]

    A traversable consumer, reads scala collections

    A traversable consumer, reads scala collections

    F

    the type of collection to build

    V

    the value type for the collection elements

    cbf

    the scala.collection.generic.CanBuildFrom for the traversable to build

    valueReader

    the muster.input.Consumer to read the values for this traversable

    returns

    a muster.input.Consumer for the traversable defined by F

  51. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped