Class DittoDiff.Move

java.lang.Object
com.ditto.java.DittoDiff.Move
Enclosing class:
DittoDiff

public static final class DittoDiff.Move extends Object

Represents a move from one index in the old list to a new index in the updated list.

Used in DittoDiff.getMoves().

  • Method Details

    • getFrom

      public int getFrom()
      The index in the old list the item moved from.
    • getTo

      public int getTo()
      The index in the new list the item moved to.