public void put ( CallbackType callbackType , CallbackMetadata callbackMetadata ) { if ( callbacks == null ) { callbacks = new EnumMap <> ( CallbackType . class ) ; } List < CallbackMetadata > callbackMetadataList = callbacks . get ( callbackType ) ; if ( callbackMetadataList == null ) { callbackMetadataList = new ArrayList <> ( ) ; callbacks . put ( callbackType , callbackMetadataList ) ; } callbackMetadataList . add ( callbackMetadata ) ; }
Adds the given CallbackEventMetadata .