There are some structures in a PDF file, for example cross reference tables, that index data based on object and generation numbers. However, there is a restriction that in such structures the object numbers must be unique, e.g. there may not be entries for [1, 0] and [1, 1] at the same time.
This class can be used for storing/retrieving data for such structures.
The biggest object number that is stored in the object hash or zero if no objects are stored.
Public Class Methods
Creates a new object hash.
Public Instance Methods
Returns the data for the given object number, or for the given object and generation numbers.
If there is no such data,
nil is returned.
Sets the data for the given object and generation numbers.
If there is already an entry for the given object number (even if the generation number is different), this entry will be removed.
Deletes the entry for the given object number.
Calls the given block once for every entry, passing an array consisting of the object and generation number and the associated data as arguments.
true if there is an entry for the given object number,
or for the given object and generation numbers.
Returns the generation number that is stored along the given object number,
nil if the object number is not used.