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/Unit

Unit

scala.Unit
See theUnit companion class
objectUnit

Attributes

Companion
class
Source
Unit.scala
Graph
Supertypes
classObject
traitMatchable
classAny
Self type
Unit.type

Members list

Value members

Concrete methods

defbox(x:Unit):BoxedUnit

Transform a value type into a boxed reference type.

Transform a value type into a boxed reference type.

This method is not intended for use in source code. The runtime representation of this value is platform specific.

Value parameters

x

the Unit to be boxed

Attributes

Returns

a scala.runtime.BoxedUnit offeringx as its underlying value.

Source
Unit.scala
overridedeftoString:String

The String representation of the scala.Unit companion object.

The String representation of the scala.Unit companion object.

Attributes

Definition Classes
Source
Unit.scala

Transform a boxed type into a value type.

Transform a boxed type into a value type. Note that this method is not typesafe: it accepts any Object, but will throw an exception if the argument is not a scala.runtime.BoxedUnit.

This method is not intended for use in source code. The result of successfully unboxing a value is().

Value parameters

x

the scala.runtime.BoxedUnit to be unboxed.

Attributes

Returns

the Unit value ()

Throws

ClassCastException if the argument is not a scala.runtime.BoxedUnit

Source
Unit.scala
In this article
Generated with
Copyright (c) 2002-2025, LAMP/EPFL
Copyright (c) 2002-2025, LAMP/EPFL

[8]ページ先頭

©2009-2025 Movatter.jp