MCPcopy Create free account
hub / github.com/Card-Forge/forge / setDraftNotes

Method setDraftNotes

forge-core/src/main/java/forge/deck/Deck.java:602–614  ·  view source on GitHub ↗
(Map<String, String> draftNotes)

Source from the content-addressed store, hash-verified

600 }
601
602 public void setDraftNotes(Map<String, String> draftNotes) {
603 if (draftNotes == null) {
604 return;
605 }
606
607 for(String key : draftNotes.keySet()) {
608 String notes = draftNotes.get(key);
609 if (notes == null || notes.isEmpty()) {
610 continue;
611 }
612 this.draftNotes.put(key, notes.trim());
613 }
614 }
615
616 public Map<String, String> getDraftNotes() {
617 return draftNotes;

Callers 4

completeDraftMethod · 0.95
cloneFieldsToMethod · 0.95
fromSectionsMethod · 0.95
saveDraftMethod · 0.95

Calls 3

getMethod · 0.65
isEmptyMethod · 0.65
putMethod · 0.45

Tested by

no test coverage detected