优化代码
This commit is contained in:
@@ -15,6 +15,8 @@ public class MarkerShowEntity {
|
|||||||
|
|
||||||
// false - 没选中,true - 选中
|
// false - 没选中,true - 选中
|
||||||
private boolean isChecked;
|
private boolean isChecked;
|
||||||
|
// false - 非高亮,true - 高亮
|
||||||
|
private boolean isHighlighted;
|
||||||
// icon 地址,例如:头像,唱片图片,探路缩略,可能为空展示默认图
|
// icon 地址,例如:头像,唱片图片,探路缩略,可能为空展示默认图
|
||||||
private String iconUrl;
|
private String iconUrl;
|
||||||
// 要展示的文本
|
// 要展示的文本
|
||||||
@@ -34,6 +36,14 @@ public class MarkerShowEntity {
|
|||||||
isChecked = checked;
|
isChecked = checked;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public boolean isHighlighted() {
|
||||||
|
return isHighlighted;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setHighlighted(boolean highlighted) {
|
||||||
|
isHighlighted = highlighted;
|
||||||
|
}
|
||||||
|
|
||||||
public String getIconUrl() {
|
public String getIconUrl() {
|
||||||
return iconUrl;
|
return iconUrl;
|
||||||
}
|
}
|
||||||
@@ -98,6 +108,7 @@ public class MarkerShowEntity {
|
|||||||
public String toString() {
|
public String toString() {
|
||||||
return "MarkerShowEntity{" +
|
return "MarkerShowEntity{" +
|
||||||
"isChecked=" + isChecked +
|
"isChecked=" + isChecked +
|
||||||
|
", isHighlighted=" + isHighlighted +
|
||||||
", iconUrl='" + iconUrl + '\'' +
|
", iconUrl='" + iconUrl + '\'' +
|
||||||
", textContent='" + textContent + '\'' +
|
", textContent='" + textContent + '\'' +
|
||||||
", markerType='" + markerType + '\'' +
|
", markerType='" + markerType + '\'' +
|
||||||
|
|||||||
Reference in New Issue
Block a user