se.ericsson.eto.norarc.javaframe
Class MailBox

java.lang.Object
  extended byse.ericsson.eto.norarc.javaframe.MailBox
All Implemented Interfaces:
java.io.Serializable

class MailBox
extends java.lang.Object
implements java.io.Serializable

The message queue concept This concept is not intended for JavaFrame users, but only for JavaFrame

See Also:
Message

Constructor Summary
protected MailBox()
           
 
Method Summary
protected  void addMessage(Message sig)
          Adds the Message sig to the end of this MailBox.
protected  void addMessageFirst(Message sig)
          Adds the Message sig to the front of this MailBox.
protected  Message getFirst()
          Gets without removing the first message of this Mailbox and returns it.
protected  void moveMailBox(MailBox mBox)
          Moves all the messages in mBox to the front of this mailBox.
protected  void remove(Message sig)
          Removes the Message sig from this Mailbox.
protected  Message removeFirst()
          Removes the first message of this Mailbox and returns it.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MailBox

protected MailBox()
Method Detail

addMessage

protected final void addMessage(Message sig)
Adds the Message sig to the end of this MailBox.

Parameters:
sig - assumed to be != null.

addMessageFirst

protected final void addMessageFirst(Message sig)
Adds the Message sig to the front of this MailBox.

Parameters:
sig - assumed to be != null.

moveMailBox

protected final void moveMailBox(MailBox mBox)
Moves all the messages in mBox to the front of this mailBox. mBox is cleared.

Parameters:
mBox - assumed to be != null.

removeFirst

protected final Message removeFirst()
Removes the first message of this Mailbox and returns it. If this mailBox is empty, null is returned.


getFirst

protected final Message getFirst()
Gets without removing the first message of this Mailbox and returns it. If this mailBox is empty, null is returned.


remove

protected final void remove(Message sig)
Removes the Message sig from this Mailbox. If sig is not in this mailBox, the call has no effect.