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

Unified Diff: sdk/lib/core/set.dart

Issue 14246008: Allow Object when doing lookups. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Forgot to upload before committing Created 7 years, 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « sdk/lib/core/map.dart ('k') | sdk/lib/core/uri.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/core/set.dart
diff --git a/sdk/lib/core/set.dart b/sdk/lib/core/set.dart
index 7b5980e06f91f65394ee81e675823bdf5c810edd..aaab5ec465ecf0a14e9a370ba220c8f0030d694f 100644
--- a/sdk/lib/core/set.dart
+++ b/sdk/lib/core/set.dart
@@ -42,7 +42,7 @@ abstract class Set<E> extends IterableBase<E> {
/**
* Returns true if [value] is in the set.
*/
- bool contains(E value);
+ bool contains(Object value);
/**
* Adds [value] into the set.
@@ -69,12 +69,12 @@ abstract class Set<E> extends IterableBase<E> {
/**
* Removes each element of [elements] from this set.
*/
- void removeAll(Iterable elements);
+ void removeAll(Iterable<Object> elements);
/**
* Removes all elements of this set that are not elements in [elements].
*/
- void retainAll(Iterable elements);
+ void retainAll(Iterable<Object> elements);
/**
* Removes all elements of this set that satisfy [test].
@@ -89,7 +89,7 @@ abstract class Set<E> extends IterableBase<E> {
/**
* Returns whether this Set contains all the elements of [other].
*/
- bool containsAll(Iterable<E> other);
+ bool containsAll(Iterable<Object> other);
/**
* Returns a new set which is the intersection between this set and [other].
@@ -97,7 +97,7 @@ abstract class Set<E> extends IterableBase<E> {
* That is, the returned set contains all the elements of this `Set` that
* are also elements of [other].
*/
- Set<E> intersection(Set<E> other);
+ Set<E> intersection(Set<Object> other);
/**
* Returns a new set which contains all the elements of this set and [other].
« no previous file with comments | « sdk/lib/core/map.dart ('k') | sdk/lib/core/uri.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698