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
- Alphabetic
- By Inheritance
- Path
- Serializable
- Product
- Equals
- AnyVal
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new Path(elements: List[PathElement])
- elements
list of path elements
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- Any
- final def ##: Int
- Definition Classes
- Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def asString: String
Returns conventional String-based representation of a path.
Returns conventional String-based representation of a path.
- Since
0.7.0
- def getClass(): Class[_ <: AnyVal]
- Definition Classes
- AnyVal → Any
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- 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
- def productElementNames: Iterator[String]
- Definition Classes
- Product
- 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