public boolean canConsumeAnyOf( int firstTypeOption,
                                    int... additionalTypeOptions ) throws IllegalStateException {
        if (completed) return false;
        if (canConsume(firstTypeOption)) return true;
        for (int nextTypeOption : additionalTypeOptions) {
            if (canConsume(nextTypeOption)) return true;
        }
        return false;
    }
public boolean canConsumeAnyOf ( int firstTypeOption , int ... additionalTypeOptions ) throws IllegalStateException { if ( completed ) return false ; if ( canConsume ( firstTypeOption ) ) return true ; for ( int nextTypeOption : additionalTypeOptions ) { if ( canConsume ( nextTypeOption ) ) return true ; } return false ; }
Attempt to consume the next token if it matches one of the supplied types.

@param firstTypeOption the first option for the type of the current token
@param additionalTypeOptions the additional options for the type of the current token
@return true if the current token's type matched one of the supplied options, or false otherwise
@throws IllegalStateException if this method was called before the stream was {@link #start() started}