Package javax.mail

Class Address

  • All Implemented Interfaces:
    java.io.Serializable
    Direct Known Subclasses:
    InternetAddress, NewsAddress

    public abstract class Address
    extends java.lang.Object
    implements java.io.Serializable
    An address representing an endpoint in a messaging system. Subclasses of this class should normally be serializable.
    Version:
    1.4
    Author:
    Chris Burdess
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      Address()  
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      abstract boolean equals​(java.lang.Object obj)  
      abstract java.lang.String getType()
      Returns the type of this address.
      abstract java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • Address

        public Address()
    • Method Detail

      • getType

        public abstract java.lang.String getType()
        Returns the type of this address.
      • toString

        public abstract java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • equals

        public abstract boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object