@Test public void testDisableMoveDetection() { initWithSize(5); move(0, 4); List<Item> applied = applyUpdates(mBefore, DiffUtil.calculateDiff(mCallback, false)); assertThat(applied.size(), is(5)); assertThat(applied.get(4).newItem, is(true)); assertThat(applied.contains(mBefore.get(0)), is(false)); }
public static DiffResult calculateDiff(Callback cb) { return calculateDiff(cb, true); }
DiffUtil { public static DiffResult calculateDiff(Callback cb) { return calculateDiff(cb, true); } }
DiffUtil { public static DiffResult calculateDiff(Callback cb) { return calculateDiff(cb, true); } private  DiffUtil(); }
DiffUtil { public static DiffResult calculateDiff(Callback cb) { return calculateDiff(cb, true); } private  DiffUtil(); static DiffResult calculateDiff(Callback cb); static DiffResult calculateDiff(Callback cb, boolean detectMoves); }
DiffUtil { public static DiffResult calculateDiff(Callback cb) { return calculateDiff(cb, true); } private  DiffUtil(); static DiffResult calculateDiff(Callback cb); static DiffResult calculateDiff(Callback cb, boolean detectMoves);  }