Static method to enforce a clean code ethics.

Hierarchy

  • Strict

Constructors

Methods

Constructors

Methods

  • Ensures the truth of an expression.

    Parameters

    • expression: boolean

      a boolean expression

    • Optional message: string

      an optional message of the exception if check fails

    Returns void

    Throws

    IllegalArgumentException if expression is false

  • Ensures that an object reference is not null.

    Type Parameters

    • T

    Parameters

    • reference: T

      an object reference

    • Optional message: string

      an optional of the exception if the check fails

    Returns NonNullable<T>

    the non-null reference that was validated

    Throws

    NullPointerException if reference is null

Generated using TypeDoc