trait AnyOps[T] extends AnyRef

Linear Supertypes
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. AnyOps
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Abstract Value Members

  1. abstract def a: T
    Attributes
    protected

Concrete Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. def as[T]: T

    .asInstanceOf[T] but shorter.

    .asInstanceOf[T] but shorter. Very dangerous!

  5. def asBoolean: Boolean
  6. def asDouble: Double
  7. def asDyn: Dynamic
  8. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  9. def asInt: Int
  10. def asJsAny: Any

    If T is js.Any, this may be redundent.

  11. def asJsArray[A]: Array[A]
  12. def asJsObj: Object
  13. def asJson: String
  14. def asNumber: Number
  15. def asString: String
  16. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
  17. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  18. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  19. def filterNull: UndefOr[T]

    Internal null values become undefined.

  20. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  21. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  22. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  23. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  24. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  25. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  26. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  27. def toNonNullOption: Option[T]

    If value is null or undefined be None, else Some.

  28. def toNonNullUndefOr: UndefOr[T]

    If value is null or undefined be undefined, otherwise defined.

    If value is null or undefined be undefined, otherwise defined. Could be called "filterNull".

  29. def toString(): String
    Definition Classes
    AnyRef → Any
  30. def toStringJs: String

    Call the toString method after casting to js.Any.

    Call the toString method after casting to js.Any. Not sure casting makes any difference though.

  31. def toTruthy: Boolean

    Equivalent !!x for some javascript value x.

  32. def toTruthyUndefOr: UndefOr[T]

    Wow, a mouthful! If its a javascript truthy=true, its defined, otherwise undef.

    Wow, a mouthful! If its a javascript truthy=true, its defined, otherwise undef. Takes into account 0, "" and [] javascript idioms i.e. takes into account the FP zero.

    Example:
    1. val s = "" // s.toTruthyUndefOr[String] => js.undefined
      val s = "blah" // s.toTurthyUndefOr[String] => defined "blah"
      val n = 0  // n.toTruthyUndefOr[Int] => js.undefined
      val n1 = 1 // n1.toTruthyUndefOr[Int] => defined 1
  33. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  34. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  35. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated @deprecated
    Deprecated

    (Since version ) see corresponding Javadoc for more information.

Inherited from AnyRef

Inherited from Any

Ungrouped