in scalding-serialization/src/main/scala/com/twitter/scalding/serialization/macros/impl/ordered_serialization/providers/PrimitiveOrderedBuf.scala [27:60]
def dispatch(c: Context): PartialFunction[c.Type, TreeOrderedBuf[c.type]] = {
case tpe if tpe =:= c.universe.typeOf[Boolean] =>
PrimitiveOrderedBuf(c)(tpe, "Boolean", 1, false)
case tpe if tpe =:= c.universe.typeOf[java.lang.Boolean] =>
PrimitiveOrderedBuf(c)(tpe, "Boolean", 1, true)
case tpe if tpe =:= c.universe.typeOf[Byte] =>
PrimitiveOrderedBuf(c)(tpe, "Byte", 1, false)
case tpe if tpe =:= c.universe.typeOf[java.lang.Byte] =>
PrimitiveOrderedBuf(c)(tpe, "Byte", 1, true)
case tpe if tpe =:= c.universe.typeOf[Short] =>
PrimitiveOrderedBuf(c)(tpe, "Short", 2, false)
case tpe if tpe =:= c.universe.typeOf[java.lang.Short] =>
PrimitiveOrderedBuf(c)(tpe, "Short", 2, true)
case tpe if tpe =:= c.universe.typeOf[Char] =>
PrimitiveOrderedBuf(c)(tpe, "Character", 2, false)
case tpe if tpe =:= c.universe.typeOf[java.lang.Character] =>
PrimitiveOrderedBuf(c)(tpe, "Character", 2, true)
case tpe if tpe =:= c.universe.typeOf[Int] =>
PrimitiveOrderedBuf(c)(tpe, "Integer", 4, false)
case tpe if tpe =:= c.universe.typeOf[java.lang.Integer] =>
PrimitiveOrderedBuf(c)(tpe, "Integer", 4, true)
case tpe if tpe =:= c.universe.typeOf[Long] =>
PrimitiveOrderedBuf(c)(tpe, "Long", 8, false)
case tpe if tpe =:= c.universe.typeOf[java.lang.Long] =>
PrimitiveOrderedBuf(c)(tpe, "Long", 8, true)
case tpe if tpe =:= c.universe.typeOf[Float] =>
PrimitiveOrderedBuf(c)(tpe, "Float", 4, false)
case tpe if tpe =:= c.universe.typeOf[java.lang.Float] =>
PrimitiveOrderedBuf(c)(tpe, "Float", 4, true)
case tpe if tpe =:= c.universe.typeOf[Double] =>
PrimitiveOrderedBuf(c)(tpe, "Double", 8, false)
case tpe if tpe =:= c.universe.typeOf[java.lang.Double] =>
PrimitiveOrderedBuf(c)(tpe, "Double", 8, true)
}