public class PreAllocatedArray<T> extends Object implements Iterable<T>
ArrayList
implementation that represents a type-safe pre-allocated array. This should be used exactly like an array, but helps avoid type-safety
issues when mixing arrays with generics. The iterator is unmodifiable.Modifier and Type | Field and Description |
---|---|
int |
length |
Constructor and Description |
---|
PreAllocatedArray(int capacity)
Creates an instance of the given capacity, with all elements initialized to null
|
Copyright © 2011–2016 The Apache Software Foundation. All rights reserved.