PreferenceManager.PreferenceComparisonCallback
This package is part of the
Android support library which
is no longer maintained.
The support library has been superseded by AndroidX
which is part of Jetpack .
We recommend using the AndroidX libraries in all new projects. You should also consider
migrating existing projects to AndroidX.
To find the AndroidX class that maps to this deprecated class, see the AndroidX
support library class
mappings .
public
static
abstract
class
PreferenceManager.PreferenceComparisonCallback
extends Object
java.lang.Object
↳
android.support.v7.preference.PreferenceManager.PreferenceComparisonCallback
Known Direct Subclasses
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
PreferenceManager.PreferenceComparisonCallback ()
Public methods
arePreferenceContentsTheSame
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
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