And how is the table type different from using e.g. a Commons lang Pair as
the key of a basic Map?

Matt

On Tue, Aug 31, 2021, 11:42 PM Gary Gregory <[email protected]> wrote:

> What's missing from Guava's version that you want to add here?
>
> Gary
>
> On Tue, Aug 31, 2021, 20:55 Will Herrmann <[email protected]> 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: [email protected]
> > For additional commands, e-mail: [email protected]
> >
> >
>

Reply via email to