p
scalqa

Util.Void

package Void

Ordering
  1. Alphabetic
Inherited
  1. Void
  2. scala.AnyRef
  3. scala.Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Method

  1. def is(v: Any): Boolean

    Voidness test

    Voidness test

    Returns 'true' if value is void

    The full implementation is below:

    def is(v: Any): Boolean = v match {
      case v: Util.Void      => true
      case v: Util.Able.Void => v.isVoid
      case null              => true
      case v: String         => v.length == 0
      case v: Array[_]       => v.length == 0
      case v: Int            => v == 0
      case v: Long           => v == 0
      case v: Double         => v == 0
      case v: Float          => v == 0
      case v: Short          => v == 0
      case _                 => false
    }
    Definition Classes
    Void
Linear Supertypes
AnyRef, Any
Source: package.scala