Sounds interesting. Filing a Jira issue under the COLLECTIONS project to track the effort would be a good next step after this thread.
https://issues.apache.org/jira/projects/COLLECTIONS/issues/COLLECTIONS Matt Sicker > On Aug 31, 2021, at 19:55, Will Herrmann <wjherrm...@gmail.com> wrote: > > I am wondering if it would be appropriate to add a Table (a.k.a. Matrix) > data structure to Commons Collections 4. Guava has one[1] and it seems like > it would fit in with this project. > > From the Guava Javadoc for Table > >> A collection that associates an ordered pair of keys, called a row key and a >> column key, with a single value. A table may be sparse, with only a small >> fraction of row key / column key pairs possessing a corresponding value. > > Under the hood, a Table<R, C, V> seems to be implemented as a Map<R, Map<C, > V>>, with concrete implementations backed by HashMaps or TreeMaps. > > If it would be appropriate to add such a data structure, what would be the > process of adding it to Commons Collections 4? > > [1]: https://github.com/google/guava/wiki/NewCollectionTypesExplained#table > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscr...@commons.apache.org > For additional commands, e-mail: user-h...@commons.apache.org >