org.mule.routing
Class AbstractMessageSequence<PayloadType>

java.lang.Object
  extended by org.mule.routing.AbstractMessageSequence<PayloadType>
Type Parameters:
PayloadType -
All Implemented Interfaces:
Iterator<PayloadType>, MessageSequence<PayloadType>
Direct Known Subclasses:
ArrayMessageSequence, CollectionMessageSequence, IteratorMessageSequence

public abstract class AbstractMessageSequence<PayloadType>
extends Object
implements MessageSequence<PayloadType>

An abstract implementation of a MessageSequence, that does not support remove()

Author:
flbulgarelli

Field Summary
 
Fields inherited from interface org.mule.routing.MessageSequence
UNKNOWN_SIZE
 
Constructor Summary
AbstractMessageSequence()
           
 
Method Summary
 boolean isEmpty()
          If the sequence is empty
 void remove()
          Unsupported operation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.mule.routing.MessageSequence
hasNext, next, size
 

Constructor Detail

AbstractMessageSequence

public AbstractMessageSequence()
Method Detail

isEmpty

public final boolean isEmpty()
Description copied from interface: MessageSequence
If the sequence is empty

Specified by:
isEmpty in interface MessageSequence<PayloadType>
Returns:
!hasNext()

remove

public final void remove()
Description copied from interface: MessageSequence
Unsupported operation. MessageSequence do not allow removal of elements.

Specified by:
remove in interface Iterator<PayloadType>
Specified by:
remove in interface MessageSequence<PayloadType>


Copyright © 2003-2014 MuleSoft, Inc.. All Rights Reserved.