コード例 #1
0
ファイル: Area.java プロジェクト: srb007/musicbrainzws2-java
  public List<ArtistWs2> getFirstArtistListPage() {

    if (getArea() == null) return null;
    getIncludes().setArtists(true);
    if (artistBrowse == null) initBrowses();
    if (artistBrowse == null) return null;

    List<ArtistWs2> list = artistBrowse.getFirstPage();

    for (ArtistWs2 rel : list) {
      getArea().addArtist(rel);
    }

    return list;
  }
コード例 #2
0
ファイル: Area.java プロジェクト: srb007/musicbrainzws2-java
  public List<ArtistWs2> getNextArtistListPage() {

    if (getArea() == null) return null;
    getIncludes().setArtists(true);
    if (artistBrowse == null) initBrowses();
    if (artistBrowse == null) return null;
    if (!hasMoreArtists()) return new ArrayList<ArtistWs2>();

    List<ArtistWs2> list = artistBrowse.getNextPage();

    for (ArtistWs2 rel : list) {
      getArea().addArtist(rel);
    }

    return list;
  }
コード例 #3
0
ファイル: Area.java プロジェクト: srb007/musicbrainzws2-java
 public boolean hasMoreArtists() {
   if (getArea() == null) return true;
   if (artistBrowse == null) return true;
   return artistBrowse.hasMore();
 }