T - The generic type of the decorated listpublic class ImmutableRecordAwareList<T> extends com.google.common.collect.ForwardingList<T> implements org.mule.runtime.core.internal.util.Copiable<ImmutableRecordAwareList>, org.mule.runtime.core.internal.routing.outbound.EventBuilderConfigurerList<T>
List in such a way that the iterator() method returns a RecordAwareEventIterator, and that
this decorator becomes immutable.
It also implements the Copiable interface so that this list can be copied into instances of the same class, allowing to
preserve the decoration on the iterator() method| Constructor and Description |
|---|
ImmutableRecordAwareList(List<T> delegate,
List<Record> records)
Creates a new instance
|
| Modifier and Type | Method and Description |
|---|---|
ImmutableRecordAwareList |
copy()
Creates a semi-shallow copy of this instance.
|
protected List<T> |
delegate() |
Iterator<org.mule.runtime.core.internal.routing.outbound.EventBuilderConfigurer> |
eventBuilderConfigurerIterator() |
Iterator<T> |
iterator() |
add, addAll, equals, get, hashCode, indexOf, lastIndexOf, listIterator, listIterator, remove, set, standardAdd, standardAddAll, standardEquals, standardHashCode, standardIndexOf, standardIterator, standardLastIndexOf, standardListIterator, standardListIterator, standardSubList, subListadd, addAll, clear, contains, containsAll, isEmpty, remove, removeAll, retainAll, size, standardAddAll, standardClear, standardContains, standardContainsAll, standardIsEmpty, standardRemove, standardRemoveAll, standardRetainAll, standardToArray, standardToArray, standardToString, toArray, toArrayclone, finalize, getClass, notify, notifyAll, wait, wait, waitadd, add, addAll, addAll, clear, contains, containsAll, equals, get, hashCode, indexOf, isEmpty, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArrayparallelStream, removeIf, streampublic ImmutableRecordAwareList(List<T> delegate, List<Record> records)
delegate - the List to be decoratedrecords - a List with the instances of Record to be consumed by a RecordAwareEventIterator.IllegalArgumentException - if delegate and records don't have the same size or event is
nullprotected List<T> delegate()
delegate in class com.google.common.collect.ForwardingList<T>public Iterator<org.mule.runtime.core.internal.routing.outbound.EventBuilderConfigurer> eventBuilderConfigurerIterator()
eventBuilderConfigurerIterator in interface org.mule.runtime.core.internal.routing.outbound.EventBuilderConfigurerList<T>public ImmutableRecordAwareList copy()
delegate and records lists are the same, but
the List instances that are wrapped by this decorator are newcopy in interface org.mule.runtime.core.internal.util.Copiable<ImmutableRecordAwareList>ImmutableRecordAwareList with the same items but different decorated listsCopyright © 2006–2022 MuleSoft, Inc.. All rights reserved.