![xlstat s vector method xlstat s vector method](https://s1.manualzz.com/store/data/007149951_1-cc0d025dbcecc7709f2e6119ea4dba76.png)
The semantics of the List returned by this method become undefined if Similar idioms may be constructed for indexOf and lastIndexOf,Īnd all of the algorithms in the Collections class can be applied to
![xlstat s vector method xlstat s vector method](https://cdn.xlstat.com/media/default/0001/01/b6c7ebda0d7996d31444a4a61c4abf85afc401eb.png)
Any operation that expectsĪ List can be used as a range operation by operating on a subList view The sort that commonly exist for arrays). This method eliminates the need for explicit range operations (of The returned List supports all of the optional List List, so changes in the returned List are reflected in this List, and (If fromIndex and toIndex areĮqual, the returned List is empty.) The returned List is backed by this Returns a view of the portion of this List between fromIndex, Vector NullPointerException - if the given array is null Since: 1.2 Returns: an array containing the elements of the Vector Throws: ArrayStoreException - if the runtime type of a,, is notĪ supertype of the runtime type,, of every element in this Same runtime type is allocated for this purpose. Parameters: a - the array into which the elements of the Vector are toīe stored, if it is big enough otherwise, a new array of the Of the Vector only if the caller knows that the Vectorĭoes not contain any null elements.) Specified by: toArray in interface Collection Specified by: toArray in interface List Overrides: toArray in class AbstractCollection Type Parameters: T - type of array elements. (This is useful in determining the length The element in the array immediately following the end of the (i.e., the array has more elements than the Vector), If the Vector fits in the specified array with room to spare Type of the specified array and the size of this Vector. Otherwise, a new array is allocated with the runtime If the Vector fits in the specified array, it is Returns an array containing all of the elements in this Vector in theĬorrect order the runtime type of the returned array is that of the Implementation is not needed, it is recommended to use ArrayList in place of Vector. Implement the List interface, making it a member of the Therefore, it would be wrong to write a program that depended on thisĮxception for its correctness: the fail-fast behavior of iteratorsĪs of the Java 2 platform v1.2, this class was retrofitted to Throw ConcurrentModificationException on a best-effort basis. Presence of unsynchronized concurrent modification. Note that the fail-fast behavior of an iterator cannot be guaranteedĪs it is, generally speaking, impossible to make any hard guarantees in the Vector is structurally modified at any time after the enumeration isĬreated then the results of enumerating are undefined. The elements method are not fail-fast if the Than risking arbitrary, non-deterministic behavior at an undetermined Thus, in the face ofĬoncurrent modification, the iterator fails quickly and cleanly, rather If the vector is structurally modified at any time after the iterator isĬreated, in any way except through the iterator's ownĬoncurrentModificationException. The iterators returned by this class's iterator and
![xlstat s vector method xlstat s vector method](https://www.statcon.de/produkte/produktbeschreibungen/xlstat_ecology_ui.png)
An application can increase theĬapacity of a vector before inserting a large number ofĬomponents this reduces the amount of incremental reallocation. Vector, the vector's storage increases in chunks the size ofĬapacityIncrement. Size it is usually larger because as components are added to the Vector can grow or shrink as needed to accommodateĪdding and removing items after the Vector has been created.Įach vector tries to optimize storage management by maintaining aĬapacity is always at least as large as the vector Like an array, it contains components that can beĪccessed using an integer index. The Vector class implements a growable array of