Movatterモバイル変換


[0]ホーム

URL:


Scala 3
3.7.4
LearnInstallPlaygroundFind A LibraryCommunityBlog
Scala 3
LearnInstallPlaygroundFind A LibraryCommunityBlog
DocsAPI
Generated with
Copyright (c) 2002-2025, LAMP/EPFL
Copyright (c) 2002-2025, LAMP/EPFL
Scala 3/scala/Null

Null

scala.Null
final abstract openclassNull

Null is - together withscala.Nothing - at the bottom of the Scala type hierarchy.

Null is the type of thenull literal. It is a subtype of every type except those of value classes. Value classes are subclasses ofAnyVal, which includes primitive types such asInt,Boolean, and user-defined value classes.

SinceNull is not a subtype of value types,null is not a member of any such type. For instance, it is not possible to assignnull to a variable of typescala.Int.

Attributes

Graph
Supertypes
classObject
traitMatchable
classAny
In this article
Generated with
Copyright (c) 2002-2025, LAMP/EPFL
Copyright (c) 2002-2025, LAMP/EPFL

[8]ページ先頭

©2009-2025 Movatter.jp