final case class JsUndefOrStringOps(a: UndefOr[String]) extends UndefOrCommon[String] with Product with Serializable
- Alphabetic
- By Inheritance
- JsUndefOrStringOps
- Serializable
- Product
- Equals
- UndefOrCommon
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new JsUndefOrStringOps(a: UndefOr[String])
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def !?[B >: String](default: => B): B
Same as
.getOrElse
just shorter.Same as
.getOrElse
just shorter.- Definition Classes
- UndefOrCommon
- Annotations
- @inline()
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def ??[B >: String](default: => B): B
Same as
.getOrElse
just shorter.Same as
.getOrElse
just shorter.- Definition Classes
- UndefOrCommon
- Annotations
- @inline()
- val a: UndefOr[String]
- Definition Classes
- JsUndefOrStringOps → UndefOrCommon
- def as[B]: UndefOr[B]
Changes what's inside but preserves UndefOr.
Changes what's inside but preserves UndefOr.
- Definition Classes
- UndefOrCommon
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def filterEmpty: UndefOr[String]
Filter out empty string and null.
Filter out empty string and null.
- Annotations
- @inline()
- def filterNull: UndefOr[String]
null => undefined, else the value remains.
null => undefined, else the value remains.
- Definition Classes
- UndefOrCommon
- def filterTruthy: UndefOr[String]
Keep the value if its truthy, otherwise return undefined.
Keep the value if its truthy, otherwise return undefined.
- Definition Classes
- UndefOrCommon
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def isNull: Boolean
Tests for overall nullness which is different than
.isEmpty|.nonEmpty
.Tests for overall nullness which is different than
.isEmpty|.nonEmpty
.- Definition Classes
- UndefOrCommon
- def isTotalEmpty: Boolean
This may override
UndefOr.isEmpty
but this checks for null as well.This may override
UndefOr.isEmpty
but this checks for null as well.- Definition Classes
- UndefOrCommon
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def orEmpty: String
Return string's "zero" which is an empty string.
Return string's "zero" which is an empty string.
- Annotations
- @inline()
- def productElementNames: Iterator[String]
- Definition Classes
- Product
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toNonNullOption: Option[String]
This could also be
_.toOption.filter(_ != null)
but below is slightly faster.This could also be
_.toOption.filter(_ != null)
but below is slightly faster.- Definition Classes
- UndefOrCommon
- def toNull: |[String, Null]
Convert UndefOr[A] => A|Null
Convert UndefOr[A] => A|Null
- Definition Classes
- UndefOrCommon
- def toStringJs: String
Calls toString.
Calls toString. I'm not sure this is needed at all.
- Definition Classes
- UndefOrCommon
- def toTruthy: Boolean
Equivalent to !!someJSValue
Equivalent to !!someJSValue
- Definition Classes
- UndefOrCommon
- def toUndefOrNull: UndefOr[|[String, Null]]
Uh-oh, thought it was
js.UndefOr[A]
but you need to say its ajs.UndefOr[A|Null]
because the docs were wrong :-).Uh-oh, thought it was
js.UndefOr[A]
but you need to say its ajs.UndefOr[A|Null]
because the docs were wrong :-).- Definition Classes
- UndefOrCommon
- Annotations
- @inline()
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])