Lines Matching refs:newItem
56 public boolean areItemsTheSame(PhotoItem oldItem, PhotoItem newItem) {
57 return oldItem.getId() == newItem.getId();
63 public boolean areContentsTheSame(PhotoItem oldItem, PhotoItem newItem) {
64 return oldItem.equals(newItem);
69 public Object getChangePayload(PhotoItem oldItem, PhotoItem newItem) {
72 != newItem.getImageResourceId()) {
73 diff.putLong(IMAGE, newItem.getImageResourceId());
76 if (!oldItem.getTitle().equals(newItem.getTitle())) {
77 diff.putString(TITLE, newItem.getTitle());
80 if (!oldItem.getContent().equals(newItem.getContent())) {
81 diff.putString(CONTENT, newItem.getContent());