Present

final case
class Present[+A](get: A) extends Optional[A]

Optional value that is present

Type Params
A

type of the value

Value Params
get

the value

trait Serializable
trait Product
trait Equals
trait Optional[A]
class Object
trait Matchable
class Any

Type members

Inherited classlikes

class WithFilter(p: A => Boolean)
Inherited from
Optional

Value members

Inherited methods

final
def collect[B](pf: PartialFunction[A, B]): Optional[B]
Inherited from
Optional
final
def contains[A1 >: A](elem: A1): Boolean
Inherited from
Optional
final
def exists(p: A => Boolean): Boolean
Inherited from
Optional
final
def filter(p: A => Boolean): Optional[A]
Inherited from
Optional
final
def filterNot(p: A => Boolean): Optional[A]
Inherited from
Optional
final
def flatMap[B](f: A => Optional[B]): Optional[B]
Inherited from
Optional
final
def flatten[B](implicit ev: A <:< Option[B]): Option[B]
Inherited from
Optional
final
def fold[B](ifEmpty: => B)(f: A => B): B
Inherited from
Optional
final
def forall(p: A => Boolean): Boolean
Inherited from
Optional
final
def foreach[U](f: A => U): Unit
Inherited from
Optional
final
def getOrElse[A0 >: A](default: => A0): A0
Inherited from
Optional
final
def iterator: Iterator[A]
Inherited from
Optional
final
def map[B](f: A => B): Optional[B]
Inherited from
Optional
final
def orElse[B >: A](other: Optional[B]): Optional[B]
Inherited from
Optional
def productElementNames: Iterator[String]
Inherited from
Product
def productIterator: Iterator[Any]
Inherited from
Product
final
def toChunk: Chunk[A]
Inherited from
Optional
final
def toLeft[R](right: R): Either[A, R]
Inherited from
Optional
final
def toList: List[A]
Inherited from
Optional
final
def toOption: Option[A]

Converts this optional value to standard scala.Option

Converts this optional value to standard scala.Option

Inherited from
Optional
final
def toRight[L](left: L): Either[L, A]
Inherited from
Optional
final
def toVector: Vector[A]
Inherited from
Optional
final
def withFilter(p: A => Boolean): WithFilter
Inherited from
Optional

Concrete fields

override
val isDefined: Boolean
override
val isEmpty: Boolean
override
val nonEmpty: Boolean