public Optional < Member > getOptionalMember ( Object groupIdOrPath , int userId ) { try { return ( Optional . ofNullable ( getMember ( groupIdOrPath , userId ) ) ) ; } catch ( GitLabApiException glae ) { return ( GitLabApi . createOptionalFromException ( glae ) ) ; } }
Get a group member viewable by the authenticated user as an Optional instance .