如何在PagedListAdapter中按ID查找项目
private final AsyncPagedListDiffer<MessageTuple> mDiffer = new AsyncPagedListDiffer<>(this, MessageTuple.DIFF_CALLBACK);
public MessageTuple getItem(long itemId) {
mDiffer.getCurrentList().getDataSource().map((Function<MessageTuple, Object>) input -> {
Timber.i("getItem" + input.toString());
return input.getMsgId().equals(String.valueOf(itemId));
});
return null;
}