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

Side by Side Diff: sdk/lib/core/set.dart

Issue 61733013: Add SplayTreeSet. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Address comments Created 7 years 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/splay_tree.dart ('k') | tests/corelib/set_test.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) 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 part of dart.core; 5 part of dart.core;
6 6
7 /** 7 /**
8 * A collection of objects in which each object can occur only once. 8 * A collection of objects in which each object can occur only once.
9 * 9 *
10 * That is, for each object of the element type, the object is either considered 10 * That is, for each object of the element type, the object is either considered
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 110
111 /** 111 /**
112 * Returns whether this Set contains all the elements of [other]. 112 * Returns whether this Set contains all the elements of [other].
113 */ 113 */
114 bool containsAll(Iterable<Object> other); 114 bool containsAll(Iterable<Object> other);
115 115
116 /** 116 /**
117 * Returns a new set which is the intersection between this set and [other]. 117 * Returns a new set which is the intersection between this set and [other].
118 * 118 *
119 * That is, the returned set contains all the elements of this `Set` that 119 * That is, the returned set contains all the elements of this `Set` that
120 * are also elements of [other]. 120 * are also elements of `other` according to `other.contains`.
121 */ 121 */
122 Set<E> intersection(Set<Object> other); 122 Set<E> intersection(Set<Object> other);
123 123
124 /** 124 /**
125 * Returns a new set which contains all the elements of this set and [other]. 125 * Returns a new set which contains all the elements of this set and [other].
126 * 126 *
127 * That is, the returned set contains all the elements of this `Set` and 127 * That is, the returned set contains all the elements of this `Set` and
128 * all the elements of [other]. 128 * all the elements of [other].
129 */ 129 */
130 Set<E> union(Set<E> other); 130 Set<E> union(Set<E> other);
131 131
132 /** 132 /**
133 * Returns a new set with the the elements of this that are not in [other]. 133 * Returns a new set with the the elements of this that are not in [other].
134 * 134 *
135 * That is, the returned set contains all the elements of this `Set` that 135 * That is, the returned set contains all the elements of this `Set` that
136 * are not elements of [other]. 136 * are not elements of [other] according to `other.contains`.
137 */ 137 */
138 Set<E> difference(Set<E> other); 138 Set<E> difference(Set<E> other);
139 139
140 /** 140 /**
141 * Removes all elements in the set. 141 * Removes all elements in the set.
142 */ 142 */
143 void clear(); 143 void clear();
144 } 144 }
OLDNEW
« no previous file with comments | « sdk/lib/collection/splay_tree.dart ('k') | tests/corelib/set_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698