Class AnnotationList
- java.lang.Object
-
- com.pdftools.toolbox.internal.NativeBase
-
- com.pdftools.toolbox.internal.NativeObject
-
- com.pdftools.toolbox.pdf.annotations.AnnotationList
-
- All Implemented Interfaces:
java.lang.Iterable<Annotation>
,java.util.Collection<Annotation>
,java.util.List<Annotation>
public class AnnotationList extends NativeObject implements java.util.List<Annotation>
A list of annotations
When a list oftoolbox.pdf.Page.getAnnotations
is obtained from a page that belongs to an output document, and this output document has been created withtoolbox.pdf.Document.createWithFdf
, then getting the list count and individual elements results in aUnsupportedOperationException
error. Only appending to the list is supported in this case.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(int index, Annotation element)
Not supported.boolean
add(Annotation element)
boolean
addAll(int index, java.util.Collection<? extends Annotation> elements)
boolean
addAll(java.util.Collection<? extends Annotation> elements)
void
clear()
Not supported.boolean
contains(java.lang.Object object)
boolean
containsAll(java.util.Collection<?> objects)
Annotation
get(int index)
int
indexOf(java.lang.Object obj)
boolean
isEmpty()
java.util.Iterator<Annotation>
iterator()
int
lastIndexOf(java.lang.Object obj)
java.util.ListIterator<Annotation>
listIterator()
java.util.ListIterator<Annotation>
listIterator(int index)
Annotation
remove(int index)
Not supported.boolean
remove(java.lang.Object object)
Not supported.boolean
removeAll(java.util.Collection<?> objects)
Not supported.boolean
retainAll(java.util.Collection<?> objects)
Not supported.Annotation
set(int index, Annotation element)
Not supported.int
size()
java.util.List<Annotation>
subList(int fromIndex, int toIndex)
java.lang.Object[]
toArray()
<T> T[]
toArray(T[] array)
-
Methods inherited from class com.pdftools.toolbox.internal.NativeObject
equals, hashCode
-
-
-
-
Method Detail
-
addAll
public boolean addAll(java.util.Collection<? extends Annotation> elements)
- Specified by:
addAll
in interfacejava.util.Collection<Annotation>
- Specified by:
addAll
in interfacejava.util.List<Annotation>
-
addAll
public boolean addAll(int index, java.util.Collection<? extends Annotation> elements)
- Specified by:
addAll
in interfacejava.util.List<Annotation>
-
contains
public boolean contains(java.lang.Object object)
- Specified by:
contains
in interfacejava.util.Collection<Annotation>
- Specified by:
contains
in interfacejava.util.List<Annotation>
-
containsAll
public boolean containsAll(java.util.Collection<?> objects)
- Specified by:
containsAll
in interfacejava.util.Collection<Annotation>
- Specified by:
containsAll
in interfacejava.util.List<Annotation>
-
isEmpty
public boolean isEmpty()
- Specified by:
isEmpty
in interfacejava.util.Collection<Annotation>
- Specified by:
isEmpty
in interfacejava.util.List<Annotation>
-
iterator
public java.util.Iterator<Annotation> iterator()
- Specified by:
iterator
in interfacejava.util.Collection<Annotation>
- Specified by:
iterator
in interfacejava.lang.Iterable<Annotation>
- Specified by:
iterator
in interfacejava.util.List<Annotation>
-
listIterator
public java.util.ListIterator<Annotation> listIterator()
- Specified by:
listIterator
in interfacejava.util.List<Annotation>
-
listIterator
public java.util.ListIterator<Annotation> listIterator(int index)
- Specified by:
listIterator
in interfacejava.util.List<Annotation>
-
remove
public boolean remove(java.lang.Object object)
Not supported.- Specified by:
remove
in interfacejava.util.Collection<Annotation>
- Specified by:
remove
in interfacejava.util.List<Annotation>
-
removeAll
public boolean removeAll(java.util.Collection<?> objects)
Not supported.- Specified by:
removeAll
in interfacejava.util.Collection<Annotation>
- Specified by:
removeAll
in interfacejava.util.List<Annotation>
-
retainAll
public boolean retainAll(java.util.Collection<?> objects)
Not supported.- Specified by:
retainAll
in interfacejava.util.Collection<Annotation>
- Specified by:
retainAll
in interfacejava.util.List<Annotation>
-
subList
public java.util.List<Annotation> subList(int fromIndex, int toIndex)
- Specified by:
subList
in interfacejava.util.List<Annotation>
-
toArray
public java.lang.Object[] toArray()
- Specified by:
toArray
in interfacejava.util.Collection<Annotation>
- Specified by:
toArray
in interfacejava.util.List<Annotation>
-
toArray
public <T> T[] toArray(T[] array)
- Specified by:
toArray
in interfacejava.util.Collection<Annotation>
- Specified by:
toArray
in interfacejava.util.List<Annotation>
-
size
public int size()
- Specified by:
size
in interfacejava.util.Collection<Annotation>
- Specified by:
size
in interfacejava.util.List<Annotation>
-
clear
public void clear()
Not supported.- Specified by:
clear
in interfacejava.util.Collection<Annotation>
- Specified by:
clear
in interfacejava.util.List<Annotation>
-
indexOf
public int indexOf(java.lang.Object obj)
- Specified by:
indexOf
in interfacejava.util.List<Annotation>
-
lastIndexOf
public int lastIndexOf(java.lang.Object obj)
- Specified by:
lastIndexOf
in interfacejava.util.List<Annotation>
-
add
public boolean add(Annotation element)
- Specified by:
add
in interfacejava.util.Collection<Annotation>
- Specified by:
add
in interfacejava.util.List<Annotation>
-
add
public void add(int index, Annotation element)
Not supported.- Specified by:
add
in interfacejava.util.List<Annotation>
-
get
public Annotation get(int index)
- Specified by:
get
in interfacejava.util.List<Annotation>
-
remove
public Annotation remove(int index)
Not supported.- Specified by:
remove
in interfacejava.util.List<Annotation>
-
set
public Annotation set(int index, Annotation element)
Not supported.- Specified by:
set
in interfacejava.util.List<Annotation>
-
-