public class COSArrayList extends Object implements List
| Constructor and Description |
|---|
COSArrayList()
Default constructor.
|
COSArrayList(List actualList,
COSArray cosArray)
Constructor.
|
COSArrayList(Object actualObject,
COSBase item,
COSDictionary dictionary,
COSName dictionaryKey)
This is a really special constructor.
|
COSArrayList(Object actualObject,
COSBase item,
COSDictionary dictionary,
String dictionaryKey)
Deprecated.
use the
COSArrayList(Object, COSBase, COSDictionary, COSName) method instead |
| Modifier and Type | Method and Description |
|---|---|
void |
add(int index,
Object element) |
boolean |
add(Object o) |
boolean |
addAll(Collection c) |
boolean |
addAll(int index,
Collection c) |
void |
clear() |
boolean |
contains(Object o) |
boolean |
containsAll(Collection c) |
static List |
convertCOSNameCOSArrayToList(COSArray nameArray)
This will take an array of COSName and return a COSArrayList of
java.lang.String values.
|
static List |
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 |
convertFloatCOSArrayToList(COSArray floatArray)
This will take an array of COSNumbers and return a COSArrayList of
java.lang.Float values.
|
static List |
convertIntegerCOSArrayToList(COSArray intArray)
This will take an array of COSNumbers and return a COSArrayList of
java.lang.Integer values.
|
static COSArray |
convertStringListToCOSNameCOSArray(List strings)
This will take an list of string objects and return a COSArray of COSName
objects.
|
static COSArray |
convertStringListToCOSStringCOSArray(List strings)
This will take an list of string objects and return a COSArray of COSName
objects.
|
boolean |
equals(Object o) |
Object |
get(int index) |
int |
hashCode() |
int |
indexOf(Object o) |
boolean |
isEmpty() |
Iterator |
iterator() |
int |
lastIndexOf(Object o) |
ListIterator |
listIterator() |
ListIterator |
listIterator(int index) |
Object |
remove(int index) |
boolean |
remove(Object o) |
boolean |
removeAll(Collection c) |
boolean |
retainAll(Collection c) |
Object |
set(int index,
Object element) |
int |
size() |
List |
subList(int fromIndex,
int toIndex) |
Object[] |
toArray() |
Object[] |
toArray(Object[] a) |
COSArray |
toList()
This will return then underlying COSArray.
|
String |
toString() |
public COSArrayList()
public COSArrayList(List actualList, COSArray cosArray)
actualList - The list of standard java objectscosArray - The COS array object to sync to.public COSArrayList(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(Object actualObject, COSBase item, COSDictionary dictionary, String dictionaryKey)
COSArrayList(Object, COSBase, COSDictionary, COSName) method insteadpublic int size()
size in interface Collectionsize in interface Listpublic boolean isEmpty()
isEmpty in interface CollectionisEmpty in interface Listpublic boolean contains(Object o)
contains in interface Collectioncontains in interface Listpublic Iterator iterator()
public Object[] toArray()
toArray in interface CollectiontoArray in interface Listpublic Object[] toArray(Object[] a)
toArray in interface CollectiontoArray in interface Listpublic boolean add(Object o)
add in interface Collectionadd in interface Listpublic boolean remove(Object o)
remove in interface Collectionremove in interface Listpublic boolean containsAll(Collection c)
containsAll in interface CollectioncontainsAll in interface Listpublic boolean addAll(Collection c)
addAll in interface CollectionaddAll in interface Listpublic boolean addAll(int index,
Collection c)
public static List convertIntegerCOSArrayToList(COSArray intArray)
intArray - The existing integer Array.public static List convertFloatCOSArrayToList(COSArray floatArray)
floatArray - The existing float Array.public static List convertCOSNameCOSArrayToList(COSArray nameArray)
nameArray - The existing name Array.public static List convertCOSStringCOSArrayToList(COSArray stringArray)
stringArray - The existing name Array.public static COSArray convertStringListToCOSNameCOSArray(List strings)
strings - A list of stringspublic static COSArray convertStringListToCOSStringCOSArray(List strings)
strings - A list of stringspublic static COSArray converterToCOSArray(List cosObjectableList)
cosObjectableList - A list of COSObjectable.public boolean removeAll(Collection c)
removeAll in interface CollectionremoveAll in interface Listpublic boolean retainAll(Collection c)
retainAll in interface CollectionretainAll in interface Listpublic void clear()
clear in interface Collectionclear in interface Listpublic boolean equals(Object o)
public int hashCode()
public int lastIndexOf(Object o)
lastIndexOf in interface Listpublic ListIterator listIterator()
listIterator in interface Listpublic ListIterator listIterator(int index)
listIterator in interface Listpublic COSArray toList()
Copyright © 2002-2012 Apache Software Foundation. All Rights Reserved.