4 |
|
*/ |
5 |
|
|
6 |
|
package java.util; |
7 |
– |
import java.io.*; |
7 |
|
|
8 |
|
/** |
9 |
|
* Resizable-array implementation of the {@link Deque} interface. Array |
51 |
|
* @param <E> the type of elements held in this collection |
52 |
|
*/ |
53 |
|
public class ArrayDeque<E> extends AbstractCollection<E> |
54 |
< |
implements Deque<E>, Cloneable, Serializable |
54 |
> |
implements Deque<E>, Cloneable, java.io.Serializable |
55 |
|
{ |
56 |
|
/** |
57 |
|
* The array in which the elements of the deque are stored. |
804 |
|
* followed by all of its elements (each an object reference) in |
805 |
|
* first-to-last order. |
806 |
|
*/ |
807 |
< |
private void writeObject(ObjectOutputStream s) throws IOException { |
807 |
> |
private void writeObject(java.io.ObjectOutputStream s) |
808 |
> |
throws java.io.IOException { |
809 |
|
s.defaultWriteObject(); |
810 |
|
|
811 |
|
// Write out size |
820 |
|
/** |
821 |
|
* Deserialize this deque. |
822 |
|
*/ |
823 |
< |
private void readObject(ObjectInputStream s) |
824 |
< |
throws IOException, ClassNotFoundException { |
823 |
> |
private void readObject(java.io.ObjectInputStream s) |
824 |
> |
throws java.io.IOException, ClassNotFoundException { |
825 |
|
s.defaultReadObject(); |
826 |
|
|
827 |
|
// Read in size and allocate array |