Package org.apache.cxf.message
Class MessageContentsList
- java.lang.Object
- 
- java.util.AbstractCollection<E>
- 
- java.util.AbstractList<E>
- 
- java.util.ArrayList<Object>
- 
- org.apache.cxf.message.MessageContentsList
 
 
 
 
- 
- All Implemented Interfaces:
- Serializable,- Cloneable,- Iterable<Object>,- Collection<Object>,- List<Object>,- RandomAccess
 
 public class MessageContentsList extends ArrayList<Object> - See Also:
- Serialized Form
 
- 
- 
Field SummaryFields Modifier and Type Field Description static ObjectREMOVED_MARKERIndicates that the element of the underlying list is absent.- 
Fields inherited from class java.util.AbstractListmodCount
 
- 
 - 
Constructor SummaryConstructors Constructor Description MessageContentsList()MessageContentsList(Object... values)MessageContentsList(List<?> values)
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Objectget(MessagePartInfo key)static MessageContentsListgetContentsList(Message msg)booleanhasValue(MessagePartInfo key)Objectput(MessagePartInfo key, Object value)voidremove(MessagePartInfo key)Marks corresponding element as removed, indicating absent value, so subsequentget(MessagePartInfo)for the same key return null.Objectset(int idx, Object value)- 
Methods inherited from class java.util.ArrayListadd, add, addAll, addAll, clear, clone, contains, ensureCapacity, equals, forEach, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeIf, removeRange, replaceAll, retainAll, size, sort, spliterator, subList, toArray, toArray, trimToSize
 - 
Methods inherited from class java.util.AbstractCollectioncontainsAll, toString
 - 
Methods inherited from class java.lang.Objectfinalize, getClass, notify, notifyAll, wait, wait, wait
 - 
Methods inherited from interface java.util.CollectionparallelStream, stream, toArray
 - 
Methods inherited from interface java.util.ListcontainsAll
 
- 
 
- 
- 
- 
Field Detail- 
REMOVED_MARKERpublic static final Object REMOVED_MARKER Indicates that the element of the underlying list is absent. This is necessary for the elements to keep their original indexes within this list when some preceding elements are not populated or deleted.
 
- 
 - 
Method Detail- 
getContentsListpublic static MessageContentsList getContentsList(Message msg) 
 - 
putpublic Object put(MessagePartInfo key, Object value) 
 - 
hasValuepublic boolean hasValue(MessagePartInfo key) 
 - 
getpublic Object get(MessagePartInfo key) - Parameters:
- key- the key whose associated element is to be returned.
- Returns:
- the element to which the index property of the specified key
 is mapped, or nullif mapped element is marked as removed.
 
 - 
removepublic void remove(MessagePartInfo key) Marks corresponding element as removed, indicating absent value, so subsequentget(MessagePartInfo)for the same key return null.- Parameters:
- key- the key whose associated element is to be marked as removed.
 
 
- 
 
-