Lines Matching refs:newItem
53 public boolean areItemsTheSame(PhotoItem oldItem, PhotoItem newItem) {
54 return oldItem.getId() == newItem.getId();
60 public boolean areContentsTheSame(PhotoItem oldItem, PhotoItem newItem) {
61 return oldItem.equals(newItem);
66 public Object getChangePayload(PhotoItem oldItem, PhotoItem newItem) {
69 != newItem.getImageResourceId()) {
70 diff.putLong(IMAGE, newItem.getImageResourceId());
73 if (oldItem.getTitle() != null && newItem.getTitle() != null
74 && !oldItem.getTitle().equals(newItem.getTitle())) {
75 diff.putString(TITLE, newItem.getTitle());
78 if (oldItem.getContent() != null && newItem.getContent() != null
79 && !oldItem.getContent().equals(newItem.getContent())) {
80 diff.putString(CONTENT, newItem.getContent());