This is an implementation of a List that will sync its contents to a COSArray.
add
public boolean add(Object o)
add
public void add(int index,
Object element)
addAll
public boolean addAll(Collection c)
addAll
public boolean addAll(int index,
Collection c)
contains
public boolean contains(Object o)
containsAll
public boolean containsAll(Collection c)
convertCOSNameCOSArrayToList
public static List convertCOSNameCOSArrayToList(COSArray nameArray)
This will take an array of COSName and return a COSArrayList of
java.lang.String values.
nameArray
- The existing name Array.
- The list of String objects.
convertCOSStringCOSArrayToList
public static List convertCOSStringCOSArrayToList(COSArray stringArray)
This will take an array of COSString and return a COSArrayList of
java.lang.String values.
stringArray
- The existing name Array.
- The list of String objects.
convertFloatCOSArrayToList
public static List convertFloatCOSArrayToList(COSArray floatArray)
This will take an array of COSNumbers and return a COSArrayList of
java.lang.Float values.
floatArray
- The existing float Array.
- The list of Float objects.
convertIntegerCOSArrayToList
public static List convertIntegerCOSArrayToList(COSArray intArray)
This will take an array of COSNumbers and return a COSArrayList of
java.lang.Integer values.
intArray
- The existing integer Array.
- A list that is part of the core Java collections.
convertStringListToCOSNameCOSArray
public static COSArray convertStringListToCOSNameCOSArray(List strings)
This will take an list of string objects and return a COSArray of COSName
objects.
strings
- A list of strings
- An array of COSName objects
convertStringListToCOSStringCOSArray
public static COSArray convertStringListToCOSStringCOSArray(List strings)
This will take an list of string objects and return a COSArray of COSName
objects.
strings
- A list of strings
- An array of COSName objects
converterToCOSArray
public static COSArray converterToCOSArray(List cosObjectableList)
This will convert a list of COSObjectables to an
array list of COSBase objects.
cosObjectableList
- A list of COSObjectable.
equals
public boolean equals(Object o)
get
public Object get(int index)
hashCode
public int hashCode()
indexOf
public int indexOf(Object o)
isEmpty
public boolean isEmpty()
iterator
public Iterator iterator()
lastIndexOf
public int lastIndexOf(Object o)
listIterator
public ListIterator listIterator()
listIterator
public ListIterator listIterator(int index)
remove
public boolean remove(Object o)
remove
public Object remove(int index)
removeAll
public boolean removeAll(Collection c)
retainAll
public boolean retainAll(Collection c)
set
public Object set(int index,
Object element)
subList
public List subList(int fromIndex,
int toIndex)
toArray
public Object[] toArray()
toArray
public Object[] toArray(Object[] a)