src/main/java/org/musicbrainz/model/searchresult/listelement/RecordingSearchResultsWs2.java
/**
     * Convenience method to adds an track result to the list.
     * 
     * This will create a new <code>ArrayList</code> if {@link #recordingResults} is null.
     * 
     * @param trackResult The track result to add
     */
Convenience method to adds an track result to the list.

This will create a new ArrayList if  #recordingResults is null.

@param trackResult The track result to add
Convenience method to adds an track result to the list . This will create a new ArrayList if #recordingResults is null . @param trackResult The track result to add
public void addRecordingResult(RecordingResultWs2 recordingResult) 
    {
            if (recordingResults == null) {
                    recordingResults = new ArrayList<RecordingResultWs2>();
            }
            if (recordingList == null) {
                recordingList = new RecordingListWs2();
            }
            recordingResults.add(recordingResult);
            recordingList.addRecording(recordingResult.getRecording());
            recordingList.setCount(getCount());
            recordingList.setOffset(getOffset());
    }
public void addRecordingResult ( RecordingResultWs2 recordingResult ) { if ( recordingResults == null ) { recordingResults = new ArrayList < RecordingResultWs2 > ( ) ; } if ( recordingList == null ) { recordingList = new RecordingListWs2 ( ) ; } recordingResults . add ( recordingResult ) ; recordingList . addRecording ( recordingResult . getRecording ( ) ) ; recordingList . setCount ( getCount ( ) ) ; recordingList . setOffset ( getOffset ( ) ) ; }
Convenience method to adds an track result to the list.
Convenience method to adds an track result to the list .