@SuppressWarnings("cast") @Override public boolean contains(final Object obj){
  if (null != obj) {
    Iterator<E> it=new ArrayDequeIterator<E>();
    while (it.hasNext()) {
      if (obj.equals((E)it.next())) {
        return true;
      }
    }
  }
  return false;
}

@ SuppressWarnings ( "cast" ) @ Override public boolean contains ( final Object obj ) { if ( null != obj ) { Iterator < E > it = new ArrayDequeIterator < E > ( ) ; while ( it . hasNext ( ) ) { if ( obj . equals ( ( E ) it . next ( ) ) ) { return true ; } } } return false ; }
returns true if the specified element is in the deque .
