public Optional < Board > getOptionalBoard ( Object projectIdOrPath , Integer boardId ) { try { return ( Optional . ofNullable ( getBoard ( projectIdOrPath , boardId ) ) ) ; } catch ( GitLabApiException glae ) { return ( GitLabApi . createOptionalFromException ( glae ) ) ; } }
Get an issue board as an Optional instance .