Packages

c

dynamics.common

OrNullOps

final case class OrNullOps[A <: Any](a: |[A, Null]) extends Product with Serializable

It is common in interop code to model a value as A or null but not undefined.

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. OrNullOps
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. AnyRef
  7. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new OrNullOps(a: |[A, Null])

Value Members

  1. val a: |[A, Null]
  2. def toNonNullOption: Option[A]

    Convert an A|Null to a well formed option.

    Convert an A|Null to a well formed option.

    Annotations
    @inline()
  3. def toTruthy: Boolean

    If Null, then false, else true.

    If Null, then false, else true.

    Annotations
    @inline()