Modifier

cats.xml.modifier.Modifier
See theModifier companion object
trait Modifier[T]

Create a modified copy of input 'XmlNode'

Attributes

Companion:
object
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Concise view

Value members

Abstract methods

def apply(value: T): Result[T]

Apply a transformation to the input value T

Apply a transformation to the input value T

Attributes

value

Changes subject

Returns:

an Either[ModifierFailure, T] that represent the modification result. Left failed, Right succeed

Concrete methods

def combine(that: Modifier[T]): Modifier[T]

Like flatMap but doesn't allow type transformation. Just combines two Modifier for the same type T.

Like flatMap but doesn't allow type transformation. Just combines two Modifier for the same type T.

Attributes

that

Modifier instance to combine with this

Returns:

A new Modifier which apply this changes first and then, if it succeed apply that Modifier changes.