Unit

scala.Unit
See theUnit companion object
final abstract class Unit() extends AnyVal

Unit is a subtype of scala.AnyVal. There is only one value of type Unit, (), and it is not represented by any object in the underlying runtime system. A method with return type Unit is analogous to a Java method which is declared void.

Attributes

Companion
object
Source
Unit.scala
Graph
Supertypes
class AnyVal
trait Matchable
class Any
In this article