public boolean contains ( int element ) { return element >= 0 && this . imported ( element ) && this . pos . get ( Math . abs ( element ) ) >= 0 ; }
Returns whether a given element is already imported and present in the queue or not .