private int logMessages(FileWriter f, ArrayList<MyPhoto> photos) { for (MyPhoto p : photos) { this.log(f, p.getFilename()); } return photos.size(); }
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())); }