Add element in amortized constant time @param e Element to add at end of list @return true
( E e )
| 52 | * @param e Element to add at end of list |
| 53 | * @return true */ |
| 54 | public boolean add( E e ) { |
| 55 | if( _len >= _es.length ) _es = Arrays.copyOf(_es,Math.max(1,_es.length<<1)); |
| 56 | _es[_len++] = e; |
| 57 | return true; |
| 58 | } |
| 59 | |
| 60 | /** Fast, constant-time, element removal. Does not preserve order |
| 61 | * @param i element to be removed |
no outgoing calls