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
.
Returns false
if Right
or returns the result of the application of
the given function to the Left
value.
Returns None
if this is a Right
or if the given predicatep
does not hold for the left value, otherwise, returns a Left
.
Binds the given function across Left
.
Returns true
if Right
or returns the result of the application of
the given function to the Left
value.
Executes the given side-effect if this is a Left
.
Returns the value from this Left
or throws Predef.
def
getOrElse[AA >: A](or: ⇒ AA): AA
Returns the value from this Left
or the given argument if this is aRight
.
def
hashCode(): Int
Returns a hash code value for the object.
def
map[X](f: (A) ⇒ X): Product with Either[X, B]
Maps the function argument through Left
.
def
productArity: Int
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
toOption: Option[A]
Returns a Some
containing the Left
value if it exists or aNone
if this is a Right
.
def
toSeq: Seq[A]
Returns a Seq
containing the Left
value if it exists or an emptySeq
if this is a Right
.
def
toString(): String
Returns a string representation of the object.
Projects an
Either
into aLeft
.version
1.0, 11/10/2008
authors:
Tony Morris, Workingmouse