Suppose I have this:
public class Unit { ... List mobileSuits; List pilots; ... }
You could just use a Map, where a null value mapped to a MobileSuit indicates no pilot. The Iterator could just be an Iterator> retrieved by map.entrySet().iterator().
Map
null
MobileSuit
Iterator
Iterator>
map.entrySet().iterator()