public < R > Change < R > map ( Function < T , R > fn ) { return new Change <> ( fn . apply ( getOldValue ( ) ) , fn . apply ( getNewValue ( ) ) ) ; }
Applies a mapping function to both the old and the new value wrapping the result in a new Change .