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

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

@param collectionResult The collection result to add
Convenience method to adds an CollectionResultWs1 to the list . This will create a new ArrayList if #collectionResults is null . @param collectionResult The collection result to add
public void addCollectionResult(CollectionResultWs2 collectionResult) 
    {
            if (getCollectionResults() == null) {
                    collectionResults = new ArrayList<CollectionResultWs2>();
            }
            if (getCollectionList() == null) {
                collectionList = new CollectionListWs2();
            }
            collectionResults.add(collectionResult);
            collectionList.addCollection(collectionResult.getCollection()); 
            collectionList.setCount(getCount());
            collectionList.setOffset(getOffset());
    }
public void addCollectionResult ( CollectionResultWs2 collectionResult ) { if ( getCollectionResults ( ) == null ) { collectionResults = new ArrayList < CollectionResultWs2 > ( ) ; } if ( getCollectionList ( ) == null ) { collectionList = new CollectionListWs2 ( ) ; } collectionResults . add ( collectionResult ) ; collectionList . addCollection ( collectionResult . getCollection ( ) ) ; collectionList . setCount ( getCount ( ) ) ; collectionList . setOffset ( getOffset ( ) ) ; }
Convenience method to adds an {@link CollectionResultWs1} to the list.
Convenience method to adds an { @link CollectionResultWs1 } to the list .