|
|
@ -12,11 +12,8 @@ import acr.browser.lightning.utils.Preconditions; |
|
|
|
public class HistoryItem implements Comparable<HistoryItem> { |
|
|
|
public class HistoryItem implements Comparable<HistoryItem> { |
|
|
|
|
|
|
|
|
|
|
|
@NonNull private String mUrl = ""; |
|
|
|
@NonNull private String mUrl = ""; |
|
|
|
|
|
|
|
|
|
|
|
@NonNull private String mTitle = ""; |
|
|
|
@NonNull private String mTitle = ""; |
|
|
|
|
|
|
|
|
|
|
|
@NonNull private String mFolder = ""; |
|
|
|
@NonNull private String mFolder = ""; |
|
|
|
|
|
|
|
|
|
|
|
@Nullable private Bitmap mBitmap = null; |
|
|
|
@Nullable private Bitmap mBitmap = null; |
|
|
|
|
|
|
|
|
|
|
|
private int mImageId = 0; |
|
|
|
private int mImageId = 0; |
|
|
@ -126,13 +123,12 @@ public class HistoryItem implements Comparable<HistoryItem> { |
|
|
|
|
|
|
|
|
|
|
|
HistoryItem that = (HistoryItem) o; |
|
|
|
HistoryItem that = (HistoryItem) o; |
|
|
|
|
|
|
|
|
|
|
|
if (mImageId != that.mImageId) return false; |
|
|
|
return mImageId == that.mImageId && |
|
|
|
if (mPosition != that.mPosition) return false; |
|
|
|
mPosition == that.mPosition && |
|
|
|
if (mIsFolder != that.mIsFolder) return false; |
|
|
|
mIsFolder == that.mIsFolder && |
|
|
|
if (!mUrl.equals(that.mUrl)) return false; |
|
|
|
mUrl.equals(that.mUrl) && |
|
|
|
if (!mTitle.equals(that.mTitle)) return false; |
|
|
|
mTitle.equals(that.mTitle) && |
|
|
|
|
|
|
|
mFolder.equals(that.mFolder); |
|
|
|
return mFolder.equals(that.mFolder); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|