Class TwoColumnDiff


  • class TwoColumnDiff
    extends Object
    Produces a "two column diff" of two lists. (same as diff -y) Each list is annotated with the changes relative to the other, and "empty" cells are inserted so the lists are comparable item by item. diff on [1 2 3 4] [1 a 4 5] yields: item(SAME, 1) item(SAME, 1) item(CHANGED, 2) item(CHANGED, 2) item(DELETED, 3) item(EMPTY) item(SAME, 4) item(SAME, 4) item(EMPTY) item(INSERTED, 5)