c

com.nthportal

ExtraRichNullable

implicit final class ExtraRichNullable[A] extends AnyVal

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

Instance Constructors

  1. new ExtraRichNullable(a: A)

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. def ??[B >: A](value: ⇒ B): B

    Returns this if this is not null, or a default value otherwise.

    Returns this if this is not null, or a default value otherwise.

    This method is a null-coalescing operator, and is an alias of orIfNull.

    value

    a default value if this is null

    returns

    this if this is not null, or the default value otherwise

    Annotations
    @inline()
    See also

    orIfNull

  5. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  6. def getClass(): Class[_ <: AnyVal]
    Definition Classes
    AnyVal → Any
  7. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  8. def nonNull: A

    Asserts that this is not null.

    Asserts that this is not null.

    returns

    this, if it is not null

    Annotations
    @throws( ... )
    Exceptions thrown

    NullPointerException if this is null

  9. def orIfNull[B >: A](value: ⇒ B): B

    Returns this if this is not null, or a default value otherwise.

    Returns this if this is not null, or a default value otherwise.

    This method is null-coalescing.

    value

    a default value if this is null

    returns

    this if this is not null, or the default value otherwise

    See also

    ??

  10. def toString(): String
    Definition Classes
    Any

Inherited from AnyVal

Inherited from Any

Ungrouped