Package org.xlsx4j.sml
Class ArrayListSml<E>
java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractList<E>
java.util.ArrayList<E>
org.xlsx4j.sml.ArrayListSml<E>
- Type Parameters:
E-
- All Implemented Interfaces:
Serializable,Cloneable,Iterable<E>,Collection<E>,List<E>,RandomAccess
Collection which sets parent correctly
- Since:
- 3.3.3
- Author:
- jharrop
- See Also:
-
Field Summary
Fields inherited from class java.util.AbstractList
modCount -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidInserts the specified element at the specified position in this list, checking for common content errors, and setting parent correctly.booleanAppends the specified element to the end of this list, checking for common content errors, and setting parent correctly.booleanaddAll(int index, Collection<? extends E> c) Inserts all of the elements in the specified collection into this list (checking for common content errors etc), starting at the specified position.booleanaddAll(Collection<? extends E> c) Appends all of the elements in the specified collection to the end of this list, checking for common content errors, and setting parent correctly.booleanReturns true if this list contains the specified element (or a JAXBElement containing it).intReturns the index of the first occurrence of the specified element (or a JAXBElement containing it) in this list, or -1 if this list does not contain the element.intReturns the index of the last occurrence of the specified element (or a JAXBElement containing it) in this list, or -1 if this list does not contain the element.booleanRemoves the first occurrence of the specified element (or a JAXBElement containing it) from this list, if it is present.booleanremoveAll(Collection<?> c) booleanretainAll(Collection<?> c) Replaces the element at the specified position in this list with the specified element, checking for common content errors, and setting parent correctly.Methods inherited from class java.util.ArrayList
clear, clone, ensureCapacity, equals, forEach, get, hashCode, isEmpty, iterator, listIterator, listIterator, remove, removeIf, removeRange, replaceAll, size, sort, spliterator, subList, toArray, toArray, trimToSizeMethods inherited from class java.util.AbstractCollection
containsAll, toStringMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Collection
parallelStream, stream, toArrayMethods inherited from interface java.util.List
containsAll
-
Constructor Details
-
ArrayListSml
-
-
Method Details
-
contains
Returns true if this list contains the specified element (or a JAXBElement containing it). -
indexOf
Returns the index of the first occurrence of the specified element (or a JAXBElement containing it) in this list, or -1 if this list does not contain the element. -
lastIndexOf
Returns the index of the last occurrence of the specified element (or a JAXBElement containing it) in this list, or -1 if this list does not contain the element.- Specified by:
lastIndexOfin interfaceList<E>- Overrides:
lastIndexOfin classArrayList<E>- Since:
- 8.1.4
-
set
Replaces the element at the specified position in this list with the specified element, checking for common content errors, and setting parent correctly. -
add
Appends the specified element to the end of this list, checking for common content errors, and setting parent correctly.- Specified by:
addin interfaceCollection<E>- Specified by:
addin interfaceList<E>- Overrides:
addin classArrayList<E>- Parameters:
e- element to be appended to this list- Returns:
- true (as specified by
Collection.add(E))
-
add
Inserts the specified element at the specified position in this list, checking for common content errors, and setting parent correctly. -
remove
Removes the first occurrence of the specified element (or a JAXBElement containing it) from this list, if it is present. If the list does not contain the element, it is unchanged. -
addAll
Appends all of the elements in the specified collection to the end of this list, checking for common content errors, and setting parent correctly.- Specified by:
addAllin interfaceCollection<E>- Specified by:
addAllin interfaceList<E>- Overrides:
addAllin classArrayList<E>- Parameters:
c- collection containing elements to be added to this list- Returns:
- true if this list changed as a result of the call
- Throws:
NullPointerException- if the specified collection is null- Since:
- 8.1.4
-
addAll
Inserts all of the elements in the specified collection into this list (checking for common content errors etc), starting at the specified position.- Specified by:
addAllin interfaceList<E>- Overrides:
addAllin classArrayList<E>- Parameters:
index- index at which to insert the first element from the specified collectionc- collection containing elements to be added to this list- Returns:
- true if this list changed as a result of the call
- Throws:
IndexOutOfBoundsExceptionNullPointerException- if the specified collection is null- Since:
- 8.1.4
-
removeAll
-
retainAll
-
getParent
- Returns:
- Since:
- 8.1.4
-