|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.pdfbox.pdmodel.common.COSArrayList<E>
public class COSArrayList<E>
This is an implementation of a List that will sync its contents to a COSArray.
Constructor Summary | |
---|---|
COSArrayList()
Default constructor. |
|
COSArrayList(E actualObject,
COSBase item,
COSDictionary dictionary,
COSName dictionaryKey)
This is a really special constructor. |
|
COSArrayList(E actualObject,
COSBase item,
COSDictionary dictionary,
java.lang.String dictionaryKey)
Deprecated. use the #COSArrayList(E, COSBase, COSDictionary, COSName) method instead |
|
COSArrayList(java.util.List<E> actualList,
COSArray cosArray)
Constructor. |
Method Summary | ||
---|---|---|
boolean |
add(E o)
|
|
void |
add(int index,
E element)
|
|
boolean |
addAll(java.util.Collection<? extends E> c)
|
|
boolean |
addAll(int index,
java.util.Collection<? extends E> c)
|
|
void |
clear()
|
|
boolean |
contains(java.lang.Object o)
|
|
boolean |
containsAll(java.util.Collection<?> c)
|
|
static java.util.List<java.lang.String> |
convertCOSNameCOSArrayToList(COSArray nameArray)
This will take an array of COSName and return a COSArrayList of java.lang.String values. |
|
static java.util.List<java.lang.String> |
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<java.lang.Float> |
convertFloatCOSArrayToList(COSArray floatArray)
This will take an array of COSNumbers and return a COSArrayList of java.lang.Float values. |
|
static java.util.List<java.lang.Integer> |
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<java.lang.String> strings)
This will take an list of string objects and return a COSArray of COSName objects. |
|
static COSArray |
convertStringListToCOSStringCOSArray(java.util.List<java.lang.String> strings)
This will take an list of string objects and return a COSArray of COSName objects. |
|
boolean |
equals(java.lang.Object o)
|
|
E |
get(int index)
|
|
int |
hashCode()
|
|
int |
indexOf(java.lang.Object o)
|
|
boolean |
isEmpty()
|
|
java.util.Iterator<E> |
iterator()
|
|
int |
lastIndexOf(java.lang.Object o)
|
|
java.util.ListIterator<E> |
listIterator()
|
|
java.util.ListIterator<E> |
listIterator(int index)
|
|
E |
remove(int index)
|
|
boolean |
remove(java.lang.Object o)
|
|
boolean |
removeAll(java.util.Collection<?> c)
|
|
boolean |
retainAll(java.util.Collection<?> c)
|
|
E |
set(int index,
E element)
|
|
int |
size()
|
|
java.util.List<E> |
subList(int fromIndex,
int toIndex)
|
|
java.lang.Object[] |
toArray()
|
|
|
toArray(X[] 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<E> actualList, COSArray cosArray)
actualList
- The list of standard java objectscosArray
- The COS array object to sync to.public COSArrayList(E 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(E actualObject, COSBase item, COSDictionary dictionary, java.lang.String dictionaryKey)
#COSArrayList(E, COSBase, COSDictionary, COSName)
method instead
Method Detail |
---|
public int size()
size
in interface java.util.Collection<E>
size
in interface java.util.List<E>
public boolean isEmpty()
isEmpty
in interface java.util.Collection<E>
isEmpty
in interface java.util.List<E>
public boolean contains(java.lang.Object o)
contains
in interface java.util.Collection<E>
contains
in interface java.util.List<E>
public java.util.Iterator<E> iterator()
iterator
in interface java.lang.Iterable<E>
iterator
in interface java.util.Collection<E>
iterator
in interface java.util.List<E>
public java.lang.Object[] toArray()
toArray
in interface java.util.Collection<E>
toArray
in interface java.util.List<E>
public <X> X[] toArray(X[] a)
toArray
in interface java.util.Collection<E>
toArray
in interface java.util.List<E>
public boolean add(E o)
add
in interface java.util.Collection<E>
add
in interface java.util.List<E>
public boolean remove(java.lang.Object o)
remove
in interface java.util.Collection<E>
remove
in interface java.util.List<E>
public boolean containsAll(java.util.Collection<?> c)
containsAll
in interface java.util.Collection<E>
containsAll
in interface java.util.List<E>
public boolean addAll(java.util.Collection<? extends E> c)
addAll
in interface java.util.Collection<E>
addAll
in interface java.util.List<E>
public boolean addAll(int index, java.util.Collection<? extends E> c)
addAll
in interface java.util.List<E>
public static java.util.List<java.lang.Integer> convertIntegerCOSArrayToList(COSArray intArray)
intArray
- The existing integer Array.
public static java.util.List<java.lang.Float> convertFloatCOSArrayToList(COSArray floatArray)
floatArray
- The existing float Array.
public static java.util.List<java.lang.String> convertCOSNameCOSArrayToList(COSArray nameArray)
nameArray
- The existing name Array.
public static java.util.List<java.lang.String> convertCOSStringCOSArrayToList(COSArray stringArray)
stringArray
- The existing name Array.
public static COSArray convertStringListToCOSNameCOSArray(java.util.List<java.lang.String> strings)
strings
- A list of strings
public static COSArray convertStringListToCOSStringCOSArray(java.util.List<java.lang.String> 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<E>
removeAll
in interface java.util.List<E>
public boolean retainAll(java.util.Collection<?> c)
retainAll
in interface java.util.Collection<E>
retainAll
in interface java.util.List<E>
public void clear()
clear
in interface java.util.Collection<E>
clear
in interface java.util.List<E>
public boolean equals(java.lang.Object o)
equals
in interface java.util.Collection<E>
equals
in interface java.util.List<E>
equals
in class java.lang.Object
public int hashCode()
hashCode
in interface java.util.Collection<E>
hashCode
in interface java.util.List<E>
hashCode
in class java.lang.Object
public E get(int index)
get
in interface java.util.List<E>
public E set(int index, E element)
set
in interface java.util.List<E>
public void add(int index, E element)
add
in interface java.util.List<E>
public E remove(int index)
remove
in interface java.util.List<E>
public int indexOf(java.lang.Object o)
indexOf
in interface java.util.List<E>
public int lastIndexOf(java.lang.Object o)
lastIndexOf
in interface java.util.List<E>
public java.util.ListIterator<E> listIterator()
listIterator
in interface java.util.List<E>
public java.util.ListIterator<E> listIterator(int index)
listIterator
in interface java.util.List<E>
public java.util.List<E> subList(int fromIndex, int toIndex)
subList
in interface java.util.List<E>
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 |