sinamdar2015 / google-gson

Automatically exported from code.google.com/p/google-gson
0 stars 0 forks source link

JsonArray should implement Collection [patch] #560

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
JsonArray should implement the Collection interface.  This will allow it to be 
used with other standard libraries, such as Apache Commons's CollectionUtils 
and Google Guava's Collections2.

This patch is a minimally-viable product to implement Collection.  It 
implements all required Collection operations, and throws an 
UnsupportedOperationException for all optional operations.  It also includes a 
test case to guarantee backwards compatibility with the Iterable interface.

Original issue reported on code.google.com by cab...@gmail.com on 17 Feb 2014 at 4:16

Attachments: