📄 mailbox.java
字号:
package mail.domain;
public class MailBox {
private String mailId;
private String title;
private String content;
private String senter;
private String addressee;
private String sentLogo;
private String type;
private String deleteLogo;
private String sentTime;
private String isRead;
private String HasAccessory;
private String MailLogo;
private Accessory accessory;
public Accessory getAccessory() {
return accessory;
}
public void setAccessory(Accessory accessory) {
this.accessory = accessory;
}
public String getAddressee() {
return addressee;
}
public void setAddressee(String addressee) {
this.addressee = addressee;
}
public String getContent() {
return content;
}
public void setContent(String content) {
this.content = content;
}
public String getDeleteLogo() {
return deleteLogo;
}
public void setDeleteLogo(String deleteLogo) {
this.deleteLogo = deleteLogo;
}
public String getHasAccessory() {
return HasAccessory;
}
public void setHasAccessory(String hasAccessory) {
HasAccessory = hasAccessory;
}
public String getIsRead() {
return isRead;
}
public void setIsRead(String isRead) {
this.isRead = isRead;
}
public String getMailId() {
return mailId;
}
public void setMailId(String mailId) {
this.mailId = mailId;
}
public String getMailLogo() {
return MailLogo;
}
public void setMailLogo(String mailLogo) {
MailLogo = mailLogo;
}
public String getSenter() {
return senter;
}
public void setSenter(String senter) {
this.senter = senter;
}
public String getSentLogo() {
return sentLogo;
}
public void setSentLogo(String sentLogo) {
this.sentLogo = sentLogo;
}
public String getSentTime() {
return sentTime;
}
public void setSentTime(String sentTime) {
this.sentTime = sentTime;
}
public String getTitle() {
return title;
}
public void setTitle(String title) {
this.title = title;
}
public String getType() {
return type;
}
public void setType(String type) {
this.type = type;
}
@Override
public int hashCode() {
final int PRIME = 31;
int result = super.hashCode();
result = PRIME * result + ((HasAccessory == null) ? 0 : HasAccessory.hashCode());
result = PRIME * result + ((MailLogo == null) ? 0 : MailLogo.hashCode());
result = PRIME * result + ((accessory == null) ? 0 : accessory.hashCode());
result = PRIME * result + ((addressee == null) ? 0 : addressee.hashCode());
result = PRIME * result + ((content == null) ? 0 : content.hashCode());
result = PRIME * result + ((deleteLogo == null) ? 0 : deleteLogo.hashCode());
result = PRIME * result + ((isRead == null) ? 0 : isRead.hashCode());
result = PRIME * result + ((mailId == null) ? 0 : mailId.hashCode());
result = PRIME * result + ((sentLogo == null) ? 0 : sentLogo.hashCode());
result = PRIME * result + ((sentTime == null) ? 0 : sentTime.hashCode());
result = PRIME * result + ((senter == null) ? 0 : senter.hashCode());
result = PRIME * result + ((title == null) ? 0 : title.hashCode());
result = PRIME * result + ((type == null) ? 0 : type.hashCode());
return result;
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (!super.equals(obj))
return false;
if (getClass() != obj.getClass())
return false;
final MailBox other = (MailBox) obj;
if (HasAccessory == null) {
if (other.HasAccessory != null)
return false;
} else if (!HasAccessory.equals(other.HasAccessory))
return false;
if (MailLogo == null) {
if (other.MailLogo != null)
return false;
} else if (!MailLogo.equals(other.MailLogo))
return false;
if (accessory == null) {
if (other.accessory != null)
return false;
} else if (!accessory.equals(other.accessory))
return false;
if (addressee == null) {
if (other.addressee != null)
return false;
} else if (!addressee.equals(other.addressee))
return false;
if (content == null) {
if (other.content != null)
return false;
} else if (!content.equals(other.content))
return false;
if (deleteLogo == null) {
if (other.deleteLogo != null)
return false;
} else if (!deleteLogo.equals(other.deleteLogo))
return false;
if (isRead == null) {
if (other.isRead != null)
return false;
} else if (!isRead.equals(other.isRead))
return false;
if (mailId == null) {
if (other.mailId != null)
return false;
} else if (!mailId.equals(other.mailId))
return false;
if (sentLogo == null) {
if (other.sentLogo != null)
return false;
} else if (!sentLogo.equals(other.sentLogo))
return false;
if (sentTime == null) {
if (other.sentTime != null)
return false;
} else if (!sentTime.equals(other.sentTime))
return false;
if (senter == null) {
if (other.senter != null)
return false;
} else if (!senter.equals(other.senter))
return false;
if (title == null) {
if (other.title != null)
return false;
} else if (!title.equals(other.title))
return false;
if (type == null) {
if (other.type != null)
return false;
} else if (!type.equals(other.type))
return false;
return true;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -