I am modeling a power subsystem in Java. A simple SQLite database contains a set of Line Replaceable Units (LRUs) and the connections between them. I am writing a Power Mode
FWIW if someone wants a standard-libraries only solution, A map of sets or a map of other collections might do the job too, although not as well.