Uploaded image for project: 'Commons Collections'
  1. Commons Collections
  2. COLLECTIONS-275

IndexedCollection would be a useful addition to Commons Collections

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 4.0-alpha1, 4.0
    • Collection
    • None

    Description

      I propose that an IndexedCollection is added, which has the following properties

      • IndexedCollection<K,C> implements Collection<C>, Map<K,C>
      • Contains a Transformer<C,K> for determining the keys
      • Presents as an unmodifiableMap (all manipulation must be done through the collection)
      • It will need constructors for unique indexes (Map) and non-unique (Map<K,Collection<V>> / MultiMap).

      Attachments

        Activity

          People

            shammah Stephen Kestle
            shammah Stephen Kestle
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: