javabuilders
javabuilders copied to clipboard
Stream API Support
Add stream API support so that we don't have to write custom methods for doing simple stuff.
Could you give me some samples and suggestions? Just learning all the ropes for Java 8 myself at this time...
Maybe KotliFx project can be useful for U. See: https://github.com/eugenkiss/kotlinfx/wiki https://github.com/eugenkiss/kotlinfx/wiki/Why-KotlinFX#ui-builders
I hope that:
- javabuilders is more simplicated than KotlinFx;
- javaBuilder can be used at Android in the future.
sure thing, should be possible however I am still waiting for @monksy to give me some samples of how he things stream support could work and in what use cases
I guess the biggest example that I had in mind was:
Lets say that you have a table of <id, name, value> values and you had the underlying list named dataContents.
Lets also say that you have a search box above. Well the onaction could become:
incomingValue -> dataContents.stream().filter(s-> s.name.contains(incomingValue) || s.value.contains(incomingValue)).list()
The incoming value isn't hugely neccessary if you want to hard code that name. However this line would remove the code within the code behind, and it's just used for filtering the data contents. Its just a thought.
sure, but that is on the code side, not in the YML side (which is where we focus). So I am not sure how you imagine it being integrated.
With the improvements in Java 8, a lot of the verbosity is cut down.