https://github.com/born2snipe/paging-spliterator
A simple API to make Java 8 streams of non-streaming API simple
https://github.com/born2snipe/paging-spliterator
java java-8 java-library pagination stream
Last synced: 11 months ago
JSON representation
A simple API to make Java 8 streams of non-streaming API simple
- Host: GitHub
- URL: https://github.com/born2snipe/paging-spliterator
- Owner: born2snipe
- License: other
- Created: 2018-09-09T15:49:45.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2018-09-09T16:03:46.000Z (almost 8 years ago)
- Last Synced: 2025-05-15T17:50:55.768Z (about 1 year ago)
- Topics: java, java-8, java-library, pagination, stream
- Language: Java
- Size: 11.7 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
## Paging Spliterator
A simple API to make Java 8 streams of non-streaming API simple.
After getting used to using the Java 8 streams I found myself being frustrated coming
across APIs that have not adopted or have not been updated to use the Java 8 streams yet.
For example the 1.X of the AWS Java SDK does not support streams yet, but stream support
is suppose to be added in the 2.X of the AWS Java SDK. So this API was created to help
hide some of the boilerplate code to make something "streamable".
#### FYI
* Currently this API does *NOT* support the splitting of a spliterator
* Class of Interest - [PageLookup](src/main/java/com/github/born2snipe/spliterator/paging/PageLookup.java)
* Example Implementation [here](src/test/java/com/github/born2snipe/spliterator/paging/example/RecurseDirectoryOfFilesLookup.java)
* Example Usage [here](src/test/java/com/github/born2snipe/spliterator/paging/example/RecurseDirectoryOfFilesLookupTest.java#L82)