commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Matt Sicker <boa...@gmail.com>
Subject Re: [collections] Adding a Table data structure?
Date Wed, 01 Sep 2021 03:54:41 GMT
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 <wjherrmann@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-unsubscribe@commons.apache.org
> For additional commands, e-mail: user-help@commons.apache.org
> 

Mime
  • Unnamed multipart/alternative (inline, 7-Bit, 0 bytes)
View raw message