Packages

c

scalax.gpl.patch.Patch

UpdateValue

case class UpdateValue[T](from: T, to: T) extends Patch[T] with Product with Serializable

Linear Supertypes
Serializable, Product, Equals, Patch[T], AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. UpdateValue
  2. Serializable
  3. Product
  4. Equals
  5. Patch
  6. AnyRef
  7. Any
Implicitly
  1. by any2stringadd
  2. by StringFormat
  3. by Ensuring
  4. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new UpdateValue(from: T, to: T)

Value Members

  1. def apply(x: T): T

    Do patch the given value

    Do patch the given value

    x

    a value to patch

    returns

    patched value

    Definition Classes
    UpdateValuePatch
  2. val from: T
  3. def imap[TT](fw: (T) => TT, bk: (TT) => T): Patch[TT]

    Makes a wrapping patch.

    Makes a wrapping patch. Used for Sum types: Option, Either

    fw

    Function that converts a value to Monadic type (wrap)

    bk

    Function that converts Monadic value back to original value (un-wrap)

    returns

    Wrapped Patch

    Definition Classes
    Patch
  4. def inverted: UpdateValue[T]

    Creates a Patch tha can be used to patch back (un-patch)

    Creates a Patch tha can be used to patch back (un-patch)

    returns

    Inverted Patch

    Definition Classes
    UpdateValuePatch
  5. def isOpaque: Boolean

    Does this Patch really going to change the value

    Does this Patch really going to change the value

    Definition Classes
    UpdateValuePatch
  6. def nonOpaque: Boolean

    Does this Patch really going to change the value

    Does this Patch really going to change the value

    Definition Classes
    Patch
  7. def productElementNames: Iterator[String]
    Definition Classes
    Product
  8. val to: T
  9. def visit(x: PatchVisitor): Unit

    Reports some internal representation details so developer can have access to Patch function specific details.

    Reports some internal representation details so developer can have access to Patch function specific details. Can be used for rendering to text.

    x

    Patch Visitor

    Definition Classes
    UpdateValuePatch