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

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

@param releaseResult The release result to add
Convenience method to adds an release result to the list . This will create a new ArrayList if #releaseResults is null . @param releaseResult The release result to add
public void addReleaseResult(ReleaseResultWs2 releaseResult) 
    {
        if (releaseResults == null) {
                releaseResults = new ArrayList<ReleaseResultWs2>();
        }
        if (getReleaseList() == null) {
                releaseList = new ReleaseListWs2();
        }
        releaseResults.add(releaseResult);
        releaseList.addRelease(releaseResult.getRelease());
        releaseList.setCount(getCount());
        releaseList.setOffset(getOffset());
    }
public void addReleaseResult ( ReleaseResultWs2 releaseResult ) { if ( releaseResults == null ) { releaseResults = new ArrayList < ReleaseResultWs2 > ( ) ; } if ( getReleaseList ( ) == null ) { releaseList = new ReleaseListWs2 ( ) ; } releaseResults . add ( releaseResult ) ; releaseList . addRelease ( releaseResult . getRelease ( ) ) ; releaseList . setCount ( getCount ( ) ) ; releaseList . setOffset ( getOffset ( ) ) ; }
Convenience method to adds an release result to the list.
Convenience method to adds an release result to the list .