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/scala.sys/BooleanProp

BooleanProp

scala.sys.BooleanProp
See theBooleanProp companion object
traitBooleanProp extendsProp[Boolean]

A few additional conveniences for Boolean properties.

Attributes

Companion
object
Source
BooleanProp.scala
Graph
Supertypes
traitProp[Boolean]
classObject
traitMatchable
classAny

Members list

Value members

Abstract methods

Implicitly added bybooleanPropAsBoolean

Compares two Boolean expressions and returnstrue if they evaluate to a different value.

Compares two Boolean expressions and returnstrue if they evaluate to a different value.

a != b returnstrue if and only if -a istrue andb isfalse or -a isfalse andb istrue.

Attributes

Source
Boolean.scala
Implicitly added bybooleanPropAsBoolean

Compares two Boolean expressions and returnstrue if both of them evaluate to true.

Compares two Boolean expressions and returnstrue if both of them evaluate to true.

a & b returnstrue if and only if -a andb aretrue.

Attributes

Note

This method evaluates botha andb, even if the result is already determined after evaluatinga.

Source
Boolean.scala
Implicitly added bybooleanPropAsBoolean

Compares two Boolean expressions and returnstrue if both of them evaluate to true.

Compares two Boolean expressions and returnstrue if both of them evaluate to true.

a && b returnstrue if and only if -a andb aretrue.

Attributes

Note

This method uses 'short-circuit' evaluation and behaves as if it was declared asdef &&(x: => Boolean): Boolean. Ifa evaluates tofalse,false is returned without evaluatingb.

Source
Boolean.scala
Implicitly added bybooleanPropAsBoolean

Compares two Boolean expressions and returnstrue if they evaluate to the same value.

Compares two Boolean expressions and returnstrue if they evaluate to the same value.

a == b returnstrue if and only if -a andb aretrue or -a andb arefalse.

Attributes

Source
Boolean.scala
Implicitly added bybooleanPropAsBoolean

Compares two Boolean expressions and returnstrue if they evaluate to a different value.

Compares two Boolean expressions and returnstrue if they evaluate to a different value.

a^ b returnstrue if and only if -a istrue andb isfalse or -a isfalse andb istrue.

Attributes

Source
Boolean.scala

Alter this property so thatvalue will be false.

Alter this property so thatvalue will be false.

Attributes

Source
BooleanProp.scala

Alter this property so thatvalue will be true.

Alter this property so thatvalue will be true.

Attributes

Source
BooleanProp.scala

Toggle the property between enabled and disabled states.

Toggle the property between enabled and disabled states.

Attributes

Source
BooleanProp.scala
Implicitly added bybooleanPropAsBoolean

Negates a Boolean expression.

Negates a Boolean expression.

-!a results infalse if and only ifa evaluates totrue and -!a results intrue if and only ifa evaluates tofalse.

Attributes

Returns

the negated expression

Source
Boolean.scala

The semantics of value are determined at Prop creation.

The semantics of value are determined at Prop creation. See methodsvalueIsTrue andkeyExists in object BooleanProp for examples.

Attributes

Returns

true if the current String is considered true, false otherwise

Source
BooleanProp.scala
Implicitly added bybooleanPropAsBoolean

Compares two Boolean expressions and returnstrue if one or both of them evaluate to true.

Compares two Boolean expressions and returnstrue if one or both of them evaluate to true.

a | b returnstrue if and only if -a istrue or -b istrue or -a andb aretrue.

Attributes

Note

This method evaluates botha andb, even if the result is already determined after evaluatinga.

Source
Boolean.scala
Implicitly added bybooleanPropAsBoolean

Compares two Boolean expressions and returnstrue if one or both of them evaluate to true.

Compares two Boolean expressions and returnstrue if one or both of them evaluate to true.

a || b returnstrue if and only if -a istrue or -b istrue or -a andb aretrue.

Attributes

Note

This method uses 'short-circuit' evaluation and behaves as if it was declared asdef ||(x: => Boolean): Boolean. Ifa evaluates totrue,true is returned without evaluatingb.

Source
Boolean.scala

Inherited and Abstract methods

defclear():Unit

Removes the property from the underlying map.

Removes the property from the underlying map.

Attributes

Inherited from:
Prop
Source
Prop.scala

Gets the current string value if any.

Gets the current string value if any. Will not return null: useisSet to test for existence.

Attributes

Returns

the current string value if any, else the empty string

Inherited from:
Prop
Source
Prop.scala

True if the key exists in the properties map.

True if the key exists in the properties map. Note that this is not sufficient for a Boolean property to be considered true.

Attributes

Returns

whether the map contains the key

Inherited from:
Prop
Source
Prop.scala

The full name of the property, e.g., "java.awt.headless".

The full name of the property, e.g., "java.awt.headless".

Attributes

Inherited from:
Prop
Source
Prop.scala

Some(value) if the property is set, None otherwise.

Some(value) if the property is set, None otherwise.

Attributes

Inherited from:
Prop
Source
Prop.scala
defset(newValue:String):String

Sets the property.

Sets the property.

Value parameters

newValue

the new string value

Attributes

Returns

the old value, or null if it was unset.

Inherited from:
Prop
Source
Prop.scala
defsetValue[T1 >:Boolean](value:T1):Boolean

Sets the property with a value of the represented type.

Sets the property with a value of the represented type.

Attributes

Inherited from:
Prop
Source
Prop.scala
In this article
Generated with
Copyright (c) 2002-2025, LAMP/EPFL
Copyright (c) 2002-2025, LAMP/EPFL

[8]ページ先頭

©2009-2025 Movatter.jp