@Test(expected = UnsupportedOperationException.class) public void getNewData_ReturnsUnmodifiableList() { callback.getNewData().add(new TestModel("data", "tag")); }
@NonNull public List<D> getNewData() { return Collections.unmodifiableList(mNewData); }
DefaultDiffCallback extends DiffUtil.Callback { @NonNull public List<D> getNewData() { return Collections.unmodifiableList(mNewData); } }
DefaultDiffCallback extends DiffUtil.Callback { @NonNull public List<D> getNewData() { return Collections.unmodifiableList(mNewData); } DefaultDiffCallback(@NonNull final List<D> oldData,
                               @NonNull final List<D> newData); }
DefaultDiffCallback extends DiffUtil.Callback { @NonNull public List<D> getNewData() { return Collections.unmodifiableList(mNewData); } DefaultDiffCallback(@NonNull final List<D> oldData,
                               @NonNull final List<D> newData); @Override boolean areContentsTheSame(int oldItemPosition, int newItemPosition); @Override boolean areItemsTheSame(int oldItemPosition, int newItemPosition); @Override int getNewListSize(); @Override int getOldListSize(); @NonNull List<D> getOldData(); @NonNull List<D> getNewData(); }
DefaultDiffCallback extends DiffUtil.Callback { @NonNull public List<D> getNewData() { return Collections.unmodifiableList(mNewData); } DefaultDiffCallback(@NonNull final List<D> oldData,
                               @NonNull final List<D> newData); @Override boolean areContentsTheSame(int oldItemPosition, int newItemPosition); @Override boolean areItemsTheSame(int oldItemPosition, int newItemPosition); @Override int getNewListSize(); @Override int getOldListSize(); @NonNull List<D> getOldData(); @NonNull List<D> getNewData();  }