You normally use ==
, it routes to equals
, except that it treats null
s properly. Reference equality (rarely used) is eq
.
More Related Contents:
- What is the difference between JavaConverters and JavaConversions in Scala?
- Strange behaviour of the Array type with `==` operator
- How to convert scala List in to Map
- What are Scala context and view bounds?
- Best way to merge two maps and sum the values of same key?
- (Why) do we need to call cache or persist on a RDD
- Return in Scala
- Difference between reduce and foldLeft/fold in functional programming (particularly Scala and Scala APIs)?
- Abort early in a fold
- Generating a class from string and instantiating it in Scala 2.10
- Why is “Unable to find encoder for type stored in a Dataset” when creating a dataset of custom case class?
- Append a column to Data Frame in Apache Spark 1.3
- Processing multiple files as independent RDD’s in parallel
- MatchError while accessing vector column in Spark 2.0
- Spark: what’s the best strategy for joining a 2-tuple-key RDD with single-key RDD?
- How do I list all files in a subdirectory in scala?
- Mixing in a trait dynamically
- How to change setting inside SBT command?
- Operate on neighbor elements in RDD in Spark
- Renaming column names of a DataFrame in Spark Scala
- Difference between fold and foldLeft or foldRight?
- Scala macros: What is the difference between typed (aka typechecked) and untyped Trees
- Get TypeTag[A] from Class[A]
- In Scala, what exactly does ‘val a: A = _’ (underscore) mean?
- What are all the instances of syntactic sugar in Scala?
- Spark: long delay between jobs
- How to print the contents of RDD?
- Can I import from multiple packages all at once in Scala?
- How is this case class match pattern working?
- Joining two dataframes without a common column