boolean addRelatedClass ( final RelType relType , final ClassInfo classInfo ) { Set < ClassInfo > classInfoSet = relatedClasses . get ( relType ) ; if ( classInfoSet == null ) { relatedClasses . put ( relType , classInfoSet = new LinkedHashSet <> ( 4 ) ) ; } return classInfoSet . add ( classInfo ) ; }
Add a class with a given relationship type . Return whether the collection changed as a result of the call .