All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.jpattern.service.mail.message.ARecipient Maven / Gradle / Ivy

There is a newer version: 3.6.2
Show newest version
package com.jpattern.service.mail.message;


/**
 * 
 * @author Claudio Quaresima - [email protected] - 01/set/09 20:53:17
 *
 * @version $Id$
 */
public abstract class ARecipient implements IRecipient {

        /**
	 * 
	 */
	private static final long serialVersionUID = 1L;
		private String _recipient;

        public ARecipient (String aRecipient) {
                _recipient = aRecipient;
        }
        
        public final String name() {
            return _recipient;
        }
        
        public int hashCode() {
            return _recipient.hashCode();
        }

        public boolean equals(ARecipient obj) {
        	if( obj == null) return false;
            return _recipient.equals(obj._recipient);
        }        
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy