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

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

Value parameters

value

Changes subject

Attributes

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.

Value parameters

that

Modifier instance to combine with this

Attributes

Returns

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