com.croftsoft.core.util.mail
Class MailImp<Message>

java.lang.Object
  extended by com.croftsoft.core.util.mail.MailImp<Message>
All Implemented Interfaces:
Mail<Message>, Seq<Message>, Slot<Message>

public final class MailImp<Message>
extends Object
implements Mail<Message>

A Mail implementation backed by a Seq and a Slot.

Since:
2008-01-27
Version:
$Id: MailImp.java,v 1.3 2008/09/20 05:01:27 croft Exp $
Author:
David Wallace Croft

Constructor Summary
MailImp(Seq<Message> incomingSeq, Slot<Message> outgoingSlot)
           
 
Method Summary
 Message get(int index)
           
 boolean offer(Message message)
           
 int size()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MailImp

public MailImp(Seq<Message> incomingSeq,
               Slot<Message> outgoingSlot)
Method Detail

get

public Message get(int index)
Specified by:
get in interface Seq<Message>

size

public int size()
Specified by:
size in interface Seq<Message>

offer

public boolean offer(Message message)
Specified by:
offer in interface Slot<Message>

CroftSoft Javadoc

CroftSoft Core Javadoc (2008-09-28 20:58:02)