|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.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(List actualList,
COSArray cosArray)
Constructor. |
|
COSArrayList(Object actualObject,
COSBase item,
COSDictionary dictionary,
String dictionaryKey)
This is a really special constructor. |
Method Summary | |
---|---|
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)
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
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, String 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.Method Detail |
---|
public int size()
size
in interface Collection
size
in interface List
List.size()
public boolean isEmpty()
isEmpty
in interface Collection
isEmpty
in interface List
List.isEmpty()
public boolean contains(Object o)
contains
in interface Collection
contains
in interface List
List.contains( Object )
public Iterator iterator()
iterator
in interface Iterable
iterator
in interface Collection
iterator
in interface List
List.iterator()
public Object[] toArray()
toArray
in interface Collection
toArray
in interface List
List.toArray()
public Object[] toArray(Object[] a)
toArray
in interface Collection
toArray
in interface List
List.toArray( Object[] )
public boolean add(Object o)
add
in interface Collection
add
in interface List
List.add( Object )
public boolean remove(Object o)
remove
in interface Collection
remove
in interface List
List.remove( Object )
public boolean containsAll(Collection c)
containsAll
in interface Collection
containsAll
in interface List
List.containsAll( Collection )
public boolean addAll(Collection c)
addAll
in interface Collection
addAll
in interface List
List.addAll( Collection )
public boolean addAll(int index, Collection c)
addAll
in interface List
List.addAll( int, Collection )
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 strings
public static COSArray convertStringListToCOSStringCOSArray(List 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
removeAll
in interface List
List.removeAll( Collection )
public boolean retainAll(Collection c)
retainAll
in interface Collection
retainAll
in interface List
List.retainAll( Collection )
public void clear()
clear
in interface Collection
clear
in interface List
List.clear()
public boolean equals(Object o)
equals
in interface Collection
equals
in interface List
equals
in class Object
List.equals( Object )
public int hashCode()
hashCode
in interface Collection
hashCode
in interface List
hashCode
in class Object
List.hashCode()
public Object get(int index)
get
in interface List
List.get( int )
public Object set(int index, Object element)
set
in interface List
List.set( int, Object )
public void add(int index, Object element)
add
in interface List
List.add( int, Object )
public Object remove(int index)
remove
in interface List
List.remove( int )
public int indexOf(Object o)
indexOf
in interface List
List.indexOf( Object )
public int lastIndexOf(Object o)
lastIndexOf
in interface List
List.lastIndexOf( Object )
public ListIterator listIterator()
listIterator
in interface List
List.listIterator()
public ListIterator listIterator(int index)
listIterator
in interface List
List.listIterator( int )
public List subList(int fromIndex, int toIndex)
subList
in interface List
List.subList( int, int )
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |