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

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

@param artistResult The artist result to add
Convenience method to adds an ArtistResultWs1 to the list . This will create a new ArrayList if #artistResults is null . @param artistResult The artist result to add
public void addArtistResult(ArtistResultWs2 artistResult) 
    {
            if (getArtistResults() == null) {
                    artistResults = new ArrayList<ArtistResultWs2>();
            }
            if (getArtistList() == null) {
                artistList = new ArtistListWs2();
            }
            artistResults.add(artistResult);
            artistList.addArtist(artistResult.getArtist()); 
            artistList.setCount(getCount());
            artistList.setOffset(getOffset());
    }
public void addArtistResult ( ArtistResultWs2 artistResult ) { if ( getArtistResults ( ) == null ) { artistResults = new ArrayList < ArtistResultWs2 > ( ) ; } if ( getArtistList ( ) == null ) { artistList = new ArtistListWs2 ( ) ; } artistResults . add ( artistResult ) ; artistList . addArtist ( artistResult . getArtist ( ) ) ; artistList . setCount ( getCount ( ) ) ; artistList . setOffset ( getOffset ( ) ) ; }
Convenience method to adds an {@link ArtistResultWs1} to the list.
Convenience method to adds an { @link ArtistResultWs1 } to the list .