"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "pdfbox/src/main/java/org/apache/pdfbox/cos/COSObjectKey.java" between
pdfbox-2.0.23-src.zip and pdfbox-2.0.24-src.zip

About: Apache PDFBox is a Java PDF library tool that allows creation of new PDF documents, manipulation of existing documents and the ability to extract content from documents.

COSObjectKey.java  (pdfbox-2.0.23-src):COSObjectKey.java  (pdfbox-2.0.24-src)
skipping to change at line 78 skipping to change at line 78
*/ */
public int getGeneration() public int getGeneration()
{ {
return generation; return generation;
} }
/** /**
* This will set the generation number. It is intended for fixes only. * This will set the generation number. It is intended for fixes only.
* *
* @param genNumber the new generation number. * @param genNumber the new generation number.
*
* @deprecated will be removed in the next major release
*/ */
public void fixGeneration(int genNumber) public void fixGeneration(int genNumber)
{ {
generation = genNumber; generation = genNumber;
} }
/** /**
* This will get the objects id. * This will get the objects id.
* *
* @return The object's id. * @return The object's id.
skipping to change at line 108 skipping to change at line 110
public int hashCode() public int hashCode()
{ {
// most likely generation is 0. Shift number 4 times (fast as multiply) // most likely generation is 0. Shift number 4 times (fast as multiply)
// to support generation numbers up to 15 // to support generation numbers up to 15
return Long.valueOf((number << 4) + generation).hashCode(); return Long.valueOf((number << 4) + generation).hashCode();
} }
@Override @Override
public String toString() public String toString()
{ {
return Long.toString(number) + " " + Integer.toString(generation) + " R "; return number + " " + generation + " R";
} }
@Override @Override
public int compareTo(COSObjectKey other) public int compareTo(COSObjectKey other)
{ {
if (getNumber() < other.getNumber()) if (getNumber() < other.getNumber())
{ {
return -1; return -1;
} }
else if (getNumber() > other.getNumber()) else if (getNumber() > other.getNumber())
 End of changes. 2 change blocks. 
1 lines changed or deleted 3 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)