Ejemplo n.º 1
0
  private int logMessages(FileWriter f, ArrayList<MyPhoto> photos) {

    for (MyPhoto p : photos) {
      this.log(f, p.getFilename());
    }

    return photos.size();
  }
Ejemplo n.º 2
0
  public boolean compare(MyPhoto photo, FlickrPhoto potentialMatchOnFlickr) {

    logger.info(
        "Matching : "
            + photo.getFilename()
            + ", "
            + photo.getDateTaken()
            + " comparing "
            + potentialMatchOnFlickr.dateTaken
            + " and  "
            + photo.getCamera()
            + potentialMatchOnFlickr.camera);

    return (FlickrPhotoDate.compareToSecondPrecision(
            potentialMatchOnFlickr.dateTaken, photo.getDateTaken())
        && potentialMatchOnFlickr.camera.equals(photo.getCamera()));
  }