tweak equality check for LbryNotification
This commit is contained in:
parent
1198c2298a
commit
e8a0bca5ea
2 changed files with 4 additions and 0 deletions
|
@ -31,6 +31,7 @@ import lombok.Setter;
|
||||||
import lombok.ToString;
|
import lombok.ToString;
|
||||||
|
|
||||||
@Data
|
@Data
|
||||||
|
@EqualsAndHashCode(callSuper = false)
|
||||||
public class NotificationListAdapter extends RecyclerView.Adapter<NotificationListAdapter.ViewHolder> {
|
public class NotificationListAdapter extends RecyclerView.Adapter<NotificationListAdapter.ViewHolder> {
|
||||||
|
|
||||||
private static final String RULE_CREATOR_SUBSCRIBER = "creator_subscriber";
|
private static final String RULE_CREATOR_SUBSCRIBER = "creator_subscriber";
|
||||||
|
|
|
@ -5,10 +5,13 @@ import java.util.Date;
|
||||||
|
|
||||||
import io.lbry.browser.model.Claim;
|
import io.lbry.browser.model.Claim;
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
|
import lombok.EqualsAndHashCode;
|
||||||
|
|
||||||
@Data
|
@Data
|
||||||
|
@EqualsAndHashCode(callSuper = false, onlyExplicitlyIncluded = true)
|
||||||
public class LbryNotification implements Comparator<LbryNotification> {
|
public class LbryNotification implements Comparator<LbryNotification> {
|
||||||
private long id;
|
private long id;
|
||||||
|
@EqualsAndHashCode.Include
|
||||||
private long remoteId;
|
private long remoteId;
|
||||||
private String title;
|
private String title;
|
||||||
private String description;
|
private String description;
|
||||||
|
|
Loading…
Reference in a new issue