package Ġcom . fr h ank lin devs . b ant uk uy . utils Ċ Ċ import Ġandroidx . recyclerview . widget . Diff Util Ċ import Ġcom . fr h ank lin devs . b ant uk uy . don or . data . api . Place Item Ċ import Ġcom . fr h ank lin devs . b ant uk uy . don or . data . box . Don ation Cash Items Ċ import Ġcom . fr h ank lin devs . b ant uk uy . don or . data . box . Don ation Goods Items Ċ Ċ class ĠHome Diff Callback ( private Ġval Ġm Old Home s List : ĠList < Place Item >, Ġprivate Ġval Ġm New Home s List : ĠList < Place Item >) Ġ: ĠDiff Util . Callback () Ġ{ ĊĠĠĠ Ġoverride Ġfun Ġget Old List Size (): ĠInt Ġ= Ġm Old Home s List . size ĊĊĠĠĠ Ġoverride Ġfun Ġget New List Size (): ĠInt Ġ= Ġm New Home s List . size ĊĊĠĠĠ Ġoverride Ġfun Ġare Items The Same ( old Item Position : ĠInt , Ġnew Item Position : ĠInt ): ĠBoolean Ġ= ĊĠĠĠĠĠĠĠ Ġm Old Home s List [ old Item Position ]. place Id Ġ== Ġm New Home s List [ new Item Position ]. place Id ĊĊĠĠĠ Ġoverride Ġfun Ġare Contents The Same ( old Item Position : ĠInt , Ġnew Item Position : ĠInt ): ĠBoolean Ġ= ĊĠĠĠĠĠĠĠ Ġm Old Home s List [ old Item Position ]. name Ġ== Ġm New Home s List [ new Item Position ]. name Ċ Ċ } Ċ Ċ class ĠMoney Diff Callback ( private Ġval Ġm Old Money List : ĠList < Don ation Cash Items >, Ġprivate Ġval Ġm New Money List : ĠList < Don ation Cash Items >) Ġ: ĠDiff Util . Callback () Ġ{ ĊĠĠĠ Ġoverride Ġfun Ġget Old List Size (): ĠInt Ġ= Ġm Old Money List . size ĊĊĠĠĠ Ġoverride Ġfun Ġget New List Size (): ĠInt Ġ= Ġm New Money List . size ĊĊĠĠĠ Ġoverride Ġfun Ġare Items The Same ( old Item Position : ĠInt , Ġnew Item Position : ĠInt ): ĠBoolean Ġ= ĊĠĠĠĠĠĠĠ Ġm Old Money List [ old Item Position ]. id Ġ== Ġm New Money List [ new Item Position ]. id ĊĊĠĠĠ Ġoverride Ġfun Ġare Contents The Same ( old Item Position : ĠInt , Ġnew Item Position : ĠInt ): ĠBoolean Ġ= ĊĠĠĠĠĠĠĠ Ġm Old Money List [ old Item Position ]. cash Value Ġ== Ġm New Money List [ new Item Position ]. cash Value Ċ Ċ } Ċ Ċ class ĠGood s Diff Callback ( private Ġval Ġm Old Goods List : ĠList < Don ation Goods Items >, Ġprivate Ġval Ġm New Goods List : ĠList < Don ation Goods Items >) Ġ: ĠDiff Util . Callback () Ġ{ ĊĠĠĠ Ġoverride Ġfun Ġget Old List Size (): ĠInt Ġ= Ġm Old Goods List . size ĊĊĠĠĠ Ġoverride Ġfun Ġget New List Size (): ĠInt Ġ= Ġm New Goods List . size ĊĊĠĠĠ Ġoverride Ġfun Ġare Items The Same ( old Item Position : ĠInt , Ġnew Item Position : ĠInt ): ĠBoolean Ġ= ĊĠĠĠĠĠĠĠ Ġm Old Goods List [ old Item Position ]. id Ġ== Ġm New Goods List [ new Item Position ]. id ĊĊĠĠĠ Ġoverride Ġfun Ġare Contents The Same ( old Item Position : ĠInt , Ġnew Item Position : ĠInt ): ĠBoolean Ġ= ĊĠĠĠĠĠĠĠ Ġm Old Goods List [ old Item Position ]. goods Weight Ġ== Ġm New Goods List [ new Item Position ]. goods Weight Ċ Ċ }