Class

scalapb.lenses

ObjectLens

Related Doc: package lenses

Permalink

class ObjectLens[U, Container] extends Lens[U, Container]

Represents a lens that has sub-lenses.

Linear Supertypes
Lens[U, Container], AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ObjectLens
  2. Lens
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new ObjectLens(self: Lens[U, Container])

    Permalink

Value Members

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  3. def :=(a: Container): Mutation[U]

    Permalink

    alias to set

    alias to set

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

    Permalink
    Definition Classes
    AnyRef → Any
  5. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  6. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  7. def compose[B](other: Lens[Container, B]): Lens[U, B]

    Permalink

    Composes two lenses, this enables nesting.

    Composes two lenses, this enables nesting.

    If our field of type A has a sub-field of type B, then given a lens for it (other: Lens[A, B]) we can create a single lens from Container to B.

    Definition Classes
    Lens
  8. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  9. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  10. def field[A](getter: (Container) ⇒ A)(setter: (Container, A) ⇒ Container): Lens[U, A]

    Permalink

    Creates a sub-lens

  11. def field[A](lens: Lens[Container, A]): Lens[U, A]

    Permalink

    Creates a sub-lens

  12. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  13. def get(u: U): Container

    Permalink

    get knows how to extract some field of type A from a container

    get knows how to extract some field of type A from a container

    Definition Classes
    ObjectLensLens
  14. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  15. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  16. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  17. def modify(f: (Container) ⇒ Container): Mutation[U]

    Permalink

    Represent an update operator (like x.y += 1 )

    Represent an update operator (like x.y += 1 )

    Definition Classes
    Lens
  18. final def ne(arg0: AnyRef): Boolean

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

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

    Permalink
    Definition Classes
    AnyRef
  21. def set(c: Container): Mutation[U]

    Permalink

    Represents an assignment operator.

    Represents an assignment operator.

    Given a value of type A, sets knows how to transform a container such that a is assigned to the field.

    We must have get(set(a)(c)) == a

    Definition Classes
    ObjectLensLens
  22. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  23. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  24. def update(ms: (Lens[Container, Container]) ⇒ Mutation[Container]*): Mutation[U]

    Permalink
  25. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  28. def zip[B](other: Lens[U, B]): Lens[U, (Container, B)]

    Permalink

    Given two lenses with the same origin, returns a new lens that can mutate both values represented by both lenses through a tuple.

    Given two lenses with the same origin, returns a new lens that can mutate both values represented by both lenses through a tuple.

    Definition Classes
    Lens

Inherited from Lens[U, Container]

Inherited from AnyRef

Inherited from Any

Ungrouped