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: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
