MCPcopy Create free account
hub / github.com/M66B/FairEmail / getItem

Method getItem

app/src/main/java/com/sun/mail/imap/IMAPMessage.java:1498–1504  ·  view source on GitHub ↗

Return the data associated with the FetchItem. If the data hasn't been fetched, call the fetchItem method to fetch it. Returns null if there is no data for the FetchItem. @param fitem the FetchItem @return the data associated with the FetchItem @exception MessagingException for failures @since Ja

(FetchItem fitem)

Source from the content-addressed store, hash-verified

1496 * @since JavaMail 1.4.6
1497 */
1498 public synchronized Object getItem(FetchItem fitem)
1499 throws MessagingException {
1500 Object item = items == null ? null : items.get(fitem.getName());
1501 if (item == null)
1502 item = fetchItem(fitem);
1503 return item;
1504 }
1505
1506 /*
1507 * Load the Envelope for this message.

Callers

nothing calls this directly

Calls 3

fetchItemMethod · 0.95
getNameMethod · 0.65
getMethod · 0.45

Tested by

no test coverage detected