Top "Case-class" questions

Case classes are regular classes which export their constructor parameters and which provide a recursive decomposition mechanism via pattern matching.

Scala - how to print case classes like (pretty printed) tree

I'm making a parser with Scala Combinators. It is awesome. What I end up with is a long list of …

scala pretty-print case-class
Scala case class update value

I have a case class with 2 String members. I would like to update The second member later, so first I …

scala option case-class
Why are case objects serializable and case classes not?

I am playing with this example http://scala.sygneca.com/code/remoteactors to learn how remote actors work in Scala (2.8.0). …

serialization scala case-class remote-actors
Cleaner way to update nested structures

Say I have got following two case classes: case class Address(street: String, city: String, state: String, zipCode: Int) case …

scala case-class zipper
Scala case class extending Product with Serializable

I am learning scala and tried following form Scala Cookbook: trait Animal trait FurryAnimal extends Animal case class Dog(name:…

scala types traits case-class
Scala case class private constructor but public apply method

If I have the following case class with a private constructor and I can not access the apply-method in the …

scala apply case-class private-constructor
What are the disadvantages to declaring Scala case classes?

If you're writing code that's using lots of beautiful, immutable data structures, case classes appear to be a godsend, giving …

scala case-class
How to define schema for custom type in Spark SQL?

The following example code tries to put some case objects into a dataframe. The code includes the definition of a …

scala apache-spark apache-spark-sql case-class
In Scala, is there an easy way to convert a case class into a tuple?

Is there an easy way to convert a case class into a tuple? I can, of course, easily write boilerplate …

scala tuples case-class
Using generic case classes in Scala

I wonder whether using generics for Scala case classes can save some boilerplate code. Let's save I have the following …

scala generics case-class