Module org.sejda.sambox
Class Revisions<T>
java.lang.Object
org.sejda.sambox.pdmodel.documentinterchange.logicalstructure.Revisions<T>
- Type Parameters:
T- the type of object to store the revision numbers with
- Author:
- Johannes Koch
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAdds an object with a specified revision number.getObject(int index) Returns the object at the specified position.intgetRevisionNumber(int index) Returns the revision number at the specified position.protected voidsetRevisionNumber(T object, int revisionNumber) Sets the revision number of a specified object.intsize()Returns the size.toString()
-
Constructor Details
-
Revisions
public Revisions()
-
-
Method Details
-
getObject
Returns the object at the specified position.- Parameters:
index- the position- Returns:
- the object
- Throws:
IndexOutOfBoundsException- if the index is out of range
-
getRevisionNumber
public int getRevisionNumber(int index) Returns the revision number at the specified position.- Parameters:
index- the position- Returns:
- the revision number
- Throws:
IndexOutOfBoundsException- if the index is out of range
-
addObject
Adds an object with a specified revision number.- Parameters:
object- the objectrevisionNumber- the revision number
-
setRevisionNumber
Sets the revision number of a specified object.- Parameters:
object- the objectrevisionNumber- the revision number
-
size
public int size()Returns the size.- Returns:
- the size
-
toString
-