ImageGear for Java
addAll(int,Collection<?>) Method
index at which to insert the first element from the specified collection
collection containing elements to be added to this list
Inserts all of the elements in the specified collection into this list at the specified position (optional operation). Shifts the element currently at that position (if any) and any subsequent elements to the right (increases their indices). The new elements will appear in this list in the order that they are returned by the specified collection's iterator. The behavior of this operation is undefined if the specified collection is modified while the operation is in progress. (Note that this will occur if the specified collection is this list, and it's nonempty.)
Syntax
public boolean addAll( 
   int index,
   java.util.Collection<?> c
)

Parameters

index
index at which to insert the first element from the specified collection
c
collection containing elements to be added to this list

Return Value

true if this list changed as a result of the call
Exceptions
ExceptionDescription
java.lang.UnsupportedOperationExceptionif the addAll operation is not supported by this list
java.lang.ClassCastExceptionif the class of an element of the specified collection prevents it from being added to this list
java.lang.NullPointerExceptionif the specified collection contains one or more null elements and this list does not permit null elements, or if the specified collection is null
java.lang.IllegalArgumentExceptionif some property of an element of the specified collection prevents it from being added to this list
java.lang.IndexOutOfBoundsExceptionif the index is out of range (index < 0 || index > size())
See Also

Reference

ImGearLayerArray Class
ImGearLayerArray Members
Overload List

 

 


©2016. Accusoft Corporation. All Rights Reserved.

Send Feedback