org.mule.routing.outbound
Class ArrayMessageSequence

java.lang.Object
  extended by org.mule.routing.AbstractMessageSequence<Object>
      extended by org.mule.routing.outbound.ArrayMessageSequence
All Implemented Interfaces:
Iterator<Object>, MessageSequence<Object>

public class ArrayMessageSequence
extends AbstractMessageSequence<Object>


Field Summary
 
Fields inherited from interface org.mule.routing.MessageSequence
UNKNOWN_SIZE
 
Constructor Summary
ArrayMessageSequence(Object[] array)
           
 
Method Summary
 boolean hasNext()
          Whether this sequence has more elements.
 Object next()
          The next element of the sequence.
 int size()
          The number of members of the sequence.
 
Methods inherited from class org.mule.routing.AbstractMessageSequence
isEmpty, remove
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ArrayMessageSequence

public ArrayMessageSequence(Object[] array)
Method Detail

size

public int size()
Description copied from interface: MessageSequence
The number of members of the sequence. If this is unknown, return UNKNOWN_ELEMENTS_COUNT.

Returns:
The estimated size of the sequence, or MessageSequence.UNKNOWN_SIZE, if it is unknown

hasNext

public boolean hasNext()
Description copied from interface: MessageSequence
Whether this sequence has more elements.

See Also:
Iterator.hasNext()

next

public Object next()
Description copied from interface: MessageSequence
The next element of the sequence. At any moment, if MessageSequence.size() is not equal to MessageSequence.UNKNOWN_SIZE, this means that this method may be invoked approximately up to MessageSequence.size() times.



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