public Optional < MergeRequest > getOptionalMergeRequest ( Object projectIdOrPath , Integer mergeRequestIid ) { try { return ( Optional . ofNullable ( getMergeRequest ( projectIdOrPath , mergeRequestIid ) ) ) ; } catch ( GitLabApiException glae ) { return ( GitLabApi . createOptionalFromException ( glae ) ) ; } }
Get information about a single merge request as an Optional instance .