Class Address

  • All Implemented Interfaces:
    java.io.Serializable
    Direct Known Subclasses:
    Group, Mailbox

    public abstract class Address
    extends java.lang.Object
    implements java.io.Serializable
    The abstract base for classes that represent RFC2822 addresses. This includes groups and mailboxes.
    See Also:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private static long serialVersionUID  
    • Constructor Summary

      Constructors 
      Constructor Description
      Address()  
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      (package private) void addMailboxesTo​(java.util.List<Mailbox> results)
      Adds any mailboxes represented by this address into the given List.
      protected abstract void doAddMailboxesTo​(java.util.List<Mailbox> results)
      Adds any mailboxes represented by this address into the given List.
      • Methods inherited from class java.lang.Object

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

      • Address

        public Address()
    • Method Detail

      • addMailboxesTo

        final void addMailboxesTo​(java.util.List<Mailbox> results)
        Adds any mailboxes represented by this address into the given List. Note that this method has default (package) access, so a doAddMailboxesTo method is needed to allow the behavior to be overridden by subclasses.
      • doAddMailboxesTo

        protected abstract void doAddMailboxesTo​(java.util.List<Mailbox> results)
        Adds any mailboxes represented by this address into the given List. Must be overridden by concrete subclasses.