code: public Stream<Event> getUserEventsStream(Object userIdOrUsername, ActionType action, TargetType targetType,
              Date before, Date after, SortOrder sortOrder) throws GitLabApiException {
          return (getUserEvents(userIdOrUsername, action, targetType, before, after, sortOrder, getDefaultPerPage()).stream());
      }
docs: Get a Stream of events for the specified user.
  
  <pre><code>GitLab Endpoint: GET /users/:userId/events</code></pre>
  
  @param userIdOrUsername the user ID, username of the user, or a User instance holding the user ID or username
  @param action include only events of a particular action type, optional
  @param targetType include only events of a particular target type, optional
  @param before include only events created before a particular date, optional
  @param after include only events created after a particular date, optional
  @param sortOrder sort events in ASC or DESC order by created_at. Default is DESC, optional
  @return a Stream of events for the specified user and matching the supplied parameters
  @throws GitLabApiException if any exception occurs