docs: public <T> Stream<T> objects(final Class<T> type, final int streamSize) {
          if (streamSize < 0) {
              throw new IllegalArgumentException("The stream size must be positive");
          }
  
          return Stream.generate(() -> nextObject(type)).limit(streamSize);
      }