Multiple indexes for a Java Collection – most basic solution?

Each index will basically be a separate Map. You can (and probably should) abstract this behind a class that manages the searches, indexing, updates and removals for you. It wouldn’t be hard to do this fairly generically. But no, there’s no standard out of the box class for this although it can easily be built from the Java Collections classes.

Leave a Comment