implicit final class BooleanOps extends AnyVal
- Alphabetic
- By Inheritance
- BooleanOps
- AnyVal
- Any
- by AnyOps
- by AnyOps
- by any2stringadd
- by StringFormat
- by Ensuring
- by ArrowAssoc
- Hide All
- Show All
- Public
- All
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- Any
-
final
def
##(): Int
- Definition Classes
- Any
-
def
+(other: String): String
- Implicit
- This member is added by an implicit conversion from BooleanOps to any2stringadd[BooleanOps] performed by method any2stringadd in scala.Predef.
- Definition Classes
- any2stringadd
-
def
->[B](y: B): (BooleanOps, B)
- Implicit
- This member is added by an implicit conversion from BooleanOps to ArrowAssoc[BooleanOps] performed by method ArrowAssoc in scala.Predef.
- Definition Classes
- ArrowAssoc
- Annotations
- @inline()
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- Any
-
def
?[A](true: ⇒ A): Conditional[A]
Ternary operator.
Ternary operator.
- A
the return type of the expression
- returns
the first parameter if the boolean value is true, the second parameter otherwise
cond ? "yes" | "no"
Example: -
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
asInt: Int
Converts a boolean value to integer.
Converts a boolean value to integer.
- returns
1
if the boolean is true,0
otherwise
- Annotations
- @inline()
-
def
ensuring(cond: (BooleanOps) ⇒ Boolean, msg: ⇒ Any): BooleanOps
- Implicit
- This member is added by an implicit conversion from BooleanOps to Ensuring[BooleanOps] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
-
def
ensuring(cond: (BooleanOps) ⇒ Boolean): BooleanOps
- Implicit
- This member is added by an implicit conversion from BooleanOps to Ensuring[BooleanOps] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
-
def
ensuring(cond: Boolean, msg: ⇒ Any): BooleanOps
- Implicit
- This member is added by an implicit conversion from BooleanOps to Ensuring[BooleanOps] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
-
def
ensuring(cond: Boolean): BooleanOps
- Implicit
- This member is added by an implicit conversion from BooleanOps to Ensuring[BooleanOps] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
-
def
formatted(fmtstr: String): String
- Implicit
- This member is added by an implicit conversion from BooleanOps to StringFormat[BooleanOps] performed by method StringFormat in scala.Predef.
- Definition Classes
- StringFormat
- Annotations
- @inline()
-
def
getClass(): Class[_ <: AnyVal]
- Definition Classes
- AnyVal → Any
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
thenOption[A](a: ⇒ A): Option[A]
Optionally returns a value if the boolean expression is true.
Optionally returns a value if the boolean expression is true.
- A
the type of value
a
- a
the value to be returned as an
Option
- returns
Option(a)
if the boolean expression is true,None
otherwise
-
def
toString(): String
- Definition Classes
- Any
-
def
→[B](y: B): (BooleanOps, B)
- Implicit
- This member is added by an implicit conversion from BooleanOps to ArrowAssoc[BooleanOps] performed by method ArrowAssoc in scala.Predef.
- Definition Classes
- ArrowAssoc
Shadowed Implicit Value Members
-
def
future: Future[BooleanOps]
Creates an already completed
Future
containingvalue
.Creates an already completed
Future
containingvalue
.- returns
the already completed
Future
with the specified result
- Implicit
- This member is added by an implicit conversion from BooleanOps to AnyOps[BooleanOps] performed by method AnyOps in scail.commons.ops.
- Shadowing
- This implicitly inherited member is ambiguous. One or more implicitly inherited members have similar signatures, so calling this member may produce an ambiguous implicit conversion compiler error.
To access this member you can use a type ascription:(booleanOps: AnyOps[BooleanOps]).future
- Definition Classes
- AnyOps
- Annotations
- @inline()
-
def
future: Future[BooleanOps]
Creates an already completed
Future
containingvalue
.Creates an already completed
Future
containingvalue
.- returns
the already completed
Future
with the specified result
- Implicit
- This member is added by an implicit conversion from BooleanOps to AnyOps[BooleanOps] performed by method AnyOps in scail.commons.ops.
- Shadowing
- This implicitly inherited member is ambiguous. One or more implicitly inherited members have similar signatures, so calling this member may produce an ambiguous implicit conversion compiler error.
To access this member you can use a type ascription:(booleanOps: AnyOps[BooleanOps]).future
- Definition Classes
- AnyOps
- Annotations
- @inline()
-
def
option: Option[BooleanOps]
Creates an
Option
containingvalue
.Creates an
Option
containingvalue
.- returns
Some(value)
ifvalue
is notnull
,None
otherwise
- Implicit
- This member is added by an implicit conversion from BooleanOps to AnyOps[BooleanOps] performed by method AnyOps in scail.commons.ops.
- Shadowing
- This implicitly inherited member is ambiguous. One or more implicitly inherited members have similar signatures, so calling this member may produce an ambiguous implicit conversion compiler error.
To access this member you can use a type ascription:(booleanOps: AnyOps[BooleanOps]).option
- Definition Classes
- AnyOps
- Annotations
- @inline()
-
def
option: Option[BooleanOps]
Creates an
Option
containingvalue
.Creates an
Option
containingvalue
.- returns
Some(value)
ifvalue
is notnull
,None
otherwise
- Implicit
- This member is added by an implicit conversion from BooleanOps to AnyOps[BooleanOps] performed by method AnyOps in scail.commons.ops.
- Shadowing
- This implicitly inherited member is ambiguous. One or more implicitly inherited members have similar signatures, so calling this member may produce an ambiguous implicit conversion compiler error.
To access this member you can use a type ascription:(booleanOps: AnyOps[BooleanOps]).option
- Definition Classes
- AnyOps
- Annotations
- @inline()
-
def
tap(f: (BooleanOps) ⇒ Unit): BooleanOps
Applies side-effectul method to
value
, returningvalue
.Applies side-effectul method to
value
, returningvalue
.- f
the side-effectful method to apply to
value
- returns
value
- Implicit
- This member is added by an implicit conversion from BooleanOps to AnyOps[BooleanOps] performed by method AnyOps in scail.commons.ops.
- Shadowing
- This implicitly inherited member is ambiguous. One or more implicitly inherited members have similar signatures, so calling this member may produce an ambiguous implicit conversion compiler error.
To access this member you can use a type ascription:(booleanOps: AnyOps[BooleanOps]).tap(f)
- Definition Classes
- AnyOps
-
def
tap(f: (BooleanOps) ⇒ Unit): BooleanOps
Applies side-effectul method to
value
, returningvalue
.Applies side-effectul method to
value
, returningvalue
.- f
the side-effectful method to apply to
value
- returns
value
- Implicit
- This member is added by an implicit conversion from BooleanOps to AnyOps[BooleanOps] performed by method AnyOps in scail.commons.ops.
- Shadowing
- This implicitly inherited member is ambiguous. One or more implicitly inherited members have similar signatures, so calling this member may produce an ambiguous implicit conversion compiler error.
To access this member you can use a type ascription:(booleanOps: AnyOps[BooleanOps]).tap(f)
- Definition Classes
- AnyOps