public class ResultsToMessageCollection extends Object implements Collection<org.mule.runtime.api.message.Message>
Collection of Result instances and exposes
its contents as Message instances.
This allows to avoid preemptive transformations of an entire collection
of Result to Message| Modifier and Type | Field and Description |
|---|---|
protected CursorProviderFactory |
cursorProviderFactory |
protected Event |
event |
| Constructor and Description |
|---|
ResultsToMessageCollection(Collection<org.mule.runtime.extension.api.runtime.operation.Result> delegate,
CursorProviderFactory cursorProviderFactory,
Event event) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(org.mule.runtime.api.message.Message message) |
boolean |
addAll(Collection<? extends org.mule.runtime.api.message.Message> c) |
void |
clear() |
boolean |
contains(Object o) |
boolean |
containsAll(Collection<?> c) |
boolean |
equals(Object o) |
void |
forEach(Consumer<? super org.mule.runtime.api.message.Message> action) |
int |
hashCode() |
boolean |
isEmpty() |
Iterator<org.mule.runtime.api.message.Message> |
iterator() |
Stream<org.mule.runtime.api.message.Message> |
parallelStream() |
boolean |
remove(Object o) |
boolean |
removeAll(Collection<?> c) |
boolean |
removeIf(Predicate<? super org.mule.runtime.api.message.Message> filter) |
boolean |
retainAll(Collection<?> c) |
int |
size() |
Spliterator<org.mule.runtime.api.message.Message> |
spliterator() |
Stream<org.mule.runtime.api.message.Message> |
stream() |
Object[] |
toArray() |
<T> T[] |
toArray(T[] a) |
protected Collection<org.mule.runtime.extension.api.runtime.operation.Result> |
toResults(Collection<? extends org.mule.runtime.api.message.Message> messages) |
protected final CursorProviderFactory cursorProviderFactory
protected final Event event
public ResultsToMessageCollection(Collection<org.mule.runtime.extension.api.runtime.operation.Result> delegate, CursorProviderFactory cursorProviderFactory, Event event)
public int size()
size in interface Collection<org.mule.runtime.api.message.Message>public boolean isEmpty()
isEmpty in interface Collection<org.mule.runtime.api.message.Message>public boolean contains(Object o)
contains in interface Collection<org.mule.runtime.api.message.Message>public Iterator<org.mule.runtime.api.message.Message> iterator()
iterator in interface Iterable<org.mule.runtime.api.message.Message>iterator in interface Collection<org.mule.runtime.api.message.Message>public Object[] toArray()
toArray in interface Collection<org.mule.runtime.api.message.Message>public <T> T[] toArray(T[] a)
toArray in interface Collection<org.mule.runtime.api.message.Message>public boolean add(org.mule.runtime.api.message.Message message)
add in interface Collection<org.mule.runtime.api.message.Message>public boolean remove(Object o)
remove in interface Collection<org.mule.runtime.api.message.Message>public boolean containsAll(Collection<?> c)
containsAll in interface Collection<org.mule.runtime.api.message.Message>protected Collection<org.mule.runtime.extension.api.runtime.operation.Result> toResults(Collection<? extends org.mule.runtime.api.message.Message> messages)
public boolean addAll(Collection<? extends org.mule.runtime.api.message.Message> c)
addAll in interface Collection<org.mule.runtime.api.message.Message>public boolean removeAll(Collection<?> c)
removeAll in interface Collection<org.mule.runtime.api.message.Message>public boolean removeIf(Predicate<? super org.mule.runtime.api.message.Message> filter)
removeIf in interface Collection<org.mule.runtime.api.message.Message>public boolean retainAll(Collection<?> c)
retainAll in interface Collection<org.mule.runtime.api.message.Message>public void clear()
clear in interface Collection<org.mule.runtime.api.message.Message>public boolean equals(Object o)
equals in interface Collection<org.mule.runtime.api.message.Message>equals in class Objectpublic int hashCode()
hashCode in interface Collection<org.mule.runtime.api.message.Message>hashCode in class Objectpublic Spliterator<org.mule.runtime.api.message.Message> spliterator()
spliterator in interface Iterable<org.mule.runtime.api.message.Message>spliterator in interface Collection<org.mule.runtime.api.message.Message>public Stream<org.mule.runtime.api.message.Message> stream()
stream in interface Collection<org.mule.runtime.api.message.Message>public Stream<org.mule.runtime.api.message.Message> parallelStream()
parallelStream in interface Collection<org.mule.runtime.api.message.Message>Copyright © 2003–2017 MuleSoft, Inc.. All rights reserved.