A method that should be called from every well-designed equals method that is open to be overridden in a subclass.
A method that should be called from every well-designed equals method that is open to be overridden in a subclass. See Programming in Scala, Chapter 28 for discussion and design.
true if this instance can possibly equal that
, otherwise false
The universal equality method defined in AnyRef
.
The universal equality method defined in AnyRef
.
true
if the receiver object is equivalent to the argument; false
otherwise.
Returns false
if Left
or returns the result of the application of
the given function to the Right
value.
Returns None
if this is a Left
or if the
given predicate p
does not hold for the right value,
otherwise, returns a Right
.
Binds the given function across Right
.
Returns true
if Left
or returns the result of the application of
the given function to the Right
value.
Executes the given side-effect if this is a Right
.
Returns the value from this Right
or throws
Predef.NoSuchElementException
if this is a Left
.
Returns the value from this Right
or the given argument if this is a
Left
.
The hashCode method for reference types.
The hashCode method for reference types. See hashCode in Any.
the hash code value for this object.
Maps the function argument through Right
.
The size of this product.
The size of this product.
for a product A(x_1, ..., x_k)
, returns k
The nth element of this product, 0-based.
The nth element of this product, 0-based. In other words, for a
product A(x_1, ..., x_k)
, returns x_(n+1) where 0 < n < k.
the element n
elements after the first element
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.
A string used in the toString
methods of derived classes.
Implementations may override this method to prepend a string prefix
to the result of toString methods.
in the default implementation, the empty string
Returns a Some
containing the Right
value
if it exists or a None
if this is a Left
.
Returns a Seq
containing the Right
value if
it exists or an empty Seq
if this is a Left
.
Creates a String representation of this object.
Creates a String representation of this object. The default representation is platform dependent. On the java platform it is the concatenation of the class name, "@", and the object's hashcode in hexadecimal.
a String representation of the object.
use productIterator instead
Projects an
Either
into aRight
.1.0, 11/10/2008