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 )
| 178 | * @param e Element to find |
| 179 | * @return index of first matching element, or -1 if none */ |
| 180 | public int find( E e ) { |
| 181 | for( int i=0; i<_len; i++ ) if( _es[i]==e ) return i; |
| 182 | return -1; |
| 183 | } |
| 184 | |
| 185 | |
| 186 | /** @return an iterator */ |
no outgoing calls