GuidedActionDiffCallback
public
class
GuidedActionDiffCallback
extends DiffCallback<GuidedAction>
DiffCallback used for GuidedActions, see GuidedStepSupportFragment.setActionsDiffCallback(DiffCallback)
.
Summary
Inherited methods |
|
From class
java.lang.Object
Object
|
clone()
|
boolean
|
equals(Object arg0)
|
void
|
finalize()
|
final
Class<?>
|
getClass()
|
int
|
hashCode()
|
final
void
|
notify()
|
final
void
|
notifyAll()
|
String
|
toString()
|
final
void
|
wait(long arg0, int arg1)
|
final
void
|
wait(long arg0)
|
final
void
|
wait()
|
|
Public constructors
GuidedActionDiffCallback
public GuidedActionDiffCallback ()
Public methods
areContentsTheSame
public boolean areContentsTheSame (GuidedAction oldItem,
GuidedAction 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 |
GuidedAction : The item in the old list. |
newItem |
GuidedAction : The item in the new list. |
Returns |
boolean |
True if the contents of the items are the same or false if they are different. |
public boolean areItemsTheSame (GuidedAction oldItem,
GuidedAction newItem)
Called to decide whether two objects represent the same item.
Parameters |
oldItem |
GuidedAction : The item in the old list. |
newItem |
GuidedAction : The item in the new list. |
Returns |
boolean |
True if the two items represent the same object or false if they are different. |