private void updateMetadata(CdjStatus update, TrackMetadata data) {
        hotCache.put(DeckReference.getDeckReference(update.getDeviceNumber(), 0), data);  // Main deck
        if (data.getCueList() != null) {  // Update the cache with any hot cues in this track as well
            for (CueList.Entry entry : data.getCueList().entries) {
                if (entry.hotCueNumber != 0) {
                    hotCache.put(DeckReference.getDeckReference(update.getDeviceNumber(), entry.hotCueNumber), data);
                }
            }
        }
        deliverTrackMetadataUpdate(update.getDeviceNumber(), data);
    }
private void updateMetadata ( CdjStatus update , TrackMetadata data ) { hotCache . put ( DeckReference . getDeckReference ( update . getDeviceNumber ( ) , 0 ) , data ) ; if ( data . getCueList ( ) != null ) { for ( CueList . Entry entry : data . getCueList ( ) . entries ) { if ( entry . hotCueNumber != 0 ) { hotCache . put ( DeckReference . getDeckReference ( update . getDeviceNumber ( ) , entry . hotCueNumber ) , data ) ; } } } deliverTrackMetadataUpdate ( update . getDeviceNumber ( ) , data ) ; }
We have obtained metadata for a device, so store it and alert any listeners.

@param update the update which caused us to retrieve this metadata
@param data the metadata which we received