Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(85)

Side by Side Diff: sdk/lib/collection/linked_hash_map.dart

Issue 15263004: Adding isNotEmpty property to collection and string. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fix template generation Created 7 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « sdk/lib/collection/iterable.dart ('k') | sdk/lib/collection/linked_hash_set.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, 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 part of dart.collection; 5 part of dart.collection;
6 6
7 /** 7 /**
8 * A hash-based map that iterates keys and values in key insertion order. 8 * A hash-based map that iterates keys and values in key insertion order.
9 */ 9 */
10 class LinkedHashMap<K, V> implements Map<K, V> { 10 class LinkedHashMap<K, V> implements Map<K, V> {
(...skipping 21 matching lines...) Expand all
32 32
33 external void forEach(void action (K key, V value)); 33 external void forEach(void action (K key, V value));
34 34
35 external Iterable<K> get keys; 35 external Iterable<K> get keys;
36 external Iterable<V> get values; 36 external Iterable<V> get values;
37 37
38 external int get length; 38 external int get length;
39 39
40 external bool get isEmpty; 40 external bool get isEmpty;
41 41
42 external bool get isNotEmpty;
43
42 String toString() => Maps.mapToString(this); 44 String toString() => Maps.mapToString(this);
43 } 45 }
OLDNEW
« no previous file with comments | « sdk/lib/collection/iterable.dart ('k') | sdk/lib/collection/linked_hash_set.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698