c

monocle

OptionalSyntax

final case class OptionalSyntax[S, A](self: Optional[S, A]) extends AnyVal with Product with Serializable

Extension methods for monomorphic Optional

Source
Optional.scala
Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. OptionalSyntax
  2. Serializable
  3. Product
  4. Equals
  5. AnyVal
  6. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new OptionalSyntax(self: Optional[S, A])

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    Any
  2. final def ##: Int
    Definition Classes
    Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def at[I, A1](i: I)(implicit evAt: At[A, I, A1]): Optional[S, A1]
  6. def each[C](implicit evEach: Each[A, C]): Traversal[S, C]
  7. def filter(predicate: (A) => Boolean): Optional[S, A]

    Select all the elements which satisfies the predicate.

    Select all the elements which satisfies the predicate. This combinator can break the fusion property see Optional.filter for more details.

  8. def filterIndex[I, A1](predicate: (I) => Boolean)(implicit ev: FilterIndex[A, I, A1]): Traversal[S, A1]
  9. def getClass(): Class[_ <: AnyVal]
    Definition Classes
    AnyVal → Any
  10. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  11. def productElementNames: Iterator[String]
    Definition Classes
    Product
  12. def withDefault[A1](defaultValue: A1)(implicit evOpt: =:=[A, Option[A1]]): Optional[S, A1]

Deprecated Value Members

  1. def index[I, A1](i: I, evIndex: Index[A, I, A1]): Optional[S, A1]
    Annotations
    @deprecated
    Deprecated

    (Since version 3.1.0) Preserved for bincompat

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from AnyVal

Inherited from Any

Ungrouped