|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.pdfbox.pdmodel.documentinterchange.logicalstructure.Revisions<T>
T - the type of object to store the revision numbers withpublic class Revisions<T>
| Constructor Summary | |
|---|---|
Revisions()
|
|
| Method Summary | |
|---|---|
void |
addObject(T object,
int revisionNumber)
Adds an object with a specified revision number. |
T |
getObject(int index)
Returns the object at the specified position. |
int |
getRevisionNumber(int index)
Returns the revision number at the specified position. |
protected void |
setRevisionNumber(T object,
int revisionNumber)
Sets the revision number of a specified object. |
int |
size()
Returns the size. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Revisions()
| Method Detail |
|---|
public T getObject(int index)
throws IndexOutOfBoundsException
index - the position
IndexOutOfBoundsException - if the index is out of range
public int getRevisionNumber(int index)
throws IndexOutOfBoundsException
index - the position
IndexOutOfBoundsException - if the index is out of range
public void addObject(T object,
int revisionNumber)
object - the objectrevisionNumber - the revision number
protected void setRevisionNumber(T object,
int revisionNumber)
object - the objectrevisionNumber - the revision numberpublic int size()
public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||