public void addTypeListener(String typeName, HollowTypeStateListener listener) {
    """
	Add a {@link HollowTypeStateListener} to a type.
	
	@param typeName the type name
	@param listener the listener to add
    """
        List<HollowTypeStateListener> list = listeners.get(typeName);
        if(list == null) {
            list = new ArrayList<HollowTypeStateListener>();
            listeners.put(typeName, list);
        }

        list.add(listener);

        HollowTypeReadState typeState = typeStates.get(typeName);
        if(typeState != null)
            typeState.addListener(listener);
    }
public void addTypeListener(String typeName, HollowTypeStateListener listener) {
        List<HollowTypeStateListener> list = listeners.get(typeName);
        if(list == null) {
            list = new ArrayList<HollowTypeStateListener>();
            listeners.put(typeName, list);
        }

        list.add(listener);

        HollowTypeReadState typeState = typeStates.get(typeName);
        if(typeState != null)
            typeState.addListener(listener);
    }
public void addTypeListener ( String typeName , HollowTypeStateListener listener ) { List < HollowTypeStateListener > list = listeners . get ( typeName ) ; if ( list == null ) { list = new ArrayList < HollowTypeStateListener > ( ) ; listeners . put ( typeName , list ) ; } list . add ( listener ) ; HollowTypeReadState typeState = typeStates . get ( typeName ) ; if ( typeState != null ) typeState . addListener ( listener ) ; }
Add a {@link HollowTypeStateListener} to a type.

@param typeName the type name
@param listener the listener to add
Add a { @link HollowTypeStateListener } to a type .