What is the difference between
class Test { private[this] val foo = 0 }
vs
class Test { private val foo = 0 } >
class Test { private val foo = 0 }
The first one is private for instance class, second is for class. If you use second version you have access from another instance of Test class (it's usefull for equals method or similiar).
equals