Class COSObjectKey

  • All Implemented Interfaces:
    java.lang.Comparable<COSObjectKey>

    public class COSObjectKey
    extends java.lang.Object
    implements java.lang.Comparable<COSObjectKey>
    Object representing the physical reference to an indirect pdf object.
    Version:
    $Revision: 1.5 $
    Author:
    Michael Traut
    • Constructor Summary

      Constructors 
      Constructor Description
      COSObjectKey​(long num, long gen)
      PDFObjectKey constructor comment.
      COSObjectKey​(COSObject object)
      PDFObjectKey constructor comment.
    • Constructor Detail

      • COSObjectKey

        public COSObjectKey​(COSObject object)
        PDFObjectKey constructor comment.
        Parameters:
        object - The object that this key will represent.
      • COSObjectKey

        public COSObjectKey​(long num,
                            long gen)
        PDFObjectKey constructor comment.
        Parameters:
        num - The object number.
        gen - The object generation number.
    • Method Detail

      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • getGeneration

        public long getGeneration()
        This will get the generation number.
        Returns:
        The objects generation number.
      • getNumber

        public long getNumber()
        This will get the objects id.
        Returns:
        The object's id.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • setGeneration

        public void setGeneration​(long newGeneration)
        This will set the objects generation number.
        Parameters:
        newGeneration - The objects generation number.
      • setNumber

        public void setNumber​(long newNumber)
        This will set the objects id.
        Parameters:
        newNumber - The objects number.
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • compareTo

        public int compareTo​(COSObjectKey other)
        Specified by:
        compareTo in interface java.lang.Comparable<COSObjectKey>