|
||||||||||
| 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,
String dictionaryKey)
Deprecated. use the COSArrayList(Object, COSBase, COSDictionary, COSName) method instead |
|
COSArrayList(List<E> actualList,
COSArray cosArray)
Constructor. |
|
| Method Summary | ||
|---|---|---|
boolean |
add(E o)
|
|
void |
add(int index,
E element)
|
|
boolean |
addAll(Collection<? extends E> c)
|
|
boolean |
addAll(int index,
Collection<? extends E> c)
|
|
void |
clear()
|
|
boolean |
contains(Object o)
|
|
boolean |
containsAll(Collection<?> c)
|
|
static List<String> |
convertCOSNameCOSArrayToList(COSArray nameArray)
This will take an array of COSName and return a COSArrayList of java.lang.String values. |
|
static List<String> |
convertCOSStringCOSArrayToList(COSArray stringArray)
This will take an array of COSString and return a COSArrayList of java.lang.String values. |
|
static COSArray |
converterToCOSArray(List<?> cosObjectableList)
This will convert a list of COSObjectables to an array list of COSBase objects. |
|
static List<Float> |
convertFloatCOSArrayToList(COSArray floatArray)
This will take an array of COSNumbers and return a COSArrayList of java.lang.Float values. |
|
static List<Integer> |
convertIntegerCOSArrayToList(COSArray intArray)
This will take an array of COSNumbers and return a COSArrayList of java.lang.Integer values. |
|
static COSArray |
convertStringListToCOSNameCOSArray(List<String> strings)
This will take an list of string objects and return a COSArray of COSName objects. |
|
static COSArray |
convertStringListToCOSStringCOSArray(List<String> strings)
This will take an list of string objects and return a COSArray of COSName objects. |
|
boolean |
equals(Object o)
|
|
E |
get(int index)
|
|
int |
hashCode()
|
|
int |
indexOf(Object o)
|
|
boolean |
isEmpty()
|
|
Iterator<E> |
iterator()
|
|
int |
lastIndexOf(Object o)
|
|
ListIterator<E> |
listIterator()
|
|
ListIterator<E> |
listIterator(int index)
|
|
E |
remove(int index)
|
|
boolean |
remove(Object o)
|
|
boolean |
removeAll(Collection<?> c)
|
|
boolean |
retainAll(Collection<?> c)
|
|
E |
set(int index,
E element)
|
|
int |
size()
|
|
List<E> |
subList(int fromIndex,
int toIndex)
|
|
Object[] |
toArray()
|
|
|
toArray(X[] a)
|
|
COSArray |
toList()
This will return then underlying COSArray. |
|
String |
toString()
|
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public COSArrayList()
public COSArrayList(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,
String dictionaryKey)
COSArrayList(Object, COSBase, COSDictionary, COSName) method instead
| Method Detail |
|---|
public int size()
size in interface Collection<E>size in interface List<E>public boolean isEmpty()
isEmpty in interface Collection<E>isEmpty in interface List<E>public boolean contains(Object o)
contains in interface Collection<E>contains in interface List<E>public Iterator<E> iterator()
iterator in interface Iterable<E>iterator in interface Collection<E>iterator in interface List<E>public Object[] toArray()
toArray in interface Collection<E>toArray in interface List<E>public <X> X[] toArray(X[] a)
toArray in interface Collection<E>toArray in interface List<E>public boolean add(E o)
add in interface Collection<E>add in interface List<E>public boolean remove(Object o)
remove in interface Collection<E>remove in interface List<E>public boolean containsAll(Collection<?> c)
containsAll in interface Collection<E>containsAll in interface List<E>public boolean addAll(Collection<? extends E> c)
addAll in interface Collection<E>addAll in interface List<E>
public boolean addAll(int index,
Collection<? extends E> c)
addAll in interface List<E>public static List<Integer> convertIntegerCOSArrayToList(COSArray intArray)
intArray - The existing integer Array.
public static List<Float> convertFloatCOSArrayToList(COSArray floatArray)
floatArray - The existing float Array.
public static List<String> convertCOSNameCOSArrayToList(COSArray nameArray)
nameArray - The existing name Array.
public static List<String> convertCOSStringCOSArrayToList(COSArray stringArray)
stringArray - The existing name Array.
public static COSArray convertStringListToCOSNameCOSArray(List<String> strings)
strings - A list of strings
public static COSArray convertStringListToCOSStringCOSArray(List<String> strings)
strings - A list of strings
public static COSArray converterToCOSArray(List<?> cosObjectableList)
cosObjectableList - A list of COSObjectable.
public boolean removeAll(Collection<?> c)
removeAll in interface Collection<E>removeAll in interface List<E>public boolean retainAll(Collection<?> c)
retainAll in interface Collection<E>retainAll in interface List<E>public void clear()
clear in interface Collection<E>clear in interface List<E>public boolean equals(Object o)
equals in interface Collection<E>equals in interface List<E>equals in class Objectpublic int hashCode()
hashCode in interface Collection<E>hashCode in interface List<E>hashCode in class Objectpublic E get(int index)
get in interface List<E>
public E set(int index,
E element)
set in interface List<E>
public void add(int index,
E element)
add in interface List<E>public E remove(int index)
remove in interface List<E>public int indexOf(Object o)
indexOf in interface List<E>public int lastIndexOf(Object o)
lastIndexOf in interface List<E>public ListIterator<E> listIterator()
listIterator in interface List<E>public ListIterator<E> listIterator(int index)
listIterator in interface List<E>
public List<E> subList(int fromIndex,
int toIndex)
subList in interface List<E>public String toString()
toString in class Objectpublic COSArray toList()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||