Class PDFNet.DictIterator
PDFNet.DictIterator
Constructor Attributes | Constructor Name and Description |
---|---|
DictIterator is used to traverse key/value pairs in a dictionary.
|
Method Attributes | Method Name and Description |
---|---|
assign()
Copy Constructor
|
|
destroy()
Destructor
|
|
hasNext()
|
|
key()
|
|
next()
Advances the iterator to the next element of the collection.
|
|
value()
|
Class Detail
PDFNet.DictIterator(id)
DictIterator is used to traverse key/value pairs in a dictionary.
For example a DictIterator can be used to print out all the entries
in a given Obj dictionary as follows:
- Parameters:
- id
Method Detail
{DictIterator}
assign()
Copy Constructor
- Returns:
- {DictIterator} A promise that resolves to an object of type: "DictIterator" (generated documentation)
destroy()
Destructor
{[ERROR]}
hasNext()
- Returns:
- {[ERROR]} A promise that resolves to true if the iterator can be successfully advanced to the next element; false if the end collection is reached.
{Obj}
key()
- Returns:
- {Obj} A promise that resolves to the key of the current dictionary entry.
next()
Advances the iterator to the next element of the collection.
{Obj}
value()
- Returns:
- {Obj} A promise that resolves to the value of the current dictionary entry.