private Cardinalities getOrCreateCardinalities ( Class < ? extends ElementBase > sourceClass ) { Cardinalities cardinalities = map . get ( sourceClass ) ; if ( cardinalities == null ) { map . put ( sourceClass , cardinalities = new Cardinalities ( ) ) ; } return cardinalities ; }
Returns cardinalities for the specified class creating it if necessary .