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

IndexedCollection would be a useful addition to Commons Collections

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.0-alpha1, 4.0
    • Component/s: Collection
    • Labels:
      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

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

              Dates

              • Created:
                Updated:
                Resolved: