A method that should be called from every well-designed equals method that is open to be overridden in a subclass.
The equality method defined in AnyRef
.
Deconstruction of the Either
type (in contrast to pattern matching).
Returns a hash code value for the object.
Returns true
if this is a Left
, false
otherwise.
Returns true
if this is a Right
, false
otherwise.
Joins an Either
through Left
.
Joins an Either
through Right
.
Projects this Either
as a Left
.
return k for a product A(x_1,.
def
productElement(arg0: Int): Any
For a product A(x_1,.
def
productElements: Iterator[Any]
def
productIterator: Iterator[Any]
An iterator that returns all fields of this product
def
productPrefix: String
By default the empty string.
def
right: RightProjection[A, B]
Projects this Either
as a Right
.
def
swap: Product with Either[B, A]
If this is a Left
, then return the left value in Right
or vice versa.
def
toString(): String
Returns a string representation of the object.
The left side of the disjoint union, as opposed to the
Right
side.version
1.0, 11/10/2008
authors:
Tony Morris, Workingmouse