object OptionUtil
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- OptionUtil
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- Protected
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 asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @IntrinsicCandidate()
- def emptyStringAsNone[S <: LengthLimitedString](str: S): Option[S]
- def emptyStringAsNone(str: String): Option[String]
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def mergeEqual[A](left: Option[A], right: Option[A]): Option[Option[A]]
Return None iff both
left
andright
are defined and not equal.Return None iff both
left
andright
are defined and not equal.Otherwise, return
- Some(left), if only left is defined
- Some(right), if right is defined
- def mergeWith[A](left: Option[A], right: Option[A])(f: (A, A) => A): Option[A]
- def mergeWithO[A](left: Option[A], right: Option[A])(f: (A, A) => Option[A]): Option[Option[A]]
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def noneAsEmptyString(strO: Option[String]): String
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- def zeroAsNone(n: Int): Option[Int]
- def zipWith[A, B, C](left: Option[A], right: Option[B])(f: (A, B) => C): Option[C]
- def zipWithF[F[_], A, B, C](left: Option[A], right: => F[Option[B]])(f: (A, B) => F[C])(implicit arg0: Monad[F], arg1: Parallel[F]): F[Option[C]]
If left is non empty, zip its content with the lazily evaluated result of right (if right returns a non empty result as well), and apply f to the pair (l, r)
- def zipWithFDefaultValue[F[_], A, B, C](left: Option[A], right: => F[Option[B]], empty: => C)(f: (A, B) => F[C])(implicit arg0: Monad[F], arg1: Parallel[F]): F[C]
zipWithF but returns a default value if either of left or right are empty