Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface OptionalInterface<T>

Idea of this function is from Java Optional This function checks value to be non null or undefined.

see

https://pavel-surinin.github.io/declarativejs/#/?id=optional

Type parameters

  • T

Hierarchy

  • OptionalInterface

Index

Methods

filter

get

  • get(): NonNullable<T>

ifAbsent

  • ifAbsent(consumer: () => void): void

ifPresent

  • ifPresent(consumer: () => void): void

isAbsent

  • isAbsent(): boolean

isPresent

  • isPresent(): boolean

map

orElse

  • orElse(value: T): T

orElseGet

  • orElseGet(supplier: () => T): T

orElseThrow

  • orElseThrow(errorMessage?: string): T

toArray

Generated using TypeDoc