Vectors of Vectors or hash-somethings?
I have an object called PICSet, which stores info about groups of pictures.
Each PICSet instance has a Vector of Associated Images (strings)
Each PICSet instance also has a Vector of Features (AU's) visible in that group..
I have another class which manipulates a vector of these PICSet objects (so there are Lots of sessions/groups)
Given a particular AU feature, I want to find All associated images from the Vector PICSets.
public String SUBJECT;
public String SESSION;
public Vector ASSOCIATEDIMAGES; // actually contains Strings (filenames)
public Vector AUsPresent; // actually contains ints
public PICSet(String subj, String sess)
public String toString()
public void AssociateAU(int AU)
Vector PICSets = new Vector();
What's the easiest - most efficient - way of doing this?
If there's a better way of doing this (including HashTable/Maps etc) I'd like to know please...