/** * 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 ByteArrayList(int initialCapacity) { this(new byte[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 ByteArrayList(int initialCapacity) { this(new byte[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 ByteArrayList(int initialCapacity) { this(new byte[initialCapacity]); setSizeRaw(0); }
/** * Returns a deep copy of the receiver. * * @return a deep copy of the receiver. */ public Object clone() { // overridden for performance only. ByteArrayList clone = new ByteArrayList((byte[]) 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. ByteArrayList clone = new ByteArrayList((byte[]) 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. ByteArrayList clone = new ByteArrayList((byte[]) elements.clone()); clone.setSizeRaw(size); return clone; }