OLD | NEW |
1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2011, the Dart 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 file. | 3 // BSD-style license that can be found in the LICENSE file. |
4 | 4 |
5 #library('observable'); | 5 #library('observable'); |
6 | 6 |
7 #import('dart:coreimpl'); | 7 #import('dart:coreimpl'); |
8 | 8 |
9 #source('ChangeEvent.dart'); | 9 #source('ChangeEvent.dart'); |
10 #source('EventBatch.dart'); | 10 #source('EventBatch.dart'); |
(...skipping 225 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
236 } | 236 } |
237 } | 237 } |
238 return count; | 238 return count; |
239 } | 239 } |
240 | 240 |
241 void copyFrom(List<T> src, int srcStart, int dstStart, int count) { | 241 void copyFrom(List<T> src, int srcStart, int dstStart, int count) { |
242 Arrays.copy(src, srcStart, this, dstStart, count); | 242 Arrays.copy(src, srcStart, this, dstStart, count); |
243 } | 243 } |
244 | 244 |
245 void setRange(int start, int length, List from, [int startFrom = 0]) { | 245 void setRange(int start, int length, List from, [int startFrom = 0]) { |
246 throw const NotImplementedException(); | 246 throw new UnimplementedError(); |
247 } | 247 } |
248 | 248 |
249 void removeRange(int start, int length) { | 249 void removeRange(int start, int length) { |
250 throw const NotImplementedException(); | 250 throw new UnimplementedError(); |
251 } | 251 } |
252 | 252 |
253 void insertRange(int start, int length, [initialValue = null]) { | 253 void insertRange(int start, int length, [initialValue = null]) { |
254 throw const NotImplementedException(); | 254 throw new UnimplementedError(); |
255 } | 255 } |
256 | 256 |
257 List getRange(int start, int length) { | 257 List getRange(int start, int length) { |
258 throw const NotImplementedException(); | 258 throw new UnimplementedError(); |
259 } | 259 } |
260 | 260 |
261 // Iterable<T>: | 261 // Iterable<T>: |
262 Iterator<T> iterator() => _internal.iterator(); | 262 Iterator<T> iterator() => _internal.iterator(); |
263 | 263 |
264 // Collection<T>: | 264 // Collection<T>: |
265 Collection<T> filter(bool f(T element)) => _internal.filter(f); | 265 Collection<T> filter(bool f(T element)) => _internal.filter(f); |
266 Collection map(f(T element)) => _internal.map(f); | 266 Collection map(f(T element)) => _internal.map(f); |
267 bool every(bool f(T element)) => _internal.every(f); | 267 bool every(bool f(T element)) => _internal.every(f); |
268 bool some(bool f(T element)) => _internal.some(f); | 268 bool some(bool f(T element)) => _internal.some(f); |
(...skipping 21 matching lines...) Expand all Loading... |
290 // equality check should be done? | 290 // equality check should be done? |
291 if (newValue !== _value) { | 291 if (newValue !== _value) { |
292 final oldValue = _value; | 292 final oldValue = _value; |
293 _value = newValue; | 293 _value = newValue; |
294 recordPropertyUpdate("value", newValue, oldValue); | 294 recordPropertyUpdate("value", newValue, oldValue); |
295 } | 295 } |
296 } | 296 } |
297 | 297 |
298 T _value; | 298 T _value; |
299 } | 299 } |
OLD | NEW |