public < T extends ElementType < E > > boolean positiveLookahead ( T ... expected ) { for ( ElementType < E > type : expected ) { if ( type . isMatchedBy ( lookahead ( 1 ) ) ) { return true ; } } return false ; }
Checks if the next element in this stream is of the expected types .