| OLD | NEW |
| 1 // Copyright (c) 2015, the Dartino project authors. Please see the AUTHORS file | 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 | 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. | 3 // BSD-style license that can be found in the LICENSE.md file. |
| 4 | 4 |
| 5 // Generated file. Do not edit. | 5 // Generated file. Do not edit. |
| 6 | 6 |
| 7 package immi; | 7 package immi; |
| 8 | 8 |
| 9 import java.util.ArrayList; | 9 import java.util.ArrayList; |
| 10 import java.util.Collections; | 10 import java.util.Collections; |
| 11 import java.util.List; | 11 import java.util.List; |
| 12 | 12 |
| 13 import fletch.ListPatchData; | 13 import dartino.ListPatchData; |
| 14 import fletch.ListRegionData; | 14 import dartino.ListRegionData; |
| 15 import fletch.ListRegionDataList; | 15 import dartino.ListRegionDataList; |
| 16 import fletch.NodeDataList; | 16 import dartino.NodeDataList; |
| 17 import fletch.NodePatchDataList; | 17 import dartino.NodePatchDataList; |
| 18 | 18 |
| 19 public final class ListPatch<N extends Node> implements Patch { | 19 public final class ListPatch<N extends Node> implements Patch { |
| 20 | 20 |
| 21 // Public interface. | 21 // Public interface. |
| 22 | 22 |
| 23 @Override | 23 @Override |
| 24 public boolean hasChanged() { return changed; } | 24 public boolean hasChanged() { return changed; } |
| 25 | 25 |
| 26 public List<N> getCurrent() { return current; } | 26 public List<N> getCurrent() { return current; } |
| 27 public List<N> getPrevious() { return previous; } | 27 public List<N> getPrevious() { return previous; } |
| (...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 205 public static Type fromInt(int tag) { | 205 public static Type fromInt(int tag) { |
| 206 return tag == 0 ? ANY_NODE : SPECIFIC_NODE; | 206 return tag == 0 ? ANY_NODE : SPECIFIC_NODE; |
| 207 } | 207 } |
| 208 } | 208 } |
| 209 | 209 |
| 210 private boolean changed; | 210 private boolean changed; |
| 211 private List<N> previous; | 211 private List<N> previous; |
| 212 private List<N> current; | 212 private List<N> current; |
| 213 private List<RegionPatch> regions; | 213 private List<RegionPatch> regions; |
| 214 } | 214 } |
| OLD | NEW |