Find the first matching element using ==, or -1 if none. Note that most del calls shuffle the list, so the first element might be random. @param e Element to find @return index of first matching element, or -1 if none
( E e )
| 167 | * @param e Element to find |
| 168 | * @return index of first matching element, or -1 if none */ |
| 169 | public int find( E e ) { |
| 170 | for( int i=0; i<_len; i++ ) if( _es[i]==e ) return i; |
| 171 | return -1; |
| 172 | } |
| 173 | |
| 174 | |
| 175 | /** @return an iterator */ |
no outgoing calls