Class MessageContentsList

All Implemented Interfaces:
Serializable, Cloneable, Iterable<Object>, Collection<Object>, List<Object>, RandomAccess

public class MessageContentsList extends ArrayList<Object>
See Also:
  • Field Details


      public 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.
  • Constructor Details

    • MessageContentsList

      public MessageContentsList()
    • MessageContentsList

      public MessageContentsList(Object... values)
    • MessageContentsList

      public MessageContentsList(List<?> values)
  • Method Details

    • getContentsList

      public static MessageContentsList getContentsList(Message msg)
    • set

      public Object set(int idx, Object value)
      Specified by:
      set in interface List<Object>
      set in class ArrayList<Object>
    • put

      public Object put(MessagePartInfo key, Object value)
    • hasValue

      public boolean hasValue(MessagePartInfo key)
    • get

      public Object get(MessagePartInfo key)
      key - the key whose associated element is to be returned.
      the element to which the index property of the specified key is mapped, or null if mapped element is marked as removed.
    • remove

      public void remove(MessagePartInfo key)
      Marks corresponding element as removed, indicating absent value, so subsequent get(MessagePartInfo) for the same key return null.
      key - the key whose associated element is to be marked as removed.