@ SuppressWarnings ( "unchecked" ) public < L , E > EventLog < L , E > getOrCreateEventLog ( Class < ? > type , String name , Function < EventLog < L , E > , L > listenerFactory ) { return eventRegistries . computeIfAbsent ( type , t -> new ConcurrentHashMap <> ( ) ) . computeIfAbsent ( name , n -> new EventLog <> ( listenerFactory ) ) ; }
Returns an event log creating a new log if none exists .