/** * Constructs an empty list with the specified initial capacity. * * @param initialCapacity the number of elements the receiver can hold without auto-expanding itself by allocating new internal memory. */ public LongArrayList(int initialCapacity) { this(new long[initialCapacity]); setSizeRaw(0); } /**
/** * Constructs an empty list with the specified initial capacity. * * @param initialCapacity the number of elements the receiver can hold without auto-expanding itself by allocating new internal memory. */ public LongArrayList(int initialCapacity) { this(new long[initialCapacity]); setSizeRaw(0); } /**
/** * Constructs an empty list with the specified initial capacity. * * @param initialCapacity * the number of elements the receiver can hold without * auto-expanding itself by allocating new internal memory. */ public LongArrayList(int initialCapacity) { this(new long[initialCapacity]); setSizeRaw(0); }
/** * Returns a deep copy of the receiver. * * @return a deep copy of the receiver. */ public Object clone() { // overridden for performance only. LongArrayList clone = new LongArrayList((long[]) elements.clone()); clone.setSizeRaw(size); return clone; } /**
/** * Returns a deep copy of the receiver. * * @return a deep copy of the receiver. */ public Object clone() { // overridden for performance only. LongArrayList clone = new LongArrayList((long[]) elements.clone()); clone.setSizeRaw(size); return clone; } /**
/** * Returns a deep copy of the receiver. * * @return a deep copy of the receiver. */ public Object clone() { // overridden for performance only. LongArrayList clone = new LongArrayList((long[]) elements.clone()); clone.setSizeRaw(size); return clone; }