xerial.lens

ValueHolder

trait ValueHolder[+A] extends AnyRef

Holder of structured data consisting of named values. ValueHolder is immutable, so the set operations in this class return another ValueHolder and never modify the original ValueHolder.

A(a, B(b, c))

{ a: apple, B:{b:book, c:car} }

val n1 = Empty.set("a", apple)  =>  Node(a -> Leaf(apple))
val n2 = n1.set("B.b", "book")
      => Node(a -> Leaf(apple), B -> Empty.set("b", "book"))
      => Node(a -> apple, B->Node(b -> Leaf(book)))
val n3 = n2.set("B.c", "car") => Node(a ->apple, B->Node(b -> Leaf(book), c->Leaf(car)))

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. ValueHolder
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Abstract Value Members

  1. abstract def dfs(path: Path): Iterator[(Path, A)]

    Depth first search iterator under the specified path

    Depth first search iterator under the specified path

    path
    returns

  2. abstract def get(path: Path): ValueHolder[A]

    Extract a part of the value holder under the path

    Extract a part of the value holder under the path

    path
    returns

    value holder under the path

  3. abstract def set[B >: A](path: Path, value: B): ValueHolder[B]

    Set a value at the specified path

    Set a value at the specified path

    path

    path

    value

    String value to set

    returns

    updated value holder

Concrete Value Members

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

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. def +[B >: A](e: (Path, B)): ValueHolder[B]

  5. def ++[B >: A](it: Iterable[(Path, B)]): ValueHolder[B]

  6. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  7. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  8. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  9. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  10. def dfs(path: String): Iterator[(Path, A)]

    Depth first search iterator under the specified path

    Depth first search iterator under the specified path

    path
    returns

  11. def dfs: Iterator[(Path, A)]

    Depth first search iterator

    Depth first search iterator

    returns

  12. final def eq(arg0: AnyRef): Boolean

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

    Definition Classes
    AnyRef → Any
  14. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  15. def get(path: String): ValueHolder[A]

    Extract a part of the value holder under the path

    Extract a part of the value holder under the path

    path
    returns

    value holder under the path

  16. final def getClass(): Class[_]

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

    Definition Classes
    AnyRef → Any
  18. def isEmpty: Boolean

  19. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  20. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  21. final def notify(): Unit

    Definition Classes
    AnyRef
  22. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  23. def set[B >: A](path: String, value: B): ValueHolder[B]

    Set a value at the specified path

    Set a value at the specified path

    path

    string representation of xerial.lens.Path

    value
    returns

    updated value holder

  24. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  25. def toString(): String

    Definition Classes
    AnyRef → Any
  26. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws()

Inherited from AnyRef

Inherited from Any

Ungrouped