PdfDictionary extends PdfObject { public void remove(final PdfName key) { hashMap.remove(key); } PdfDictionary();  PdfDictionary(int capacity);  PdfDictionary(final PdfName type); @Override void toPdf(final PdfWriter writer, final OutputStream os); @Override String toString(); void put(final PdfName key, final PdfObject object); void putEx(final PdfName key, final PdfObject value); void putAll(final PdfDictionary dic); void remove(final PdfName key); void clear(); PdfObject get(final PdfName key); PdfObject getDirectObject(final PdfName key); Set<PdfName> getKeys(); int size(); boolean contains(final PdfName key); boolean isFont(); boolean isPage(); boolean isPages(); boolean isCatalog(); boolean isOutlineTree(); boolean checkType(PdfName type); void merge(final PdfDictionary other); void mergeDifferent(final PdfDictionary other); PdfDictionary getAsDict(final PdfName key); PdfArray getAsArray(final PdfName key); PdfStream getAsStream(final PdfName key); PdfString getAsString(final PdfName key); PdfNumber getAsNumber(final PdfName key); PdfName getAsName(final PdfName key); PdfBoolean getAsBoolean(final PdfName key); PdfIndirectReference getAsIndirectObject(final PdfName key); static final PdfName FONT; static final PdfName OUTLINES; static final PdfName PAGE; static final PdfName PAGES; static final PdfName CATALOG; }
@Test public void pdfDictionaryRemoveDoesNothingIfKeyIsNull() { PdfDictionary dictionary = new PdfDictionary(); dictionary.remove(null); }