diff options
Diffstat (limited to 'src/java/org/apache/fop/pdf/PDFNumsArray.java')
-rw-r--r-- | src/java/org/apache/fop/pdf/PDFNumsArray.java | 22 |
1 files changed, 20 insertions, 2 deletions
diff --git a/src/java/org/apache/fop/pdf/PDFNumsArray.java b/src/java/org/apache/fop/pdf/PDFNumsArray.java index e1c38dd48..6db7b02ac 100644 --- a/src/java/org/apache/fop/pdf/PDFNumsArray.java +++ b/src/java/org/apache/fop/pdf/PDFNumsArray.java @@ -57,8 +57,26 @@ public class PDFNumsArray extends PDFObject { * @param key the key of the value to set * @param obj the new value */ + public void put(Integer key, Object obj) { + this.map.put(key, obj); + } + + /** + * Sets an entry. + * @param key the key of the value to set + * @param obj the new value + */ public void put(int key, Object obj) { - this.map.put(new Integer(key), obj); + put(new Integer(key), obj); + } + + /** + * Gets an entry. + * @param key the key of requested value + * @return the requested value + */ + public Object get(Integer key) { + return this.map.get(key); } /** @@ -67,7 +85,7 @@ public class PDFNumsArray extends PDFObject { * @return the requested value */ public Object get(int key) { - return this.map.get(new Integer(key)); + return get(new Integer(key)); } /** {@inheritDoc} */ |