static void addClassContainment ( final List < SimpleEntry < String , String > > classContainmentEntries , final Map < String , ClassInfo > classNameToClassInfo ) { for ( final SimpleEntry < String , String > ent : classContainmentEntries ) { final String innerClassName = ent . getKey ( ) ; final ClassInfo innerClassInfo = ClassInfo . getOrCreateClassInfo ( innerClassName , /* classModifiers = */ 0 , classNameToClassInfo ) ; final String outerClassName = ent . getValue ( ) ; final ClassInfo outerClassInfo = ClassInfo . getOrCreateClassInfo ( outerClassName , /* classModifiers = */ 0 , classNameToClassInfo ) ; innerClassInfo . addRelatedClass ( RelType . CONTAINED_WITHIN_OUTER_CLASS , outerClassInfo ) ; outerClassInfo . addRelatedClass ( RelType . CONTAINS_INNER_CLASS , innerClassInfo ) ; } }
Add class containment info .