Add functional interfaces IOFunction and IOSupplier#110
Merged
Conversation
db89822 to
4aeb13a
Compare
Member
|
@adamretter Non-IO functional interfaces likely belong in Apache Commons Lang. Please have a look there. |
15 tasks
Contributor
Author
|
@garydgregory Okay cool. This PR does add two functional interfaces which are IO related. Are you happy with that? |
asfgit
pushed a commit
that referenced
this pull request
Apr 16, 2020
brettlounsbury
pushed a commit
to brettlounsbury/commons-io
that referenced
this pull request
May 28, 2020
* Fix a warning over generics * Extract IOFunction from test case to be usable elsewhere. Complements IOConsumer * Add IOSupplier to complement IOFunction and IOConsumer
brettlounsbury
pushed a commit
to brettlounsbury/commons-io
that referenced
this pull request
May 28, 2020
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
IOFunctionwhich it turns out I had already implemented inByteArrayOutputStreamTestCaseof Refactor ByteArrayOutputStream into synchronized and non-synchronized versions #108 .IOSupplier.These are designed to complement the existing
IOConsumerclass, and come with tests for 100% code coverage.p.s. on a separate side-note... if you like these, I have a much larger library of Java Functional Interfaces that I wrote in the past that can work with exceptions here - https://github.com/adamretter/j8fu/tree/master/src/main/java/com/evolvedbinary/j8fu/function
Perhaps Apache commons would be interested in such a donation under a different scope?