Packages

final case class Path(elements: List[PathElement]) extends AnyVal with Product with Serializable

Data structure for representing path in a (possibly) nested object structure.

elements

list of path elements

Since

0.7.0

Linear Supertypes
Serializable, Product, Equals, AnyVal, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Path
  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 Path(elements: List[PathElement])

    elements

    list of path elements

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 asString: String

    Returns conventional String-based representation of a path.

    Returns conventional String-based representation of a path.

    Since

    0.7.0

  6. def getClass(): Class[_ <: AnyVal]
    Definition Classes
    AnyVal → Any
  7. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  8. def prepend(pathElement: PathElement): Path

    Prepend of error path with a path element.

    Prepend of error path with a path element.

    pathElement

    path element to be prepended

    returns

    path with prepended path element

    Since

    0.7.0

  9. def productElementNames: Iterator[String]
    Definition Classes
    Product
  10. def unsealPath(): Unit

    Unseals the io.scalaland.chimney.partial.Path of current io.scalaland.chimney.partial.Error.

    Unseals the io.scalaland.chimney.partial.Path of current io.scalaland.chimney.partial.Error.

    When derivation is building up the result it automatically appends fields/indices/map keys - however values obtained with withFieldComputed(Partial)(From) contains the whole Path already, so prepend should be a noop for them.

    However, this path can only be precomputed only up to the boundaries of a io.scalaland.chimney.PartialTransformer, and when one transformer calls another, path should be appended again. This method allows this.

    Since

    1.6.0

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from AnyVal

Inherited from Any

Ungrouped