Lines Matching defs:cb
86 * @param cb The callback that acts as a gateway to the backing list data
91 public static DiffResult calculateDiff(Callback cb) {
92 return calculateDiff(cb, true);
102 * @param cb The callback that acts as a gateway to the backing list data
108 public static DiffResult calculateDiff(Callback cb, boolean detectMoves) {
109 final int oldSize = cb.getOldListSize();
110 final int newSize = cb.getNewListSize();
131 final Snake snake = diffPartial(cb, range.oldListStart, range.oldListEnd,
184 return new DiffResult(cb, snakes, forward, backward, detectMoves);
188 private static Snake diffPartial(Callback cb, int startOld, int endOld,
219 && cb.areItemsTheSame(startOld + x, startNew + y)) {
254 && cb.areItemsTheSame(startOld + x - 1, startNew + y - 1)) {