Class

dogs

Some

Related Doc: package dogs

Permalink

final case class Some[A](a: A) extends Option[A] with Product with Serializable

Linear Supertypes
Serializable, Serializable, Product, Equals, Option[A], AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Some
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. Option
  7. AnyRef
  8. Any
  1. Hide All
  2. Show all
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Some(a: A)

    Permalink

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def <\/[B](b: ⇒ B): Xor[A, B]

    Permalink

    alias for toLeft

    alias for toLeft

    Definition Classes
    Option
  4. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  5. final def \/>[B](b: ⇒ B): Xor[B, A]

    Permalink

    alias for toRight

    alias for toRight

    Definition Classes
    Option
  6. val a: A

    Permalink
  7. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  8. final def cata[B](f: (A) ⇒ B, b: ⇒ B): B

    Permalink

    Catamorphism.

    Catamorphism. Run the given function on the underlying value if present, otherwise return the provided fallback value

    Definition Classes
    Option
  9. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  10. final def coflatMap[B](f: (Option[A]) ⇒ B): Option[B]

    Permalink
    Definition Classes
    Option
  11. final def coflatten: Option[Option[A]]

    Permalink
    Definition Classes
    Option
  12. final def collect[B](f: PartialFunction[A, B]): Option[B]

    Permalink
    Definition Classes
    Option
  13. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  14. final def exists(f: (A) ⇒ Boolean): Boolean

    Permalink

    Return true if this is a Some and the underlying value satisfies the provided predicate

    Return true if this is a Some and the underlying value satisfies the provided predicate

    Definition Classes
    Option
  15. final def filter(f: (A) ⇒ Boolean): Option[A]

    Permalink
    Definition Classes
    Option
  16. final def filterNot(f: (A) ⇒ Boolean): Option[A]

    Permalink
    Definition Classes
    Option
  17. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  18. final def flatMap[B](f: (A) ⇒ Option[B]): Option[B]

    Permalink

    Return a new Option which is the result of applying a function to the value if a value is present.

    Return a new Option which is the result of applying a function to the value if a value is present.

    Definition Classes
    Option
  19. final def foldLeft[B](b: B)(f: (B, A) ⇒ B): B

    Permalink
    Definition Classes
    Option
  20. final def foldRight[B](b: Eval[B])(f: (A, Eval[B]) ⇒ Eval[B]): Eval[B]

    Permalink
    Definition Classes
    Option
  21. final def forall(f: (A) ⇒ Boolean): Boolean

    Permalink

    Return true if this is a None or if this is a Some and the underlying value satisfies the provided predicate

    Return true if this is a None or if this is a Some and the underlying value satisfies the provided predicate

    Definition Classes
    Option
  22. final def foreach(f: (A) ⇒ Unit): Unit

    Permalink

    Call the side-effecting function with the value if one is present.

    Call the side-effecting function with the value if one is present.

    Definition Classes
    Option
  23. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  24. final def getOrElse(a: ⇒ A): A

    Permalink

    Return the underlying value if present, otherwise the provided fallback value

    Return the underlying value if present, otherwise the provided fallback value

    Definition Classes
    Option
  25. final def isDefined: Boolean

    Permalink
    Definition Classes
    Option
  26. final def isEmpty: Boolean

    Permalink
    Definition Classes
    Option
  27. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  28. final def isNone: Boolean

    Permalink

    True if no underlying value is present

    True if no underlying value is present

    Definition Classes
    Option
  29. final def isSome: Boolean

    Permalink

    True if an underlying value is present

    True if an underlying value is present

    Definition Classes
    Option
  30. final def map[B](f: (A) ⇒ B): Option[B]

    Permalink

    Return a new Option which is the result of applying a function to the value if a value is present.

    Return a new Option which is the result of applying a function to the value if a value is present.

    Definition Classes
    Option
  31. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  32. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  33. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  34. final def orElse(oa: ⇒ Option[A]): Option[A]

    Permalink

    Return this instance if it is a Some, otherwise the provided fallback

    Return this instance if it is a Some, otherwise the provided fallback

    Definition Classes
    Option
  35. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  36. final def toInvalid[B](b: ⇒ B): Validated[A, B]

    Permalink

    Turn the underlying value into a failure validation if present, otherwise return a success validation with the provided fallback value

    Turn the underlying value into a failure validation if present, otherwise return a success validation with the provided fallback value

    Definition Classes
    Option
  37. final def toLeft[B](b: ⇒ B): Xor[A, B]

    Permalink

    Turn the underlying value into a left disjunction if present, otherwise return a right disjunction with the provided fallback value

    Turn the underlying value into a left disjunction if present, otherwise return a right disjunction with the provided fallback value

    Definition Classes
    Option
  38. final def toRight[B](b: ⇒ B): Xor[B, A]

    Permalink

    Turn the underlying value into a right disjunction if present, otherwise return a left disjunction with the provided fallback value

    Turn the underlying value into a right disjunction if present, otherwise return a left disjunction with the provided fallback value

    Definition Classes
    Option
  39. final def toScalaOption: scala.Option[A]

    Permalink
    Definition Classes
    Option
  40. final def toStdOption: scala.Option[A]

    Permalink

    Convert to a standard library Option

    Convert to a standard library Option

    Definition Classes
    Option
  41. final def toValid[B](b: ⇒ B): Validated[B, A]

    Permalink

    Turn the underlying value into a success validation if present, otherwise return a failure validation with the provided fallback value

    Turn the underlying value into a success validation if present, otherwise return a failure validation with the provided fallback value

    Definition Classes
    Option
  42. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  43. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  44. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  45. final def zip[B](fb: Option[B]): Option[(A, B)]

    Permalink
    Definition Classes
    Option
  46. final def zipWith[B, C](fb: Option[B])(f: (A, B) ⇒ C): Option[C]

    Permalink
    Definition Classes
    Option
  47. final def |(a: ⇒ A): A

    Permalink

    alias for getOrElse

    alias for getOrElse

    Definition Classes
    Option

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from Option[A]

Inherited from AnyRef

Inherited from Any

Ungrouped