Public Member Functions | |
| CircularArrayList () | |
| boolean | isEmpty () |
| int | size () |
| boolean | contains (Object elem) |
| int | indexOf (Object elem) |
| int | lastIndexOf (Object elem) |
| Object[] | toArray () |
| T | get (int index) |
| T | set (int index, T element) |
| boolean | add (T o) |
| T | remove (int index) |
| void | clear () |
| boolean | addAll (Collection<?extends T > c) |
| void | add (int index, T element) |
| boolean | addAll (int index, Collection<?extends T > c) |
Package Functions | |
| SuppressWarnings ("unchecked") public CircularArrayList(int size) | |
| SuppressWarnings ("unchecked") public CircularArrayList(Collection< T > c) | |
| SuppressWarnings ("unchecked") public void ensureCapacity(int minCapacity) | |
| SuppressWarnings ({"unchecked","hiding"}) public< T > T[] toArray(T a[]) | |
| SuppressWarnings ("unchecked") private synchronized void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException | |
Private Member Functions | |
| int | convert (int index) |
| void | rangeCheck (int index) |
| synchronized void | writeObject (ObjectOutputStream s) throws IOException |
Private Attributes | |
| T[] | elementData |
| int | head = 0 tail = 0 |
| int | size = 0 |
Static Private Attributes | |
| final long | serialVersionUID = -1794729598452372631L |
|
||||||||||||
|
|
|
|
|
|
||||||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
||||||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1.3.8