PreferenceManager.PreferenceComparisonCallback
public
static
abstract
class
PreferenceManager.PreferenceComparisonCallback
extends Object
java.lang.Object
|
↳ |
androidx.preference.PreferenceManager.PreferenceComparisonCallback
|
Callback class to be used by the RecyclerView.Adapter
associated with the
PreferenceScreen
, used to determine when two Preference
objects are
semantically and visually the same.
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
PreferenceManager.PreferenceComparisonCallback
public PreferenceManager.PreferenceComparisonCallback ()
Public methods
arePreferenceContentsTheSame
public abstract boolean arePreferenceContentsTheSame (Preference p1,
Preference p2)
Called to determine if two Preference
objects will display the same data
Returns |
boolean |
true if the objects are visually identical
|
arePreferenceItemsTheSame
public abstract boolean arePreferenceItemsTheSame (Preference p1,
Preference p2)
Called to determine if two Preference
objects represent the same item
Returns |
boolean |
true if the objects represent the same item
|