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