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

Boolean

scala.Boolean
See theBoolean companion class
objectBoolean

Attributes

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

Members list

Value members

Concrete methods

Transform a value type into a boxed reference type.

Transform a value type into a boxed reference type.

Runtime implementation determined byscala.runtime.BoxesRunTime.boxToBoolean. Seesrc/library/scala/runtime/BoxesRunTime.java.

Value parameters

x

the Boolean to be boxed

Attributes

Returns

a java.lang.Boolean offeringx as its underlying value.

Source
Boolean.scala
overridedeftoString:String

The String representation of the scala.Boolean companion object.

The String representation of the scala.Boolean companion object.

Attributes

Definition Classes
Source
Boolean.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 java.lang.Boolean.

Runtime implementation determined byscala.runtime.BoxesRunTime.unboxToBoolean. Seesrc/library/scala/runtime/BoxesRunTime.java.

Value parameters

x

the java.lang.Boolean to be unboxed.

Attributes

Returns

the Boolean resulting from calling booleanValue() onx

Throws

ClassCastException if the argument is not a java.lang.Boolean

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

[8]ページ先頭

©2009-2025 Movatter.jp