sealed abstract class Or[+A, +B] extends Product with Serializable
Linear Supertypes
Known Subclasses
Ordering
- Alphabetic
- By Inheritance
Inherited
- Or
- Serializable
- Serializable
- Product
- Equals
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
Abstract Value Members
-
abstract
def
canEqual(that: Any): Boolean
- Definition Classes
- Equals
- abstract def cata[C](l: (Left[A]) ⇒ C, r: (Right[B]) ⇒ C): C
- abstract def fold[C](l: (A) ⇒ C, r: (B) ⇒ C): C
-
abstract
def
productArity: Int
- Definition Classes
- Product
-
abstract
def
productElement(n: Int): Any
- Definition Classes
- Product
Concrete Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def >>[C >: A, D](r: ⇒ Or[C, D]): Or[C, D]
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
- final def bimap[C, D](l: (A) ⇒ C, r: (B) ⇒ D): Or[C, D]
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native() @HotSpotIntrinsicCandidate()
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def exists(f: (B) ⇒ Boolean): Boolean
- final def flatMap[C >: A, D](f: (B) ⇒ Or[C, D]): Or[C, D]
- final def flatten[C, D](implicit ev: <:<[Or[A, B], Or[C, Or[C, D]]]): Or[C, D]
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def isLeft: Boolean
- final def isRight: Boolean
- final def leftMap[C, D >: B](f: (A) ⇒ C): Or[C, D]
- final def leftOption: Option[A]
- final def map[C >: A, D](f: (B) ⇒ D): Or[C, D]
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
def
productIterator: Iterator[Any]
- Definition Classes
- Product
-
def
productPrefix: String
- Definition Classes
- Product
- final def recover[C >: B](f: (A) ⇒ C): C
- final def set[C >: A, D](d: ⇒ D): Or[C, D]
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
- final def test[C >: A](f: (B) ⇒ Option[C]): Or[C, B]
- final def toEither: Either[A, B]
- final def toOption: Option[B]
- final def toOptionMap[C](f: (B) ⇒ C): Option[C]
-
def
toString(): String
- Definition Classes
- AnyRef → Any
- final def toTri: Tri[A, B]
- final def toTriFlatMap[C >: A, D](f: (B) ⇒ Tri[C, D]): Tri[C, D]
- final def toTriMap[C](f: (B) ⇒ C): Tri[A, C]
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
Deprecated Value Members
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] ) @Deprecated @deprecated
- Deprecated
(Since version ) see corresponding Javadoc for more information.