A method that should be called from every well-designed equals method that is open to be overridden in a subclass.
The universal equality method defined in AnyRef
.
The hashCode method for reference types.
The size of this product.
The nth element of this product, 0-based.
An iterator over all the elements of this product.
An iterator over all the elements of this product.
in the default implementation, an Iterator[Any]
A string used in the toString
methods of derived classes.
Creates a String representation of this object.
(Since version 2.8.0) use productIterator instead
A wrapper over sequence of matches.
Given
p1: Parser[A]
andp2: Parser[B]
, a parser composed withp1 ~ p2
will have typeParser[~[A, B]]
. The successful result of the parser can be extracted from this case class.It also enables pattern matching, so something like this is possible: