Class COSObjectKey

java.lang.Object
org.sejda.sambox.cos.COSObjectKey
All Implemented Interfaces:
Comparable<COSObjectKey>

public final class COSObjectKey extends Object implements Comparable<COSObjectKey>
Object representing a key to identify a PDF object
Author:
Michael Traut
  • Constructor Details

    • COSObjectKey

      public COSObjectKey(long number, int generation)
      Parameters:
      number - The object number.
      generation - The object generation number.
  • Method Details

    • generation

      public int generation()
      Returns:
      The objects generation number.
    • objectNumber

      public long objectNumber()
      Returns:
      The object number
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

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

      public int compareTo(COSObjectKey other)
      Specified by:
      compareTo in interface Comparable<COSObjectKey>