MapLens

scalapb.lenses.Lens.MapLens
final implicit class MapLens[U, A, B](val lens: Lens[U, Map[A, B]]) extends AnyVal

Implicit that adds some syntactic sugar if our lens watches a Map[_, _].

Attributes

Graph
Supertypes
class AnyVal
trait Matchable
class Any

Members list

Value members

Concrete methods

def :++=(item: Iterable[(A, B)]): () => U
def :+=(pair: (A, B)): () => U
def apply(key: A): Lens[U, B]
def foreach(f: (Lens[(A, B), (A, B)]) => () => (A, B)): () => U
def foreachValue(f: (Lens[B, B]) => () => B): () => U
def mapValues(f: B => B): () => U

Concrete fields

val lens: Lens[U, Map[A, B]]