Packages

package lang

Ordering
  1. Alphabetic
Visibility
  1. Public
  2. All

Value Members

  1. object Equals extends Equals

    A object that provides a org.scalactic.TypeCheckedTripleEquals.CheckingEqualizer for any type

    A object that provides a org.scalactic.TypeCheckedTripleEquals.CheckingEqualizer for any type

    Overview

    This object is useful to use the features provided by lerna.util.lang.Equals without mix-in the trait.

    Example:
    1. scala> import lerna.util.lang.Equals._
      
      scala> 1 === 1
      res0: Boolean = true
      scala> 1 === 2
      res1: Boolean = false

      A compile error occurs if the wrong types are compared.

      scala> import lerna.util.lang.Equals._
      scala> import org.scalatest.Assertions._
      
      scala> assertDoesNotCompile("1 === 1.0").isSucceeded
      res0: Boolean = true

Ungrouped