Packages

c

ostrat.pExt

BooleanExtensions

final class BooleanExtensions extends AnyVal

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. BooleanExtensions
  2. AnyVal
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new BooleanExtensions(thisBool: Boolean)

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    Any
  2. final def ##(): Int
    Definition Classes
    Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def errFlatMap[A](fp: TextPosn, errStr: String, ifTrue: => EMon[A]): EMon[A]
  6. def errMap[A](fp: TextPosn, errStr: String, ifTrue: => A): EMon[A]
  7. def fold[A](ifTrue: => A, ifFalse: => A): A

    Folds the Boolean, a safer and more functional alternative to using an if else statement

  8. def getClass(): Class[_ <: AnyVal]
    Definition Classes
    AnyVal → Any
  9. def ifDo(f: => Unit): Unit

    A safer alternative to using an "if" without an else

    A safer alternative to using an "if" without an else

    Annotations
    @inline()
  10. def ifElse(ifProcedure: => Unit)(elseProcedure: => Unit): Unit

    A safer alternative to using an if-else statement

    A safer alternative to using an if-else statement

    Annotations
    @inline()
  11. def ifMod[A](value: A)(fMod: (A) => A): A

    if this Boolean is true modifies the value by applying the function ifMod to it else returns the value unmodified

  12. def ifNotStr(optionalString: String): String

    Returns the the empty string if true, returns String parameter if false

  13. def ifSeq[A](trueSeq: => Seq[A]): Seq[A]
  14. def ifSeq1[A](trueElem: => A): Seq[A]

    This needs to be changed to by name parameters when by name varargs are allowed.

    This needs to be changed to by name parameters when by name varargs are allowed. I think this is coming in 12.3

  15. def ifStr(optionalString: String): String

    Returns the String parameter if true, returns the empty string if false

  16. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  17. val thisBool: Boolean
  18. def toOption[A](obj: A): Option[A]
  19. def toString(): String
    Definition Classes
    Any
  20. def |!&(operand: Boolean): Boolean

Inherited from AnyVal

Inherited from Any

Ungrouped