| OLD | NEW |
| (Empty) |
| 1 // Copyright (c) 2015, the Dartino project authors. Please see the AUTHORS file | |
| 2 // for details. All rights reserved. Use of this source code is governed by a | |
| 3 // BSD-style license that can be found in the LICENSE.md file. | |
| 4 | |
| 5 // Generated file. Do not edit. | |
| 6 | |
| 7 package immi; | |
| 8 | |
| 9 public final class ActionPatch<A extends Action> implements Patch { | |
| 10 | |
| 11 // Public interface. | |
| 12 | |
| 13 public boolean hasChanged() { return changed; } | |
| 14 | |
| 15 public A getCurrent() { return action; } | |
| 16 | |
| 17 // We do not implement getPrevious on actions because it has been removed from | |
| 18 // the graph and is a stale resource. | |
| 19 | |
| 20 // Package private implementation. | |
| 21 | |
| 22 ActionPatch(A previous) { | |
| 23 this.changed = false; | |
| 24 this.action = previous; | |
| 25 } | |
| 26 | |
| 27 ActionPatch(A current, A previous, ImmiRoot root) { | |
| 28 this.changed = true; | |
| 29 this.action = current; | |
| 30 } | |
| 31 | |
| 32 private boolean changed; | |
| 33 private A action; | |
| 34 } | |
| OLD | NEW |