google / google/gson

JsonArray should implement Collection [patch]

Open
#560 0 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
Java
Stars
24.2k
Forks
4.5k
Avg merge
6d 4h
Merged PRs (30d)
12

Description

```
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:
- [jsonarray_implements_collection.patch](https://storage.googleapis.com/google-code-attachments/google-gson/issue-560/comment-0/jsonarray_implements_collection.patch)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.