NumberTree
Overview
NumberTree is a class in Aspose.PDF FOSS for Java.
Read/write view over a PDF number tree (ISO 32000-1:2008, §7.9.7).
This class provides 12 methods for working with NumberTree objects in Java programs.
Available methods include: NumberTree, clear, containsKey, entries, entriesUnmodifiable, get, getRoot, isEmpty, keys, put, remove, size.
All public members are accessible to any Java application after installing the Aspose.PDF FOSS for Java package.
Properties: empty, root.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
root | PdfDictionary | Read | Returns the underlying root dictionary, or {@code null} if this view |
| was constructed over a {@code null} root. | |||
empty | boolean | Read | Returns whether the tree has no entries. |
Methods
| Signature | Description |
|---|---|
NumberTree(root: PdfDictionary) | Wraps the given root dictionary. |
getRoot() → PdfDictionary | Returns the underlying root dictionary, or {@code null} if this view |
| was constructed over a {@code null} root. | |
isEmpty() → boolean | Returns whether the tree has no entries. |
size() → int | Returns the number of (key, value) pairs in the tree. |
get(key: int) → PdfBase | Looks up a key. |
containsKey(key: int) → boolean | Returns whether the tree contains the given key. |
entries() → List<Map.Entry<Integer, PdfBase>> | 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: PdfBase) → PdfBase | Inserts or replaces a value. |
remove(key: int) → PdfBase | Removes a key. |
clear() | Empties the tree. |
entriesUnmodifiable() → List<Map.Entry<Integer, PdfBase>> | Returns an unmodifiable view of {@link #entries()}. |