Created
February 18, 2017 10:47
-
-
Save codingtim/55bd6ecbc158fcdebe9cef6aeb4a0e8f to your computer and use it in GitHub Desktop.
This file contains 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
public class IteratorDataSourceConsumer { | |
private IteratorDataSource iteratorDataSource; | |
public void consume() { | |
iteratorDataSource.getAllEntities().forEachRemaining(entity -> { | |
//doStuff | |
}); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment