final case class Change[+A](before: A, now: A) extends Product with Serializable
Value based events fire instances of Change which provides the value before
and after modification.
- before
the value before the modification
- now
the value after the modification
- Alphabetic
- By Inheritance
- Change
- Serializable
- Serializable
- Product
- Equals
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
-
new
Change(before: A, now: A)
- before
the value before the modification
- now
the value after the modification
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
- val before: A
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
isSignificant: Boolean
A change is significant if
before != now -
def
map[B](fun: (A) ⇒ B): Change[B]
Constructs a new change where
beforeandnoware individually mapped by a function. -
def
mapTuple[B](fun: ((A, A)) ⇒ (B, B)): Change[B]
Constructs a new change where the tuple
(before, now)is mapped into a new tuple. -
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- val now: A
-
def
swap: Change[A]
Constructs a new change where
beforeandnoware swapped. -
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toOption: Option[Change[A]]
Wraps this
Changein anOptiondepending on its significance.Wraps this
Changein anOptiondepending on its significance.- returns
if
isSignificantistrue, returns aSome, otherwiseNone
-
def
toTuple: (A, A)
Converts the change into a
Tuple2consisting of_1 = beforeand_2 = now -
def
unzip[A1, A2](implicit asPair: (A) ⇒ (A1, A2)): (Change[A1], Change[A2])
Unzips a change whose elements are of type
Tuple2into two separate changes. -
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
def
zip[B](that: Change[B]): Change[(A, B)]
Zips two changes into one change with before and now being tupled.