Say I have a case class Declared like this:
case object DoubleType {
type JvmType = Double
}
case class DoubleLiteral(value: Double) {
type fieldType = DoubleType.JvmType
val dt = DoubleType
val typeWidth = 8
//methods here after
}
What's scala's behaviour on serializing DoubleLiteral(2.0)?
Does it just serialize value? Or it will also serialize fieldType, dt and typeWidth?
If so, should I annotate fieldType, dt and typeWidth as @transient?