public static final class TargetActivity.RecencyComparatorProvider extends java.lang.Object implements TargetActivityComparatorProvider
TargetActivity based on the recency of their previous
selection and their default order as fallback when they have never been selected.
The ordering imposed by this comparator on a set of TargetActivity
is not consistent with equals since c.compare(e1, e2)==0 has not the same boolean
value as e1.equals(e2).| Modifier and Type | Field and Description |
|---|---|
static android.os.Parcelable.Creator<TargetActivity.RecencyComparatorProvider> |
CREATOR
Parcelable.
|
| Modifier | Constructor and Description |
|---|---|
|
RecencyComparatorProvider()
Comparator used to sort
TargetActivity based on the recency of their previous
selection and their default order as fallback when they have never been selected. |
protected |
RecencyComparatorProvider(android.os.Parcel in)
Comparator used to sort
TargetActivity based on the recency of their previous
selection and their default order as fallback when they have never been selected. |
| Modifier and Type | Method and Description |
|---|---|
int |
describeContents() |
java.util.Comparator<TargetActivity> |
provideComparator()
Provide the comparator used to sort
TargetActivity displayed to the user. |
void |
writeToParcel(android.os.Parcel dest,
int flags) |
public static final android.os.Parcelable.Creator<TargetActivity.RecencyComparatorProvider> CREATOR
public RecencyComparatorProvider()
TargetActivity based on the recency of their previous
selection and their default order as fallback when they have never been selected.
The ordering imposed by this comparator on a set of TargetActivity
is not consistent with equals since c.compare(e1, e2)==0 has not the same boolean
value as e1.equals(e2).protected RecencyComparatorProvider(android.os.Parcel in)
TargetActivity based on the recency of their previous
selection and their default order as fallback when they have never been selected.
The ordering imposed by this comparator on a set of TargetActivity
is not consistent with equals since c.compare(e1, e2)==0 has not the same boolean
value as e1.equals(e2).in - parcel.public java.util.Comparator<TargetActivity> provideComparator()
TargetActivityComparatorProviderTargetActivity displayed to the user.provideComparator in interface TargetActivityComparatorProviderTargetActivity displayed to the user.public int describeContents()
describeContents in interface android.os.Parcelablepublic void writeToParcel(android.os.Parcel dest,
int flags)
writeToParcel in interface android.os.Parcelable