Lines Matching refs:oldItem
54 public boolean areItemsTheSame(PhotoItem oldItem, PhotoItem newItem) {
55 return oldItem.getId() == newItem.getId();
61 public boolean areContentsTheSame(PhotoItem oldItem, PhotoItem newItem) {
62 return oldItem.equals(newItem);
67 public Object getChangePayload(PhotoItem oldItem, PhotoItem newItem) {
69 if (oldItem.getImageResourceId()
74 if (oldItem.getTitle() != null && newItem.getTitle() != null
75 && !oldItem.getTitle().equals(newItem.getTitle())) {
79 if (oldItem.getContent() != null && newItem.getContent() != null
80 && !oldItem.getContent().equals(newItem.getContent())) {