Class MessageContentsList

    • Field Detail

      • REMOVED_MARKER

        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 Detail

      • MessageContentsList

        public MessageContentsList()
      • MessageContentsList

        public MessageContentsList​(Object... values)
      • MessageContentsList

        public MessageContentsList​(List<?> values)
    • Method Detail

      • get

        public 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 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.
        Parameters:
        key - the key whose associated element is to be marked as removed.