Scala class with private (and immutable) parameter