Commit Graph

20 Commits

Author SHA1 Message Date
nweiz@google.com 75a0128a52 Add a QueueList class to the collection package.
This class is based on the ListQueue implementation and implements both the
Queue and List interfaces.

R=lrn@google.com

Review URL: https://codereview.chromium.org//660373002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@41467 260f80e4-7a28-3924-810f-c04153c831b5
2014-11-03 20:39:26 +00:00
lrn@google.com 8016f40500 Update dart:collection to version 1.0.0
R=sgjesse@google.com

Review URL: https://codereview.chromium.org//463333004

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@39484 260f80e4-7a28-3924-810f-c04153c831b5
2014-08-22 08:52:09 +00:00
nweiz@google.com 1e8bfffdf6 Add a CanonicalizedMap class to pkg/collection.
BUG=18708
R=lrn@google.com

Review URL: https://codereview.chromium.org//350183010

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@37908 260f80e4-7a28-3924-810f-c04153c831b5
2014-07-01 21:22:01 +00:00
lrn@google.com 1ec6c5c1db Revert "Add "last" setter to List."
After discussion, we decided not to change the List interface for something that is just a convenience.

Also revert "Mark pkgbuild/pkg/collection as failing when using repository packages"

R=sgjesse@google.com

Review URL: https://codereview.chromium.org//331833003

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@37307 260f80e4-7a28-3924-810f-c04153c831b5
2014-06-13 09:40:22 +00:00
lrn@google.com f528beb9f2 Add "last" setter to List.
This allows assigning directly as `list.last = value` instead of
having to use the longer `list[list.length - 1] = value`.
It's just an abbreviation, like `list.last` is for reading.

If you use a List as a stack (which is a perfectly good use of it),
modifying the last element like this is a natural operation.

R=sgjesse@google.com

Review URL: https://codereview.chromium.org//315173005

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@37255 260f80e4-7a28-3924-810f-c04153c831b5
2014-06-12 08:11:22 +00:00
nweiz@google.com 164dbd379e Fix analyzer hints in pkg/collection.
I plan to release collection 0.9.3+1 once this lands.

R=lrn@google.com

Review URL: https://codereview.chromium.org//308653004

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@36814 260f80e4-7a28-3924-810f-c04153c831b5
2014-05-30 00:49:53 +00:00
lrn@google.com 61fb66c9e4 The toSet operation returns a new Set with the same equality and iteration behavior, and with the same elements.
R=floitsch@google.com, jmesserly@google.com, sgjesse@google.com

Review URL: https://codereview.chromium.org//288103003

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@36473 260f80e4-7a28-3924-810f-c04153c831b5
2014-05-22 08:29:59 +00:00
nweiz@google.com 39ba6367e7 Add MapKeySet and MapValueSet to the collection package.
These classes provide Set views that are implemented as Maps under the
covers.

BUG=18705
R=floitsch@google.com, lrn@google.com

Review URL: https://codereview.chromium.org//277563007

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@36447 260f80e4-7a28-3924-810f-c04153c831b5
2014-05-21 20:25:52 +00:00
kevmoo@google.com 7d956b24df pkg/collection: define delegating collection constructors as const
Allows creating a singleton const instance for common values

R=lrn@google.com

Review URL: https://codereview.chromium.org//252133002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@35517 260f80e4-7a28-3924-810f-c04153c831b5
2014-04-29 09:42:40 +00:00
kevmoo@google.com 4ad14f8935 pkg/collection: fix version
updated unittest max version
removed unused import

R=rnystrom@google.com

Review URL: https://codereview.chromium.org//182153002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@33090 260f80e4-7a28-3924-810f-c04153c831b5
2014-02-26 21:22:22 +00:00
kevmoo@google.com d5e713a9f1 pkg/collection: mark fields in wrappers as final
R=lrn@google.com

Review URL: https://codereview.chromium.org//143243005

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@32173 260f80e4-7a28-3924-810f-c04153c831b5
2014-01-30 21:19:16 +00:00
lrn@google.com 30c0d67807 Add toString to delegating collections in package:collection.
BUG= http://dartbug.com/16274
R=sgjesse@google.com

Review URL: https://codereview.chromium.org//141703009

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@32057 260f80e4-7a28-3924-810f-c04153c831b5
2014-01-28 09:31:46 +00:00
lrn@google.com 77d28234f7 Publish priority queue in pkg:collection.
Updates version to 0.9.1.

R=sgjesse@google.com

Review URL: https://codereview.chromium.org//138143002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@31780 260f80e4-7a28-3924-810f-c04153c831b5
2014-01-14 12:30:20 +00:00
lrn@google.com 4719012afc Reduce running time of priority queue test.
R=ricow@google.com

Review URL: https://codereview.chromium.org//128033003

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@31605 260f80e4-7a28-3924-810f-c04153c831b5
2014-01-08 12:37:38 +00:00
lrn@google.com 48b3b3a626 Add missing signatures for add and addAll to priority queue.
R=ajohnsen@google.com

Review URL: https://codereview.chromium.org//121583004

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@31541 260f80e4-7a28-3924-810f-c04153c831b5
2014-01-07 13:10:07 +00:00
lrn@google.com 9701b33281 Add priority queue to package:collection.
R=ajohnsen@google.com, sgjesse@google.com

Review URL: https://codereview.chromium.org//110483006

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@31532 260f80e4-7a28-3924-810f-c04153c831b5
2014-01-07 07:58:57 +00:00
lrn@google.com e6e524063c Add missing files from previous commit.
Review URL: https://codereview.chromium.org//118783004

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@31268 260f80e4-7a28-3924-810f-c04153c831b5
2013-12-19 12:57:38 +00:00
lrn@google.com c63d5e01c0 Adding license files to packages.
R=sgjesse@google.com

Review URL: https://codereview.chromium.org//119203002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@31264 260f80e4-7a28-3924-810f-c04153c831b5
2013-12-19 12:36:15 +00:00
lrn@google.com 8d63f101f0 Remove suprplus quoting from pubspec author fields.
R=sgjesse@google.com

Review URL: https://codereview.chromium.org//119093005

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@31261 260f80e4-7a28-3924-810f-c04153c831b5
2013-12-19 12:12:44 +00:00
lrn@google.com 047b32681d Create associated packages for the dart:collection and dart:async libs.
R=sgjesse@google.com

Review URL: https://codereview.chromium.org//113883002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@31260 260f80e4-7a28-3924-810f-c04153c831b5
2013-12-19 11:57:56 +00:00