private Cardinalities getOrCreateCardinalities(Class<? extends ElementBase> sourceClass) {
        Cardinalities cardinalities = map.get(sourceClass);
        
        if (cardinalities == null) {
            map.put(sourceClass, cardinalities = new Cardinalities());
        }
        
        return cardinalities;
    }
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.

@param sourceClass Class whose cardinalities are sought.
@return The cardinalities associated with the specified class (never null).