NumberTree

Overview

NumberTree is a class in Aspose.Pdf FOSS for Java.

Mutable map view over a PDF number tree (ISO 32000-1:2008, §7.9.7).

Properties

NameTypeAccessDescription
rootCOSDictionaryReadReturns the underlying root dictionary, or {@code null} if this view
was constructed over a {@code null} root.
emptybooleanReadReturns whether the tree has no entries.

Methods

SignatureDescription
NumberTree(root: COSDictionary)Wraps the given root dictionary.
getRoot()COSDictionaryReturns the underlying root dictionary, or {@code null} if this view
was constructed over a {@code null} root.
isEmpty()booleanReturns whether the tree has no entries.
size()intReturns the number of (key, value) pairs in the tree.
get(key: int)COSBaseLooks up a key.
containsKey(key: int)booleanReturns whether the tree contains the given key.
entries()List<Map.Entry<Integer, COSBase>>Returns all entries in tree order (which, for a conformant tree, is
key-sorted order).
keys()List<Integer>Returns all keys in tree order.
put(key: int, value: COSBase)COSBaseInserts or replaces a value.
remove(key: int)COSBaseRemoves a key.
clear()Empties the tree.
entriesUnmodifiable()List<Map.Entry<Integer, COSBase>>Returns an unmodifiable view of {@link #entries()}.

See Also