You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "ddeschenes-1 (via GitHub)" <gi...@apache.org> on 2025/01/02 10:15:34 UTC
Re: [PR] Updated javadoc to clarify how GzipParameters behave on multiple gzip members [commons-compress]
ddeschenes-1 commented on PR #629:
URL: https://github.com/apache/commons-compress/pull/629#issuecomment-2567541101
Actually, I changed my mind. Remembering that composition is preferable over inheritance.
Asking for a simple listener as a lambda surely, is lighter on the user.
Client perpspective:
`gzis.withMemberListener(gp -> .....));`
Implementor perspective:
`Optional<Consumer<GzipParameters>> memberListener;`
...
`memberListener.ifPresent(consumer -> consumer.accept(gp));`
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@commons.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org