Trait/Object

wvlet.airframe.opts

ValueHolder

Related Docs: object ValueHolder | package opts

Permalink

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
Visibility
  1. Public
  2. All

Abstract Value Members

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

    Permalink

    Depth first search iterator under the specified path

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

    Permalink

    Extract a part of the value holder under the path

    Extract a part of the value holder under the path

    returns

    value holder under the path

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

    Permalink

    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: Any): Boolean

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

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

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

    Permalink
  5. final def ==(arg0: Any): Boolean

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

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

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

    Permalink

    Depth first search iterator under the specified path

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

    Permalink

    Depth first search iterator

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

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

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

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

    Permalink

    Extract a part of the value holder under the path

    Extract a part of the value holder under the path

    returns

    value holder under the path

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  16. def isEmpty: Boolean

    Permalink
  17. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  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[B >: A](path: String, value: B): ValueHolder[B]

    Permalink

    Set a value at the specified path

    Set a value at the specified path

    path

    string representation of Path

    returns

    updated value holder

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

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

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

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped