OLD | NEW |
1 | 1 |
2 class TouchListJs extends DOMTypeJs implements TouchList native "*TouchList" { | 2 class _TouchListJs extends _DOMTypeJs implements TouchList native "*TouchList" { |
3 | 3 |
4 int get length() native "return this.length;"; | 4 int get length() native "return this.length;"; |
5 | 5 |
6 TouchJs operator[](int index) native "return this[index];"; | 6 _TouchJs operator[](int index) native "return this[index];"; |
7 | 7 |
8 void operator[]=(int index, TouchJs value) { | 8 void operator[]=(int index, _TouchJs value) { |
9 throw new UnsupportedOperationException("Cannot assign element of immutable
List."); | 9 throw new UnsupportedOperationException("Cannot assign element of immutable
List."); |
10 } | 10 } |
11 // -- start List<Touch> mixins. | 11 // -- start List<Touch> mixins. |
12 // Touch is the element type. | 12 // Touch is the element type. |
13 | 13 |
14 // From Iterable<Touch>: | 14 // From Iterable<Touch>: |
15 | 15 |
16 Iterator<Touch> iterator() { | 16 Iterator<Touch> iterator() { |
17 // Note: NodeLists are not fixed size. And most probably length shouldn't | 17 // Note: NodeLists are not fixed size. And most probably length shouldn't |
18 // be cached in both iterator _and_ forEach method. For now caching it | 18 // be cached in both iterator _and_ forEach method. For now caching it |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
69 throw new UnsupportedOperationException("Cannot removeRange on immutable Lis
t."); | 69 throw new UnsupportedOperationException("Cannot removeRange on immutable Lis
t."); |
70 } | 70 } |
71 void insertRange(int start, int length, [Touch initialValue]) { | 71 void insertRange(int start, int length, [Touch initialValue]) { |
72 throw new UnsupportedOperationException("Cannot insertRange on immutable Lis
t."); | 72 throw new UnsupportedOperationException("Cannot insertRange on immutable Lis
t."); |
73 } | 73 } |
74 List<Touch> getRange(int start, int length) => | 74 List<Touch> getRange(int start, int length) => |
75 _Lists.getRange(this, start, length, <Touch>[]); | 75 _Lists.getRange(this, start, length, <Touch>[]); |
76 | 76 |
77 // -- end List<Touch> mixins. | 77 // -- end List<Touch> mixins. |
78 | 78 |
79 TouchJs item(int index) native; | 79 _TouchJs item(int index) native; |
80 } | 80 } |
OLD | NEW |