The superclass of all classes scala.Any has two direct subclasses scala.AnyVal and scala.AnyRef representing two different class worlds: value classes and reference classes.
AnyからAnyValへ続くパターンと、AnyRefに続くパターンの二種類。
A Tour of Scala: Unified Types | The Scala Programming Language