protected <U> List<U> getConvertedContent(final Function<? super T, ? extends U> converter) {

    Assert.notNull(converter, "Function must not be null!");

    return stream().map(converter::apply).collect(Collectors.toList());
  }
protected < U > List < U > getConvertedContent ( final Function < ? super T , ? extends U > converter ) { Assert . notNull ( converter , "Function must not be null!" ) ; return stream ( ) . map ( converter :: apply ) . collect ( Collectors . toList ( ) ) ; }
Applies the given {@link Function} to the content of the {@link Chunk}.

@param converter must not be {@literal null}.
@return