Scala Long ==(x: Int) method
In Scala, Long is a 64-bit signed integer, which is equivalent to Java’s long primitive type. The ==(x: Int) method is utilized to return true if this value is equal to x, false otherwise.
Method Definition – def ==(x: Int): Boolean
Returns – Returns true if this value is equal to than x, false otherwise.