|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.pdfbox.pdmodel.common.COSArrayList
public class COSArrayList
This is an implementation of a List that will sync its contents to a COSArray.
Constructor Summary | |
---|---|
COSArrayList()
Default constructor. |
|
COSArrayList(java.util.List actualList,
COSArray cosArray)
Constructor. |
|
COSArrayList(java.lang.Object actualObject,
COSBase item,
COSDictionary dictionary,
COSName dictionaryKey)
This is a really special constructor. |
|
COSArrayList(java.lang.Object actualObject,
COSBase item,
COSDictionary dictionary,
java.lang.String dictionaryKey)
Deprecated. use the COSArrayList(Object, COSBase, COSDictionary, COSName) method instead |
Method Summary | |
---|---|
void |
add(int index,
java.lang.Object element)
|
boolean |
add(java.lang.Object o)
|
boolean |
addAll(java.util.Collection c)
|
boolean |
addAll(int index,
java.util.Collection c)
|
void |
clear()
|
boolean |
contains(java.lang.Object o)
|
boolean |
containsAll(java.util.Collection c)
|
static java.util.List |
convertCOSNameCOSArrayToList(COSArray nameArray)
This will take an array of COSName and return a COSArrayList of java.lang.String values. |
static java.util.List |
convertCOSStringCOSArrayToList(COSArray stringArray)
This will take an array of COSString and return a COSArrayList of java.lang.String values. |
static COSArray |
converterToCOSArray(java.util.List cosObjectableList)
This will convert a list of COSObjectables to an array list of COSBase objects. |
static java.util.List |
convertFloatCOSArrayToList(COSArray floatArray)
This will take an array of COSNumbers and return a COSArrayList of java.lang.Float values. |
static java.util.List |
convertIntegerCOSArrayToList(COSArray intArray)
This will take an array of COSNumbers and return a COSArrayList of java.lang.Integer values. |
static COSArray |
convertStringListToCOSNameCOSArray(java.util.List strings)
This will take an list of string objects and return a COSArray of COSName objects. |
static COSArray |
convertStringListToCOSStringCOSArray(java.util.List strings)
This will take an list of string objects and return a COSArray of COSName objects. |
boolean |
equals(java.lang.Object o)
|
java.lang.Object |
get(int index)
|
int |
hashCode()
|
int |
indexOf(java.lang.Object o)
|
boolean |
isEmpty()
|
java.util.Iterator |
iterator()
|
int |
lastIndexOf(java.lang.Object o)
|
java.util.ListIterator |
listIterator()
|
java.util.ListIterator |
listIterator(int index)
|
java.lang.Object |
remove(int index)
|
boolean |
remove(java.lang.Object o)
|
boolean |
removeAll(java.util.Collection c)
|
boolean |
retainAll(java.util.Collection c)
|
java.lang.Object |
set(int index,
java.lang.Object element)
|
int |
size()
|
java.util.List |
subList(int fromIndex,
int toIndex)
|
java.lang.Object[] |
toArray()
|
java.lang.Object[] |
toArray(java.lang.Object[] a)
|
COSArray |
toList()
This will return then underlying COSArray. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public COSArrayList()
public COSArrayList(java.util.List actualList, COSArray cosArray)
actualList
- The list of standard java objectscosArray
- The COS array object to sync to.public COSArrayList(java.lang.Object actualObject, COSBase item, COSDictionary dictionary, COSName dictionaryKey)
actualObject
- The PDModel object.item
- The COS Model object.dictionary
- The dictionary that holds the item, and will hold the array if an item is added.dictionaryKey
- The key into the dictionary to set the item.public COSArrayList(java.lang.Object actualObject, COSBase item, COSDictionary dictionary, java.lang.String dictionaryKey)
COSArrayList(Object, COSBase, COSDictionary, COSName)
method instead
Method Detail |
---|
public int size()
size
in interface java.util.Collection
size
in interface java.util.List
public boolean isEmpty()
isEmpty
in interface java.util.Collection
isEmpty
in interface java.util.List
public boolean contains(java.lang.Object o)
contains
in interface java.util.Collection
contains
in interface java.util.List
public java.util.Iterator iterator()
iterator
in interface java.lang.Iterable
iterator
in interface java.util.Collection
iterator
in interface java.util.List
public java.lang.Object[] toArray()
toArray
in interface java.util.Collection
toArray
in interface java.util.List
public java.lang.Object[] toArray(java.lang.Object[] a)
toArray
in interface java.util.Collection
toArray
in interface java.util.List
public boolean add(java.lang.Object o)
add
in interface java.util.Collection
add
in interface java.util.List
public boolean remove(java.lang.Object o)
remove
in interface java.util.Collection
remove
in interface java.util.List
public boolean containsAll(java.util.Collection c)
containsAll
in interface java.util.Collection
containsAll
in interface java.util.List
public boolean addAll(java.util.Collection c)
addAll
in interface java.util.Collection
addAll
in interface java.util.List
public boolean addAll(int index, java.util.Collection c)
addAll
in interface java.util.List
public static java.util.List convertIntegerCOSArrayToList(COSArray intArray)
intArray
- The existing integer Array.
public static java.util.List convertFloatCOSArrayToList(COSArray floatArray)
floatArray
- The existing float Array.
public static java.util.List convertCOSNameCOSArrayToList(COSArray nameArray)
nameArray
- The existing name Array.
public static java.util.List convertCOSStringCOSArrayToList(COSArray stringArray)
stringArray
- The existing name Array.
public static COSArray convertStringListToCOSNameCOSArray(java.util.List strings)
strings
- A list of strings
public static COSArray convertStringListToCOSStringCOSArray(java.util.List strings)
strings
- A list of strings
public static COSArray converterToCOSArray(java.util.List cosObjectableList)
cosObjectableList
- A list of COSObjectable.
public boolean removeAll(java.util.Collection c)
removeAll
in interface java.util.Collection
removeAll
in interface java.util.List
public boolean retainAll(java.util.Collection c)
retainAll
in interface java.util.Collection
retainAll
in interface java.util.List
public void clear()
clear
in interface java.util.Collection
clear
in interface java.util.List
public boolean equals(java.lang.Object o)
equals
in interface java.util.Collection
equals
in interface java.util.List
equals
in class java.lang.Object
public int hashCode()
hashCode
in interface java.util.Collection
hashCode
in interface java.util.List
hashCode
in class java.lang.Object
public java.lang.Object get(int index)
get
in interface java.util.List
public java.lang.Object set(int index, java.lang.Object element)
set
in interface java.util.List
public void add(int index, java.lang.Object element)
add
in interface java.util.List
public java.lang.Object remove(int index)
remove
in interface java.util.List
public int indexOf(java.lang.Object o)
indexOf
in interface java.util.List
public int lastIndexOf(java.lang.Object o)
lastIndexOf
in interface java.util.List
public java.util.ListIterator listIterator()
listIterator
in interface java.util.List
public java.util.ListIterator listIterator(int index)
listIterator
in interface java.util.List
public java.util.List subList(int fromIndex, int toIndex)
subList
in interface java.util.List
public java.lang.String toString()
toString
in class java.lang.Object
public COSArray toList()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |