abstract final
class
Unit extends AnyVal
Instance Constructors
-
new
Unit()
Value Members
-
final
def
!=(arg0: Any): Boolean
-
final
def
##(): Int
-
-
def
->[B](y: B): (Unit, B)
-
final
def
==(arg0: Any): Boolean
-
final
def
asInstanceOf[T0]: T0
-
def
ensuring(cond: (Unit) ⇒ Boolean, msg: ⇒ Any): Unit
-
-
def
ensuring(cond: Boolean, msg: ⇒ Any): Unit
-
-
def
equals(arg0: Any): Boolean
-
def
formatted(fmtstr: String): String
-
-
def
hashCode(): Int
-
final
def
isInstanceOf[T0]: Boolean
-
def
toString(): String
-
def
→[B](y: B): (Unit, B)
Unit
is a subtype of scala.AnyVal. There is only one value of typeUnit
,()
, and it is not represented by any object in the underlying runtime system. A method with return typeUnit
is analogous to a Java method which is declaredvoid
.