Java tutorial
/* * Copyright (c) Mirth Corporation. All rights reserved. * * http://www.mirthcorp.com * * The software in this package is published under the terms of the MPL license a copy of which has * been included with this distribution in the LICENSE.txt file. */ package com.mirth.connect.connectors.smtp; import java.io.Serializable; import org.apache.commons.lang3.builder.EqualsBuilder; public class Attachment implements Serializable { private String name; private String content; private String mimeType; public Attachment() { } public Attachment(Attachment attachment) { name = attachment.getName(); content = attachment.getContent(); mimeType = attachment.getMimeType(); } public String getName() { return name; } public void setName(String name) { this.name = name; } public String getContent() { return content; } public void setContent(String content) { this.content = content; } public String getMimeType() { return mimeType; } public void setMimeType(String mimeType) { this.mimeType = mimeType; } @Override public boolean equals(Object obj) { return EqualsBuilder.reflectionEquals(this, obj); } }