Package 

Class SimpleDiffCallback

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      Boolean areItemsTheSame(Object oldItem, Object newItem) Called to decide whether two objects represent the same item.
      Boolean areContentsTheSame(Object oldItem, Object newItem) Called to decide whether two items have the same data.
      • Methods inherited from class de.pfaffenrodt.adapter.SimpleDiffCallback

        getChangePayload
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SimpleDiffCallback

        SimpleDiffCallback()
    • Method Detail

      • areItemsTheSame

         Boolean areItemsTheSame(Object oldItem, Object newItem)

        Called to decide whether two objects represent the same item.

        Parameters:
        oldItem - The item in the old list.
        newItem - The item in the new list.
      • areContentsTheSame

         Boolean areContentsTheSame(Object oldItem, Object newItem)

        Called to decide whether two items have the same data. This information is used to detect if the contents of an item have changed.

        Parameters:
        oldItem - The item in the old list.
        newItem - The item in the new list.