From 34b9447a1ce448ce71a2d56bbfdb6320e1201293 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=91=A3=E5=AE=8F=E5=AE=87?= Date: Tue, 23 Jun 2020 15:23:36 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E4=BA=86=E5=88=A4=E6=96=ADMa?= =?UTF-8?q?rkerExploreWay=E6=98=AF=E5=90=A6=E6=98=AF=E5=90=8C=E4=B8=80?= =?UTF-8?q?=E4=B8=AA=E5=AF=B9=E8=B1=A1=E6=95=B0=E6=8D=AE=E7=9A=84=E6=96=B9?= =?UTF-8?q?=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../module/common/entity/MarkerExploreWay.java | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/modules/mogo-module-common/src/main/java/com/mogo/module/common/entity/MarkerExploreWay.java b/modules/mogo-module-common/src/main/java/com/mogo/module/common/entity/MarkerExploreWay.java index 255f74c6e3..946833bfff 100644 --- a/modules/mogo-module-common/src/main/java/com/mogo/module/common/entity/MarkerExploreWay.java +++ b/modules/mogo-module-common/src/main/java/com/mogo/module/common/entity/MarkerExploreWay.java @@ -5,6 +5,7 @@ import android.text.TextUtils; import java.io.Serializable; import java.util.List; +import java.util.Objects; @SuppressWarnings("unused") public class MarkerExploreWay implements Serializable { @@ -137,7 +138,7 @@ public class MarkerExploreWay implements Serializable { } public String getPoiType() { - if ( TextUtils.isEmpty( poiType ) ) { + if (TextUtils.isEmpty(poiType)) { return MarkerPoiTypeEnum.FOURS_BLOCK_UP; } return poiType; @@ -155,6 +156,21 @@ public class MarkerExploreWay implements Serializable { this.uploadType = uploadType; } + @Override + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + MarkerExploreWay that = (MarkerExploreWay) o; + return Objects.equals(infoId, that.infoId) && + Objects.equals(type, that.type) && + Objects.equals(poiType, that.poiType); + } + + @Override + public int hashCode() { + return Objects.hash(infoId, type, poiType); + } + @Override public String toString() { return "MarkerExploreWay{" +