コード例 #1
0
 @Override
 public void calculateInfluences(
     DetailedMovie detailedMovie,
     ArrayList<DetailedMovie> detailedMovieInfByList,
     ArrayList<DetailedMovie> detailedMovieInfList) {
   query.calculateInfluences(detailedMovie, detailedMovieInfByList, detailedMovieInfList);
   Collections.sort(detailedMovieInfByList);
   Collections.sort(detailedMovieInfList);
 }
コード例 #2
0
  @Override
  public Movie getMovieDetails(String movieJson) throws InfluException {
    try {
      Movie movie = new Movie(movieJson);
      Movie detailedMovie = query.getMovieDetails(movie);
      return detailedMovie;

    } catch (JSONException ex) {
      Logger.getLogger(InfluirImplementation.class.getName()).log(Level.SEVERE, null, ex);
      throw new InfluException("Unable to get details of movie" + ex.getMessage());
    }
  }
コード例 #3
0
 @Override
 public ArrayList<Movie> getTop250MovieMovies() throws InfluException {
   ArrayList<Movie> movies = query.getTop250MovieMovies();
   return movies;
 }