public static Predicate<HandlerInput> intentName(String intentName) {
        return i -> i.getRequestEnvelope().getRequest() instanceof IntentRequest
                && intentName.equals(((IntentRequest) i.getRequestEnvelope().getRequest()).getIntent().getName());
    }
public static Predicate < HandlerInput > intentName ( String intentName ) { return i -> i . getRequestEnvelope ( ) . getRequest ( ) instanceof IntentRequest && intentName . equals ( ( ( IntentRequest ) i . getRequestEnvelope ( ) . getRequest ( ) ) . getIntent ( ) . getName ( ) ) ; }
Returns a predicate that returns to true if the incoming request is an {@link IntentRequest}
for the given intent name.
@param intentName intent name to evaluate against
@return true if the incoming request is an {@link IntentRequest} for the given intent name