private List < ResourceBuilderModel > getRegisteredListForEvent ( String event ) { if ( eventSubscribers . containsKey ( event ) ) { return eventSubscribers . get ( event ) ; } else { LinkedList < ResourceBuilderModel > tempList = new LinkedList <> ( ) ; eventSubscribers . put ( event , tempList ) ; return tempList ; } }
returns a list of all the ResourceBuilders listening to the Event - ID